You are not logged in.
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
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.serviceOffline
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
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
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.
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
Do you have the GNOME Tweak Tool lid switch inhibitor enabled? See https://wiki.archlinux.org/index.php/GN … itch_close
Offline
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