UPower fails to detect lid state change
I'm using lxqt-powermanagement as frontend. When I close the lid, my laptop should suspend, instead, nothing happens. I discovered that upower is not notifying lid state change (using upower --monitor-detail
).
While testing I discovered the file /proc/acpi/button/lid/LID0/state
that in my system indicates the current lid state. Then I monitored change in state via: watch cat /proc/acpi/button/lid/LID0/state >asd
. With this I discovered 2 things:
- "asd" correctly shows open/closed on the moments I opened/closed the lid
- By running
watch cat /proc/acpi/button/lid/LID0/state
, upower notifies lid state change and my laptop suspends as intended
It's a dirty hack but it works. I hope this information helps.