! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Unable to override logind lid open/close handlers
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-power-manager
Component:
General

Comments

Description carlosjosepita 2019-02-20 18:25:46 CET
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
Comment 1 carlosjosepita 2019-02-20 19:06:48 CET
Btw, I tested this with mate-power-manager and it works straight out of the box, without even changing the default logind settings.
Comment 2 Theo Linkspfeifer editbugs 2019-07-03 12:00:15 CEST
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
Comment 3 Simon Steinbeiss editbugs 2020-05-26 23:50:16 CEST

*** This bug has been marked as a duplicate of bug 15300 ***

Bug #15151

Reported by:
carlosjosepita
Reported on: 2019-02-20
Last modified on: 2020-05-26

People

Assignee:
Ali Abdallah
CC List:
5 users

Version

Attachments

Additional information