Your message dated Mon, 30 Jun 2014 13:18:55 +0000 with message-id <[email protected]> and subject line Bug#752781: fixed in acpi-support 0.141-4 has caused the Debian Bug report #752781, regarding [acpid] doesn't work with logind but without systemd as PID 1 or systemd-shim to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 752781: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752781 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: acpid Version: 1:2.0.22-2 Severity: normal Tags: patch Current procedure of causing a shutdown when the power button is pressed is as follows: - acpid - /etc/acpi/powerbtn-acpi-support.sh - /usr/share/acpi-support/policy-funcs - CheckPolicy() But CheckPolicy only checks if systemd-logind is running. This is not enough. If there is no systemd as PID 1 or systemd-shim running, the org.freedesktop.systemd1.Manager interface will be unavailable for systemd-logind. The system won't shutdown. Attached patch enables checks for availability of the interface (but preserves the earlier test for logind running). If there is no such interface acpid falls back to classic shutdown. --- System information. --- Architecture: amd64 Kernel: Linux 3.14-1-amd64 Debian Release: jessie/sid 500 testing security.debian.org 500 testing ftp.pl.debian.org 500 stable security.debian.org 500 stable ftp.pl.debian.org --- Package information. --- Depends (Version) | Installed ========================-+-============ libc6 (>= 2.15) | lsb-base (>= 3.2-14) | kmod | Recommends (Version) | Installed ==================================-+-============= acpi-support-base (>= 0.114-1) | 0.141-3 Package's Suggests field is empty. -- Marcin Szewczyk http://wodny.org mailto:[email protected] <- remove b / usuĊ b xmpp:[email protected] xmpp:[email protected]--- /usr/share/acpi-support/policy-funcs 2014-06-26 14:25:01.616856080 +0200 +++ /usr/share/acpi-support/policy-funcs 2014-06-26 14:32:05.005003163 +0200 @@ -14,13 +14,14 @@ local PMS getXconsole - PMS="/usr/bin/gnome-power-manager /usr/bin/kpowersave /usr/bin/xfce4-power-manager /lib/systemd/systemd-logind /usr/bin/mate-power-manager" + PMS="/usr/bin/gnome-power-manager /usr/bin/kpowersave /usr/bin/xfce4-power-manager /usr/bin/mate-power-manager" PMS="$PMS /usr/bin/guidance-power-manager /usr/lib/dalston/dalston-power-applet" pidof -x $PMS > /dev/null || { test "$XUSER" != "" && pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon; } || + HasLogindAndSystemd1Manager || PowerDevilRunning || GnomeSettingsDaemonPowerRunning } @@ -48,6 +49,18 @@ done } +# Check if systemd-logind will be able to call org.freedesktop.systemd1.Manager +# interface provided by systemd running as PID 1 or by systemd-shim +HasLogindAndSystemd1Manager() { + pidof -x "/lib/systemd/systemd-logind" > /dev/null && + # shutdown.target used as a representative of power management calls class + dbus-send --print-reply --system --type=method_call \ + --dest=org.freedesktop.systemd1 \ + /org/freedesktop/systemd1 \ + org.freedesktop.systemd1.Manager.GetUnitFileState string:shutdown.target \ + > /dev/null 2>&1 +} + # Ask kde if the powerdevil module is loaded PowerDevilRunning() { DBusSend kded4 org.kde.kded /kded org.kde.kded.loadedModules | grep -q powerdevil
--- End Message ---
--- Begin Message ---Source: acpi-support Source-Version: 0.141-4 We believe that the bug you reported is fixed in the latest version of acpi-support, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Michael Meskes <[email protected]> (supplier of updated acpi-support package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Mon, 30 Jun 2014 13:43:51 +0200 Source: acpi-support Binary: acpi-support acpi-support-base acpi-fakekey Architecture: source all amd64 Version: 0.141-4 Distribution: unstable Urgency: medium Maintainer: Debian Acpi Team <[email protected]> Changed-By: Michael Meskes <[email protected]> Description: acpi-fakekey - tool to generate fake key events acpi-support - scripts for handling many ACPI events acpi-support-base - scripts for handling base ACPI events such as the power button Closes: 704428 752283 752781 Changes: acpi-support (0.141-4) unstable; urgency=medium . * Removed duplicated lines in changelog * Improve test for running systemd-logind. Thanks to Marcin Szewczyk <[email protected]> (Closes: #752781) * Revert "Simplified check for active display." (Closes: #752283) * Added option to shutdown system if suspend fails. (Closes: #704428) Checksums-Sha1: 5ad4084f5d3cb03c701173273b5fc549f00f2251 1456 acpi-support_0.141-4.dsc 8d9e48b17b1a60e20331253fe3d7b7a3785f6c7f 51427 acpi-support_0.141-4.diff.gz a724a07d888ab1dca6e1f810194b2d01a3525e7d 49712 acpi-support_0.141-4_all.deb 68db9d3a56f26ace566e9d4710090dc023bf41ce 22956 acpi-support-base_0.141-4_all.deb 4bb59f2a97a050d65f931f74596c84b8016d03c6 24994 acpi-fakekey_0.141-4_amd64.deb Checksums-Sha256: c728b9cf602e9a371012f6e8498ac4b47282b343a64e63555e5e3e5e5d8606cc 1456 acpi-support_0.141-4.dsc 11b90d740c62643d33ce99167da8c9e384e47024c2d09eae2374add9d34cc4a8 51427 acpi-support_0.141-4.diff.gz 805c5a1bd1d3fa1e3087eb9e5cf739da59a7285474f17bd11b9eea019c466f60 49712 acpi-support_0.141-4_all.deb a7214ce93814f86eca4d4d99258633792307b4e18ae03c37fd0915d6fc75bade 22956 acpi-support-base_0.141-4_all.deb f3496ba1a4737876d5d982554eda5f07a5260cbf42b241b4010ea37fafdac3b6 24994 acpi-fakekey_0.141-4_amd64.deb Files: 0ba0080376faea131475b1b2f709ce7a 49712 admin optional acpi-support_0.141-4_all.deb d47f0aefaed863a194b3e0c607f26432 22956 admin optional acpi-support-base_0.141-4_all.deb ccfe5a81d4924aafaf90c1bad1d229ef 24994 admin optional acpi-fakekey_0.141-4_amd64.deb faa6456fae0ef02edc8d46ce0ca111a4 1456 admin optional acpi-support_0.141-4.dsc 3a29f129242d23c0e8891abd4497ec01 51427 admin optional acpi-support_0.141-4.diff.gz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iD8DBQFTsV9yVkEm8inxm9ERAiJFAJ9KBnVzxkXKYz7jxf/OsX/OxVou+QCfQapI cBhPzdxvlMj1ANWIkW9Ov7s= =gzlA -----END PGP SIGNATURE-----
--- End Message ---

