Bug#788400: systemd-logind only fires suspend on lid close once even though it sees the event

jessie jess at linux.com
Thu Jun 11 01:13:52 BST 2015


Package: systemd
Version: 220-5
Severity: important

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- Package-specific info:

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-rc7-hackers-of-the-world-unite (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages systemd depends on:
ii  adduser         3.113+nmu3
ii  libacl1         2.2.52-2
ii  libapparmor1    2.9.2-3
ii  libaudit1       1:2.4.2-1
ii  libblkid1       2.26.2-6
ii  libc6           2.19-18
ii  libcap2         1:2.24-8
ii  libcap2-bin     1:2.24-8
ii  libcryptsetup4  2:1.6.6-5
ii  libgcrypt20     1.6.3-2
ii  libkmod2        20-1
ii  liblzma5        5.1.1alpha+20120614-2+b3
ii  libmount1       2.26.2-6
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     220-5
ii  mount           2.26.2-6
ii  sysv-rc         2.88dsf-59.2
ii  udev            220-5
ii  util-linux      2.26.2-6

Versions of packages systemd recommends:
pn  dbus            <none>
pn  libpam-systemd  <none>

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- no debconf information

The following is my /etc/systemd/logind.conf:

```
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=suspend
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
```

And the output of the systemd-logind.service, as you can see it fires `suspend` on the first lid close but never on any after the very first lid close, it is very odd, it clearly sees the event:

```
-- Logs begin at Wed 2015-06-10 16:49:40 PDT, end at Wed 2015-06-10 17:05:35 PDT. --
Jun 10 16:49:41 debian systemd[1]: Starting Login Service...
Jun 10 16:49:41 debian systemd-logind[559]: New seat seat0.
Jun 10 16:49:41 debian systemd-logind[559]: Watching system buttons on /dev/input/event4 (Power But
Jun 10 16:49:41 debian systemd-logind[559]: Watching system buttons on /dev/input/event9 (Video Bus
Jun 10 16:49:41 debian systemd[1]: Started Login Service.
Jun 10 16:49:41 debian systemd-logind[559]: Watching system buttons on /dev/input/event2 (Power But
Jun 10 16:49:41 debian systemd-logind[559]: Watching system buttons on /dev/input/event1 (Lid Switc
Jun 10 16:49:41 debian systemd-logind[559]: Watching system buttons on /dev/input/event3 (Sleep But
Jun 10 16:49:47 debian systemd-logind[559]: New session 1 of user jessie.
Jun 10 16:52:18 debian systemd-logind[559]: Lid closed.
Jun 10 16:52:18 debian systemd-logind[559]: Suspending...
Jun 10 16:52:31 debian systemd-logind[559]: Lid opened.
Jun 10 16:52:31 debian systemd-logind[559]: Operation finished.
Jun 10 16:54:44 debian systemd-logind[559]: Lid closed.
Jun 10 16:54:57 debian systemd-logind[559]: Lid opened.
Jun 10 16:56:48 debian systemd-logind[559]: Lid closed.
Jun 10 16:56:51 debian systemd-logind[559]: Lid opened.
Jun 10 16:56:57 debian systemd-logind[559]: Lid closed.
Jun 10 16:57:06 debian systemd-logind[559]: Lid opened.
Jun 10 16:58:33 debian systemd-logind[559]: Lid closed.
Jun 10 16:58:39 debian systemd-logind[559]: Lid opened.
```

-------------- next part --------------
[EXTENDED]   /lib/systemd/system/systemd-timesyncd.service -> /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
[EXTENDED]   /lib/systemd/system/rc-local.service -> /lib/systemd/system/rc-local.service.d/wait-online.conf

2 overridden configuration files found.

-------------- next part --------------
# UNCONFIGURED FSTAB FOR BASE SYSTEM



More information about the Pkg-systemd-maintainers mailing list