On 3/20/22 16:46, Wolfgang Pfeiffer wrote:
On Thu, Mar 17, 2022 at 08:27:02AM -0700, Paolo Galtieri wrote:
Is there any way to actually suspend a laptop when the lid is closed regardless of any external devices?
Might be a result of your /etc/systemd/logind.conf
Default in that file seems to be: HandleLidSwitchDocked=ignore
Have you tried to set this to: HandleLidSwitchDocked=suspend
After changes you may need to logout/login, or simply reboot your machine. If unsure, I'd reboot.
From man logind.conf(5):
"If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs"
That option doesn't make any difference. Gnome has its own inhibitor: gsd-power handle-lid-switch External monitor attached or configuration changed recently block
There's no way around it.