Hi,
Am 02.09.2019 um 22:39 schrieb aTc atc@k-n-p.org:
I suspect the lid sensor is reporting inverted values.
when moving a magnet near the sensor : Event: time 1567454822.385329, type 5 (EV_SW), code 0 (SW_LID), value 0
moving magnet away : Event: time 1567454828.075064, type 5 (EV_SW), code 0 (SW_LID), value 1
Well, it is defined as an "lid is open" sensor, i.e. magnet moved away. Or should it be an "lid is closed" indicator?
This is quite arbitrary... Is there some "standard" we can follow here?
This seems to be cause of the shutdown issue we are having on debian buster.
Without a magnet near the sensor, systemd will start "/lib/systemd/systemd-sleep suspend" almost immediately, which currently just locks up, and won't go down when the system gets a shutdown signal.
With a magnet near the sensor suspend doesn't start, but it will get launched as soon as the magnet is removed.
Disabling all suspend/hibernation options in /etc/systemd/sleep.conf is a workaround for now.
But we should fix it of course...
BR and thanks, Nikolaus