You are not logged in.

#1 2015-01-14 17:21:10

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

[SOLVED] logind: no lid switch action on small open/close delays

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.

dmesg log after suspending

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

#2 2015-01-20 20:26:43

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [SOLVED] logind: no lid switch action on small open/close delays

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

#3 2015-03-06 19:06:46

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: [SOLVED] logind: no lid switch action on small open/close delays


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB