You are not logged in.

#1 2018-01-01 19:45:03

xvzf
Member
Registered: 2014-05-18
Posts: 86

[FIXED] Action Lid Closed in Gnome is missing

Hi there,


I just reinstalled Arch on my notebook and now the "Action on lid" close is missing. E.g. I was used to the notebook going into suspend when the lid is closed.

Here's the output of

journalctl --unit=systemd-logind --follow

:

Jan 01 20:33:46 ThinkPad systemd-logind[1112]: Watching system buttons on /dev/input/event3 (Power Button)
Jan 01 20:33:46 ThinkPad systemd-logind[1112]: Watching system buttons on /dev/input/event4 (ThinkPad Extra Buttons)
Jan 01 20:33:47 ThinkPad systemd-logind[1112]: New session c1 of user gdm.
Jan 01 20:33:58 ThinkPad systemd-logind[1112]: New session c2 of user xvzf.
Jan 01 20:36:38 ThinkPad systemd-logind[1112]: Lid closed.
Jan 01 20:36:39 ThinkPad systemd-logind[1112]: Lid opened.

The closing action is detected so it _should_ work.

Any Idea?

Cheers,
Matthias

Last edited by xvzf (2018-01-02 11:57:58)

Offline

#2 2018-01-01 22:09:16

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [FIXED] Action Lid Closed in Gnome is missing

Have a look at /etc/systemd/logind.conf. There's an option there which will change the action on lid close globally, uncomment and set it to "suspend", then run

systemctl restart systemd-logind.service

Offline

#3 2018-01-01 22:21:06

xvzf
Member
Registered: 2014-05-18
Posts: 86

Re: [FIXED] Action Lid Closed in Gnome is missing

Just tried that. No difference even after a reboot. Maybe something is blocking the suspend? But should'nt that be in the Systemd log?

Offline

#4 2018-01-01 22:21:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,056

Re: [FIXED] Action Lid Closed in Gnome is missing

Not using gnome so this is just a wild guess but you might have to be in the wheel group to get this config offered?

Offline

#5 2018-01-01 22:38:27

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: [FIXED] Action Lid Closed in Gnome is missing

seth wrote:

Not using gnome so this is just a wild guess but you might have to be in the wheel group to get this config offered?

Me neither, and I had no idea that such limitations may exist.

xvzf wrote:

Just tried that. No difference even after a reboot. Maybe something is blocking the suspend? But should'nt that be in the Systemd log?

Definitely normal. From man logind.conf:

A different application may disable logind's handling of system power and
           sleep keys and the lid switch by taking a low-level inhibitor lock
           ("handle-power-key", "handle-suspend-key", "handle-hibernate-key",
           "handle-lid-switch"). This is most commonly used by graphical desktop
           environments to take over suspend and hibernation handling, and to use their
           own configuration mechanisms. If a low-level inhibitor lock is taken, logind
           will not take any action when that key or switch is triggered and the
           Handle*= settings are irrelevant.

Probably you'd just need to install their "gnome tweak tool" whatever and set the option from there.

P.S. it seems that you're not the only one https://github.com/systemd/systemd/issues/7137

Offline

#6 2018-01-01 22:44:57

Chazza
Wiki Maintainer
Registered: 2013-06-02
Posts: 506

Re: [FIXED] Action Lid Closed in Gnome is missing

Do you have the GNOME Tweak Tool lid switch inhibitor enabled? See https://wiki.archlinux.org/index.php/GN … itch_close

Offline

#7 2018-01-02 11:57:42

xvzf
Member
Registered: 2014-05-18
Posts: 86

Re: [FIXED] Action Lid Closed in Gnome is missing

Chazza wrote:

Do you have the GNOME Tweak Tool lid switch inhibitor enabled? See https://wiki.archlinux.org/index.php/GN … itch_close


Jup, that worked out, thank you! Never noticed that this is only located in the Tweak Tool.

Offline

Board footer

Powered by FluxBB