[Pkg-acpi-devel] Bug#752781: [acpid] doesn't work with logind but without systemd as PID 1 or systemd-shim

Marcin Szewczyk Marcin.Szewczyk at wodny.org
Thu Jun 26 12:53:03 UTC 2014


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:Marcin.Szewczyk at wodny.borg  <- remove b / usuń b
xmpp:wodny at ubuntu.pl                  xmpp:wodny at jabster.pl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: policy-funcs.patch
Type: text/x-diff
Size: 1624 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20140626/7c3bfaee/attachment.patch>


More information about the Pkg-acpi-devel mailing list