Package: acpid
Version: 1.0.6-9
Severity: important

Hello,

I've just upgraded from acpid 1.0.4-5 to 1.0.6-9 on my media centre
computer, and have run into a bit of a problem. I use acpid to restart
GDM on pressing the power button (a bit odd, I know, but this actually
makes a lot of sense for me on this particular computer). I have only a
single file in /etc/acpi/events - a file called power, which I have
attached for your perusal.

I've had a look through the documentation, and as far as I can tell
there is no reason why this should not work with 1.0.6. I've removed the
/etc/acpi/events/powerbtn file and re-started acpid, as I did for the
1.0.4-5 package.

However, when I pressed the power button, nothing happened. The action
specified in /etc/acpi/events/power didn't get executed, and nothing got
printed to the syslog. Here's the relevant section from the syslog from
re-starting acpid to pressing the power button (it's actually been
pressed several times, just to check that a few events weren't somehow
going missing), as the acpid manpage implies that useful information may
be printed here

>>>
May 31 09:37:25 crush acpid: exiting 
May 31 09:37:27 crush acpid: client connected from 14190[0:0] 
May 31 09:37:30 crush acpid: client connected from 14190[0:0] 
<<<

However, if I now stop acpid using the init script, then run
/usr/sbin/acpid -d, everything works fine. The action is executed, and
the following is observed on the console:

>>>
crush:/etc/acpi/events$ sudo /usr/sbin/acpid -d
acpid: starting up
acpid: parsing conf file /etc/acpi/events/power
acpid: 1 rule loaded
acpid: client connected from 14190[0:0]
acpid: 1 client rule loaded
acpid: client connected from 14190[0:0]
acpid: 1 client rule loaded
acpid: received event "button/power PWRF 00000080 0000003d"
acpid: rule from 14190[0:0] matched
acpid: notifying client 14190[0:0]
acpid: rule from 14190[0:0] matched
acpid: notifying client 14190[0:0]
acpid: rule from /etc/acpi/events/power matched
acpid: executing action "/etc/init.d/gdm restart"
BEGIN HANDLER MESSAGES
Stopping GNOME Display Manager: gdm.
Starting GNOME Display Manager: gdm.
END HANDLER MESSAGES
acpid: action exited with status 0
acpid: 3 total rules matched
acpid: completed event "button/power PWRF 00000080 0000003d"
acpid: client connected from 15592[0:0]
acpid: 1 client rule loaded
acpid: client connected from 15592[0:0]
acpid: 1 client rule loaded
<<<

However, clearly this is not really a way to be running acpid regularly.
Also, switching back to acpid 1.0.4-5. This is the option I've taken for
the moment.

If you'd like any further information from me, just let me know and
I'll update the bug report as soon as I can.

All the best,
-Dave.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (550, 'testing'), (450, 'unstable'), (450, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.3
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages acpid depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  lsb-base                      3.2-11     Linux Standard Base 3.2 init scrip
ii  module-init-tools             3.4-1      tools for managing Linux kernel mo

acpid recommends no packages.

-- no debconf information
event=button/power.*
action=/etc/init.d/gdm restart

Reply via email to