You are not logged in.
On my Thinkpad X61 (lspci -v), I use systemd-logind to suspend my laptop on lid switch; no other front-ends like upower, just xss-lock to run Xscreensaver. It works nicely, except when closing the lid shortly after it was opened. The laptop does then not suspend (I haven't made exact measurements, but it's 10+ seconds).
Using systemctl suspend (or the suspend special keys) does work - at least after switching to the 3.10 LTS kernel, newer versions had khubd errors.
systemd-logind output:
Jan 14 12:35:05 thinkpad systemd-logind[330]: Suspend key pressed.
Jan 14 12:35:05 thinkpad systemd-logind[330]: Suspending...
Jan 14 12:35:19 thinkpad systemd-logind[330]: Operation finished.
Jan 14 12:35:21 thinkpad systemd-logind[330]: Suspend key pressed.
Jan 14 12:35:21 thinkpad systemd-logind[330]: Suspending...
Jan 14 12:35:31 thinkpad systemd-logind[330]: Operation finished.
Jan 14 12:38:47 thinkpad systemd-logind[330]: Lid closed.
Jan 14 12:38:47 thinkpad systemd-logind[330]: Suspending...
Jan 14 12:38:55 thinkpad systemd-logind[330]: Lid opened.
Jan 14 12:38:55 thinkpad systemd-logind[330]: Operation finished.
Jan 14 12:38:56 thinkpad systemd-logind[330]: Lid closed.
Jan 14 12:39:05 thinkpad systemd-logind[330]: Lid opened.
Jan 14 12:39:09 thinkpad systemd-logind[330]: Lid closed.
Jan 14 12:39:18 thinkpad systemd-logind[330]: Lid opened.
So it recognizes the lid, but that's it. Haven't found much on google, except when suspend on lid doesn't work at all, or when people want to disable it. I don't think xss-lock is related as it's the same without it running. Ideas?
Last edited by Alad (2015-01-20 20:24:27)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
I've brought this up to the systemd mailing list:
http://lists.freedesktop.org/archives/s … 27157.html
The delay is so docks et al. are properly detected. It was proposed to make this delay configurable, but there's no follow-up yet. For now, you can use a front-end which handles lid switch by itself like acpid or upower.
Last edited by Alad (2015-01-20 20:27:02)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline