Re: suspend on lid closed doesn't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux