sessiond: an expected source that never reports is Absent, not silent
sensord hung off graphical-session.target, which nothing on this device starts, so it was enabled and dead from every boot. Down starts from a last-seen stamp and structurally cannot see that. Bind the reporter to sessiond and make the machine say so.
This commit is contained in:
parent
684d1f9fd5
commit
3d9340057f
2 changed files with 208 additions and 14 deletions
|
|
@ -6,7 +6,19 @@ Description=Souveraine sensor reporter (proximity, light, accelerometer)
|
|||
#
|
||||
# A user unit, like sessiond: it talks to sessiond over
|
||||
# $XDG_RUNTIME_DIR/souveraine/sessiond.sock and needs no privilege at all.
|
||||
PartOf=graphical-session.target
|
||||
#
|
||||
# Bound to sessiond, NOT to graphical-session.target. It was WantedBy that
|
||||
# target until 2026-07-27, and on this device nothing ever starts it: greetd
|
||||
# launches Hyprland directly, and hyprland.lua starts each unit it wants by
|
||||
# name. So the reporter was `enabled` and dead from every boot, the machine ran
|
||||
# with no evidence at all, and — because a source that has never spoken sits at
|
||||
# SourceHealth::Unknown, which is silent by design — nothing said so.
|
||||
#
|
||||
# The dependency that is actually true is this one: the reporter exists to feed
|
||||
# the state machine, so it should live and die with the state machine. sessiond
|
||||
# is started explicitly at session start, needs no Wayland, and neither does
|
||||
# this: it reads iio-sensor-proxy on the system bus and writes a unix socket.
|
||||
PartOf=souveraine-sessiond.service
|
||||
After=souveraine-sessiond.service
|
||||
|
||||
[Service]
|
||||
|
|
@ -18,4 +30,4 @@ Restart=always
|
|||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
WantedBy=souveraine-sessiond.service
|
||||
|
|
|
|||
Loading…
Reference in a new issue