You are not logged in.
Pages: 1
Fresh arch installation on a new HP ZBook Studio G3. Suspending via `systemctl suspend` works fine as well as pressing Fn+F1 (shortcut for suspend on this notebook). Closing the lid does not cause the laptop to go suspend though and all I see from `journalctl -f -u systemd-logind` is:
Feb 13 21:51:49 manta systemd-logind[546]: Lid closed.
Feb 13 21:51:54 manta systemd-logind[546]: Lid opened.
I tried to fiddle with my logind.conf, currently it looks like this:
# cat /etc/systemd/logind.conf | grep -v ^#
[Login]
HandleSuspendKey=suspend
HandleLidSwitch=suspend
HandleLidSwitchDocked=suspend
SuspendKeyIgnoreInhibited=yes
LidSwitchIgnoreInhibited=yes
UserTasksMax=16384
What do I miss from this setup to get suspend on lid close?
EDIT:
gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing
was the missing setting from my setup - hope it helps someone.
Last edited by kjozsa (2016-02-14 17:27:05)
Offline
Have you tried restarting systemd-logind after making changes to logind.conf? Though suspending should work out of the box. Any settings from your DE that might interfere with logind's behavior?
Last edited by diiis (2016-02-14 14:10:39)
Offline
I did a complete reboot after setting up logind.conf. I'm running Gnome but I could not even find any accessible setting of it which should change/alter the lid close operation.
Offline
I'm running Gnome but I could not even find any accessible setting of it which should change/alter the lid close operation.
Not even in gnome-tweak-tool?
Offline
Install dconf-editor, open it and navigate to org -> gnome -> settings-daemon -> plugins -> power
What options do you have there?
Offline
"Don't suspend on lid close" is turned off there. Should be ok like this, shouldn't it? And changing the setting back and forth appearently makes no difference.
Last edited by kjozsa (2016-02-14 14:40:05)
Offline
Offline
Feb 13 21:51:49 manta systemd-logind[546]: Lid closed.
Feb 13 21:51:54 manta systemd-logind[546]: Lid opened.
Is this all that the journal is recording? Mine says it's opening a seat for my user and so on. Perhaps we can work something out if you paste the entire input.
Offline
No, I have no other output from systemd-logind upon a lid close/open.
Experimenting with gnome-tweak-tools though, if I de-check the `active` checkbox shown on the screenshot above, lid close suspends correctly!
I assume Gnome is really interfering with an otherwise correct systemd behaviour here. I'm only unsure why the *IgnoreInhibited settings in logind why not prevent Gnome doing so... For this reason, I'm hesitating to mark this thread solved, as I'd really prefer to have Gnome's power management working besides the lid close -> suspend functionality..
Offline
What's your journal output when you successfully suspend?
If you remove the relevant lines from logind.conf and leave the gnome power manager running, does the computer then suspend on lid close?
Offline
Have you tried this? He seems to have had a similar problem.
Solved! Thanks to grawity on #archlinux. gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing did the trick for me.
Offline
Have you tried this? He seems to have had a similar problem.
mrapide wrote:Solved! Thanks to grawity on #archlinux. gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing did the trick for me.
You are right, I had the same problem.
gsettings set org.gnome.settings-daemon.plugins.xrandr default-monitors-setup do-nothing
is the solution for this one. Thanks a lot!
Last edited by kjozsa (2016-02-14 17:28:52)
Offline
Pages: 1