[Pkg-acpi-devel] Bug#757606: acpid: acpi script dont detect gnome acpi handling
Pascal Railhet
p.railhet at magic.fr
Sat Aug 9 18:32:18 UTC 2014
Package: acpid
Version: 1:2.0.16-1+deb7u1
Severity: normal
Hello
Sorry for my bad english.
On my laptop, when I press the power button, I want to have the interactive
menu as I set in dconf editor. In fact I have the interactive menu AND an
immediate shutdown initied by the script /etc/acpi/powerbtn-acpi-support.sh.
After somme debugging I localized the bug in the script /usr/share/acpi-support
/policy-funcs. The function GnomeSettingsDaemonPowerRunning call DBusSend with
first parameter set to gnome-settings-daemon, the process we want to scan to
acpi support. On the function DBusSend, this value is send to pgrep, but pgrep
is limited to first 15 characters of the prog name. So pgrep dont return any
pid, DBusSend exit abnormaly and GnomeSettingsDaemonPowerRunning assume that
there is no acpi support from gnome-settings-deamon.
I bypass the bug by calling the dBusSend with only "gnome-settings-" as first
param and all was running fine. But this patch is not very clean. I sugest to
use pgrep with -f option and full path to gnome settings-deamon.
Regards
Pascal.
..
-- System Information:
Debian Release: 7.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages acpid depends on:
ii libc6 2.13-38+deb7u3
ii lsb-base 4.1+Debian8+deb7u1
ii module-init-tools 9-3
Versions of packages acpid recommends:
ii acpi-support-base 0.140-5+deb7u1
acpid suggests no packages.
-- no debconf information
More information about the Pkg-acpi-devel
mailing list