Bug#794744: systemd-logind: Lid closed event does not suspend
Antonio Terceiro
terceiro at debian.org
Mon Sep 21 00:41:26 BST 2015
On Thu, Aug 06, 2015 at 06:17:08PM +1000, Brian May wrote:
> Package: systemd
> Version: 215-17+deb8u1
> Severity: important
> File: systemd-logind
>
> When closing the lid, system doesn't suspend, all I get is the following
> logged in auth.log:
>
> Aug 6 15:20:36 prune systemd-logind[571]: Lid closed.
> Aug 6 15:20:47 prune systemd-logind[571]: Lid opened.
>
> Occassionally the system does suspend, and I get the following logged:
>
> Aug 5 17:20:12 prune systemd-logind[571]: Lid closed.
> Aug 5 17:20:12 prune systemd-logind[571]: Suspending...
> Aug 5 17:26:04 prune systemd-logind[571]: Lid opened.
> Aug 5 17:26:04 prune systemd-logind[571]: Operation finished.
>
> The following command always succeeds in suspending immediately:
>
> systemctl suspend
>
> Presumably something is happening in systemd-logind to cancel the
> suspend, but it would be nice if it could log what that was.
>
> Curiously this problem only started as of last week. I asked about this
> on the local mailing list, but only got responses from anti-systemd
> people :-(.
>
> This type of problem can damage hardware if you put your computer away
> in your bag without realizing it didn't suspend and it overheats - this
> is what happened with me the first time it happened, but I think I
> caught it in time before it got too hot.
I am experiencing exactly the same with the latest systemd on unstable;
`systemctl suspend` works, but closing the lid does not suspend (at all).
One thing my system has in common with Brian's is the 4.1 kernel (which is just
the latest in unstable), but this only started after I rebooted yesterday.
before that I went for ~9 days without rebooting the system, but the last boot
I did back then was already using this same kernel.
$ last | grep reboot
reboot system boot 4.1.0-2-amd64 Sun Sep 20 19:56 still running
reboot system boot 4.1.0-2-amd64 Sun Sep 20 11:19 still running
reboot system boot 4.1.0-2-amd64 Sat Sep 19 22:19 still running
reboot system boot 4.1.0-2-amd64 Thu Sep 10 16:41 still running
$ apt-cache policy systemd
systemd:
Installed: 226-3
Candidate: 226-3
Version table:
*** 226-3 0
500 http://ftp.br.debian.org/debian/ unstable/main amd64 Packages
100 /var/lib/dpkg/status
225-1 0
500 http://ftp.br.debian.org/debian/ testing/main amd64 Packages
$ uname -a
Linux homer 4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23) x86_64 GNU/Linux
$ tail /sys/class/drm/*/*/status
==> /sys/class/drm/card0/card0-DP-1/status <==
disconnected
==> /sys/class/drm/card0/card0-HDMI-A-1/status <==
disconnected
==> /sys/class/drm/card0/card0-LVDS-1/status <==
connected
==> /sys/class/drm/card0/card0-VGA-1/status <==
disconnected
$ sudo systemd-inhibit
Who: NetworkManager (UID 0/root, PID 13605/NetworkManager)
What: sleep
Why: O NetworkManager precisa desligar as redes
Mode: delay
Who: terceiro (UID 1000/terceiro, PID 13188/gnome-settings-)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
Who: terceiro (UID 1000/terceiro, PID 13188/gnome-settings-)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: GNOME Shell (UID 1000/terceiro, PID 13259/gnome-shell)
What: sleep
Why: GNOME precisa bloquear a tela
Mode: delay
Who: Telepathy (UID 1000/terceiro, PID 13234/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
5 inhibitors listed.
$ sudo journalctl -b -u systemd-logind
-- Logs begin at Dom 2015-09-20 19:57:02 BRT, end at Dom 2015-09-20 20:16:44 BRT. --
Set 20 19:57:14 homer systemd[1]: Starting Login Service...
Set 20 19:57:15 homer systemd[1]: Started Login Service.
Set 20 19:57:15 homer systemd-logind[705]: New seat seat0.
Set 20 19:57:15 homer systemd-logind[705]: Watching system buttons on /dev/input/event3 (Power Button)
Set 20 19:57:15 homer systemd-logind[705]: Watching system buttons on /dev/input/event4 (Video Bus)
Set 20 19:57:15 homer systemd-logind[705]: Watching system buttons on /dev/input/event2 (Power Button)
Set 20 19:57:15 homer systemd-logind[705]: Watching system buttons on /dev/input/event1 (Lid Switch)
Set 20 19:57:15 homer systemd-logind[705]: Watching system buttons on /dev/input/event10 (HP WMI hotkeys)
Set 20 19:57:48 homer systemd-logind[705]: New session c1 of user Debian-gdm.
Set 20 19:58:15 homer systemd-logind[705]: New session 1 of user terceiro.
Set 20 20:00:40 homer systemd-logind[705]: Lid closed.
Set 20 20:01:16 homer systemd-logind[705]: Lid opened.
Set 20 20:04:02 homer systemd[1]: Stopping Login Service...
Set 20 20:04:02 homer systemd[1]: Stopped Login Service.
Set 20 20:04:02 homer systemd[1]: Starting Login Service...
Set 20 20:04:02 homer systemd[1]: Started Login Service.
Set 20 20:04:02 homer systemd-logind[11069]: New seat seat0.
Set 20 20:04:02 homer systemd-logind[11069]: Watching system buttons on /dev/input/event3 (Power Button)
Set 20 20:04:02 homer systemd-logind[11069]: Watching system buttons on /dev/input/event4 (Video Bus)
Set 20 20:04:02 homer systemd-logind[11069]: Watching system buttons on /dev/input/event2 (Power Button)
Set 20 20:04:02 homer systemd-logind[11069]: Watching system buttons on /dev/input/event1 (Lid Switch)
Set 20 20:04:02 homer systemd-logind[11069]: Watching system buttons on /dev/input/event10 (HP WMI hotkeys)
Set 20 20:04:02 homer systemd-logind[11069]: New session c1 of user Debian-gdm.
Set 20 20:04:02 homer systemd-logind[11069]: New session 1 of user terceiro.
Set 20 20:04:22 homer systemd-logind[11069]: Removed session c1.
Set 20 20:05:59 homer systemd-logind[11069]: Lid closed.
Set 20 20:06:15 homer systemd-logind[11069]: Lid opened.
Set 20 20:09:33 homer systemd-logind[11069]: New session c1 of user Debian-gdm.
Set 20 20:09:42 homer systemd-logind[11069]: New session 4 of user root.
Set 20 20:09:48 homer systemd-logind[11069]: Lid closed.
Set 20 20:09:52 homer systemd-logind[11069]: Removed session 1.
Set 20 20:10:09 homer systemd-logind[11069]: Lid opened.
Set 20 20:10:24 homer systemd-logind[11069]: Lid closed.
Set 20 20:10:41 homer systemd-logind[11069]: Lid opened.
Set 20 20:11:04 homer systemd-logind[11069]: New session c2 of user Debian-gdm.
Set 20 20:11:12 homer systemd-logind[11069]: New session 6 of user terceiro.
Set 20 20:11:12 homer systemd-logind[11069]: Removed session c2.
Set 20 20:11:32 homer systemd-logind[11069]: Removed session c1.
--
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20150920/9a27bef7/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list