Bug#961146: systemd-logind sometimes ignores a systemd-inhibit lock

Vincent Lefevre vincent at vinc17.net
Wed May 20 20:13:34 BST 2020


Package: systemd
Version: 245.5-2
Severity: normal

I use a systemd-inhibit lock, which has currently been running
since 19:12, as shown by:

zira:~,2> ps -fwwC systemd-inhibit
UID          PID    PPID  C STIME TTY          TIME CMD
vinc17     34134       1  0 19:12 ?        00:00:00 systemd-inhibit --what=handle-lid-switch --who=vinc17 --why=power supply or external output --mode=block /home/vinc17/wd/src/scripts/inhibit-suspend 10 log +

zira:~,2> systemd-inhibit --list --no-pager
WHO    UID  USER   PID   COMM            WHAT              WHY                             MODE 
vinc17 1000 vinc17 34134 systemd-inhibit handle-lid-switch power supply or external output block

1 inhibitors listed.

But when I closed the lid at 20:55, the system got suspended:

[...]
May 20 20:55:08 zira inhibit-suspend[48475]: (vinc17) on-line: yes
May 20 20:55:08 zira inhibit-suspend[48480]: (vinc17) output: 0
May 20 20:55:14 zira systemd-logind[785]: Lid closed.
May 20 20:55:14 zira systemd-logind[785]: Suspending...
[...]

I don't know what changed now for systemd, but I've exceptionally
started the X server from a VT.

-- Package-specific info:

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.6.0-1-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser                          3.118
ii  libacl1                          2.2.53-8
ii  libapparmor1                     2.13.4-1+b1
ii  libaudit1                        1:2.8.5-3+b1
ii  libblkid1                        2.35.1-5
ii  libc6                            2.30-8
ii  libcap2                          1:2.34-2
ii  libcrypt1                        1:4.4.16-1
ii  libcryptsetup12                  2:2.3.2-1
ii  libgcrypt20                      1.8.5-5
ii  libgnutls30                      3.6.13-2
ii  libgpg-error0                    1.37-1
ii  libidn2-0                        2.3.0-1
ii  libip4tc2                        1.8.4-3
ii  libkmod2                         27+20200310-2
ii  liblz4-1                         1.9.2-2
ii  liblzma5                         5.2.4-1+b1
ii  libmount1                        2.35.1-5
ii  libpam0g                         1.3.1-5
ii  libpcre2-8-0                     10.34-7
ii  libseccomp2                      2.4.3-1+b1
ii  libselinux1                      3.0-1+b3
ii  libsystemd0                      245.5-2
ii  mount                            2.35.1-5
ii  systemd-timesyncd [time-daemon]  245.5-2
ii  util-linux                       2.35.1-5

Versions of packages systemd recommends:
ii  dbus  1.12.16-2

Versions of packages systemd suggests:
ii  policykit-1        0.105-26
pn  systemd-container  <none>

Versions of packages systemd is related to:
pn  dracut           <none>
ii  initramfs-tools  0.137
ii  libnss-systemd   245.5-2
ii  libpam-systemd   245.5-2
ii  udev             245.5-2

-- Configuration Files:
/etc/systemd/journald.conf changed:
[Journal]
Storage=persistent

/etc/systemd/logind.conf changed:
[Login]
HandlePowerKey=ignore

/etc/systemd/system.conf changed:
[Manager]
DefaultTimeoutStopSec=20s


-- no debconf information

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



More information about the Pkg-systemd-maintainers mailing list