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
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.
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
On 9/2/19 10:51 PM, H. Nikolaus Schaller wrote:
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?
My other devices all show SW_LID value 1 when the lid is closed, so I guess that's the standard.
On Mo, 2019-09-02 at 23:42 +0200, aTc wrote:
Hi,
I can confirm this. On all Laptops I have, a closed lid is always 1. Makes sense, as some even have physical switches which are being pressed down when the lid is closed, and a pressed switch usually is 1 :)
On 9/2/19 10:51 PM, H. Nikolaus Schaller wrote:
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?
My other devices all show SW_LID value 1 when the lid is closed, so I guess that's the standard.
Kernel mailing list Kernel@pyra-handheld.com http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
Am 03.09.2019 um 04:02 schrieb Michael Mrozek EvilDragon@openpandora.org:
On Mo, 2019-09-02 at 23:42 +0200, aTc wrote:
Hi,
I can confirm this. On all Laptops I have, a closed lid is always 1. Makes sense, as some even have physical switches which are being pressed down when the lid is closed, and a pressed switch usually is 1 :)
On 9/2/19 10:51 PM, H. Nikolaus Schaller wrote:
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?
My other devices all show SW_LID value 1 when the lid is closed, so I guess that's the standard.
Ok. If that is the standard, we have to change it to fit to the standard. Patches attached.
I'll add them to the next build.
BR, Nikolaus