Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#70231 - [xfce4-power-manager] lid suspend conflict

Attached to Project: Arch Linux
Opened by Bonnie (g00fyseal) - Tuesday, 30 March 2021, 13:24 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 06 April 2021, 02:30 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When 'suspend' is selected for both 'on battery' and 'plugged in' in the power manager 'system' tab, then the computer does not suspend when lid is closed. In order for suspend to work when plugged in, a different option has to be selected for on battery, like 'switch off display' or 'lock screen' and vice versa for suspend to work when on battery. Suspend cannot be simultaneously selected for both or else it will not work.

Additional info:
* version
xfce4-power-manager 4.16.0-2

* config
<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-power-manager" version="1.0">
<property name="xfce4-power-manager" type="empty">
<property name="power-button-action" type="uint" value="4"/>
<property name="sleep-button-action" type="uint" value="1"/>
<property name="hibernate-button-action" type="uint" value="2"/>
<property name="brightness-switch-restore-on-exit" type="int" value="0"/>
<property name="brightness-switch" type="int" value="0"/>
<property name="lid-action-on-battery" type="uint" value="1"/>
<property name="lid-action-on-ac" type="uint" value="1"/>
<property name="logind-handle-lid-switch" type="bool" value="true"/>
<property name="dpms-on-ac-sleep" type="uint" value="0"/>
<property name="dpms-on-ac-off" type="uint" value="0"/>
<property name="blank-on-ac" type="int" value="10"/>
<property name="inactivity-on-ac" type="uint" value="14"/>
<property name="general-notification" type="bool" value="true"/>
<property name="show-tray-icon" type="bool" value="false"/>
<property name="inactivity-sleep-mode-on-battery" type="uint" value="1"/>
<property name="critical-power-action" type="uint" value="3"/>
<property name="lock-screen-suspend-hibernate" type="bool" value="true"/>
<property name="brightness-on-battery" type="uint" value="9"/>
<property name="blank-on-battery" type="int" value="5"/>
<property name="dpms-on-battery-sleep" type="uint" value="0"/>
<property name="dpms-on-battery-off" type="uint" value="0"/>
<property name="brightness-level-on-battery" type="uint" value="50"/>
<property name="brightness-level-on-ac" type="uint" value="100"/>
<property name="show-panel-label" type="int" value="0"/>
<property name="show-presentation-indicator" type="bool" value="false"/>
<property name="presentation-mode" type="bool" value="false"/>
<property name="inactivity-on-battery" type="uint" value="15"/>
<property name="handle-brightness-keys" type="bool" value="false"/>
</property>
</channel>
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 06 April 2021, 02:30 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Working as intended though it might be a bit confusing at times.
Comment by Evangelos Foutras (foutrelis) - Wednesday, 31 March 2021, 04:38 GMT
If you select "Suspend" for both then xfpm seems to rely on logind to handle the lid switch. [1]

Maybe you've set HandleLidSwitch in /etc/systemd/logind.conf to "ignore"? Also note that if more than one display is connected, then HandleLidSwitchDocked specifies what happens (this one defaults to ignore, so you can try changing it to suspend).

[1] https://gitlab.xfce.org/xfce/xfce4-power-manager/-/merge_requests/1

Loading...