Skip to content

power: Remove lid switch system inhibitor

logind by default has HandleLidSwitchDocked set to "ignore", which is what gsd-power lid switch inhibitor is exactly doing with external display. This commit removes this inhibitor to offload the task to logind, and allows users to adjust the configuration through logind config file.

Related to #111.

I have tested this on my laptop and it is working. Though I'm not sure if this is the best choice -- currently GNOME uses logind without (blocking) inhibitors to handle lid switch when there's no external display. After reading gnome-control-center#1223, it seems that another choice is to let gsd-power inhibitor always on when it is a laptop, and give users gsettings to adjust inhibitor behavior when lid is off.

Merge request reports