No matter how I configure xfce4 power manager lid close on battery/ac events, the ones configured in logind.conf win. If I set logind to ignore all lid events, nothing really happens, so that logind again wins (the ignore settings take precedence over xfce4 power manager). This is the ignore logind config: HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore LidSwitchIgnoreInhibited=no The LidSwitchIgnoreInhibited flag seems to be irrelevant, since both values result in the same behavior. This is my power manager config: ~:: xfconf-query -c xfce4-power-manager -vl /xfce4-power-manager/blank-on-battery 3 /xfce4-power-manager/brightness-on-battery 9 /xfce4-power-manager/brightness-switch 1 /xfce4-power-manager/brightness-switch-restore-on-exit 0 /xfce4-power-manager/critical-power-action 2 /xfce4-power-manager/critical-power-level 5 /xfce4-power-manager/dpms-on-battery-off 9 /xfce4-power-manager/dpms-on-battery-sleep 6 /xfce4-power-manager/general-notification true /xfce4-power-manager/handle-brightness-keys false /xfce4-power-manager/inactivity-on-ac 15 /xfce4-power-manager/inactivity-on-battery 15 /xfce4-power-manager/lid-action-on-ac 3 /xfce4-power-manager/lid-action-on-battery 1 /xfce4-power-manager/logind-handle-lid-switch true /xfce4-power-manager/power-button-action 2
Btw, I tested this with mate-power-manager and it works straight out of the box, without even changing the default logind settings.
I assume that /xfce4-power-manager/logind-handle-lid-switch needs to be set to 'false'. $ xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false
*** This bug has been marked as a duplicate of bug 15300 ***