You are not logged in.
I recently updating my system after not updating for a while, and now I've noticed some behaviour has changed. Previously when I closed my laptop it would suspend, even with a display connected. (Except when power was connected of course.)
Now it won't suspend if I close my laptop with my display is plugged in.
How can I go back to the old behaviour? I'm running XFCE. I also replaced my mainboard on this (Framework) laptop to the i7-1185G7 one, but I don't think that matters.
❯ xfconf-query -c xfce4-power-manager -l -v
/xfce4-power-manager/blank-on-ac 0
/xfce4-power-manager/blank-on-battery 0
/xfce4-power-manager/brightness-level-on-ac 100
/xfce4-power-manager/brightness-level-on-battery 10
/xfce4-power-manager/brightness-on-battery 90
/xfce4-power-manager/brightness-switch 0
/xfce4-power-manager/brightness-switch-restore-on-exit 0
/xfce4-power-manager/critical-power-action 3
/xfce4-power-manager/critical-power-level 10
/xfce4-power-manager/dpms-enabled true
/xfce4-power-manager/dpms-on-ac-off 0
/xfce4-power-manager/dpms-on-ac-sleep 0
/xfce4-power-manager/dpms-on-battery-off 0
/xfce4-power-manager/dpms-on-battery-sleep 0
/xfce4-power-manager/general-notification true
/xfce4-power-manager/handle-brightness-keys true
/xfce4-power-manager/inactivity-sleep-mode-on-battery 1
/xfce4-power-manager/lid-action-on-ac 3
/xfce4-power-manager/lid-action-on-battery 1
/xfce4-power-manager/lock-screen-suspend-hibernate true
/xfce4-power-manager/logind-handle-lid-switch false
/xfce4-power-manager/presentation-mode false
/xfce4-power-manager/show-panel-label 3
/xfce4-power-manager/show-presentation-indicator true
/xfce4-power-manager/show-tray-icon false
❯ cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the logind.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
#
# See logind.conf(5) for details.
[Login]
HandleLidSwitch=suspend-then-hibernate
HandleLidSwitchExternalPower=lock
HandleLidSwitchDocked=suspend-then-hibernate
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#UserStopDelaySec=10
#HandlePowerKey=poweroff
#HandlePowerKeyLongPress=ignore
#HandleRebootKey=reboot
#HandleRebootKeyLongPress=poweroff
#HandleSuspendKey=suspend
#HandleSuspendKeyLongPress=hibernate
#HandleHibernateKey=hibernate
#HandleHibernateKeyLongPress=ignore
#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#RebootKeyIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RuntimeDirectoryInodesMax=
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
Offline
How can I go back to the old behaviour?
Right now you can't.
In general, the opposite behavior was expected, and xfce4-power-manager was inconsistent from this point of view (some action choices when closing the lid applied when an external screen was connected and others did not). So this has been made consistent in favor of activating the action only if no external screen is connected.
The old behavior is now the subject of a feature request: https://gitlab.xfce.org/xfce/xfce4-powe … issues/203
aka Tamaranch: https://gitlab.xfce.org/Tamaranch
Offline