You are not logged in.
Hello everyone,
My HP Pavilion laptop's Lid switch seems to be mishandled somewhere. The tangible effect is that I can't get my laptop to suspend upon closing the lid.
A call to
cat /proc/acpi/button/lid/LID0/statereturns the correct state ("closed" when the lid is closed, "open" when it is open).
However, evtest never receives any event:
$ evtest /dev/input/event0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x5 version 0x0
Input device name: "Lid Switch"
Supported events:
Event type 0 (EV_SYN)
Event type 5 (EV_SW)
Event code 0 (SW_LID) state 0
Properties:
Testing ... (interrupt to exit)The alternatives exposed here involving dbus don't seem to work either:
$ dbus-send --system --print-reply=literal --dest=org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.DBus.Properties.Get string:org.freedesktop.login1.Manager string:LidClosed | awk 'NR==1{print $3=="true"?"closed":"open"}'always returns "open".
Does anyone have an idea on how to solve this? A workaround (so that my kde's powerdevil would use /proc instead, for instance) would also help.
Thanks in advance!
Last edited by kihanos (2021-08-05 10:23:43)
Offline