On Mon, Mar 21, 2022 at 12:32:14AM -0700, Samuel Sieb wrote:
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.

 ... except one posting on the gitlab page you mentioned suggests the
solution I recommended, and for Gnome, it seems ... ;)

Works here still on F34, X11, i3, too: single monitor connected via
HDMI to a laptop.  Except I only changed logind.conf, back in 2018,
nothing more, it seems.

In /etc/UPower/UPower.conf tho' I have this, different from what was
suggested on the gitlab page:
IgnoreLid=false

Just tested it again - works: closing the lid with a connected monitor
switches off both; resuming switches on both without issues.

Wolfgang
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to