Comment 33 for bug 1307545

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

Here are my observations:

1) The initial value of logind-handle-lid-switch is "false" in 14.10. This appears to be correct, because the default lid close action is "lock" and not "suspend".

2) Changing the value to "true" is required to work around the infamous blank-screen-after-unlock bug and will let logind initiate the suspend sequence (according to logind.conf). However, this is only needed when "suspend" is selected as lid close action in xfce4-power-manager-settings.

3) As of now, logind-handle-lid-switch is set via light-locker-settings (lock on suspend -> true, otherwise false). There is no smart check.

4) The proper fix would be to patch xfce4-power-manager. It should be able to evaluate certain conditions (light-locker running? lock on suspend enabled?) and set logind-handle-lid-switch accordingly when the lid close action is changed by the user.