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.