Package: acpid
Version: 1.0.6-10
Severity: important

I am starting acpid in a way to avoid the acpi-support nightmare,
using /etc/defaults/acpid to yield

  /usr/sbin/acpid -c /etc/local-acpi/events

in /etc/local-acpi/events, I have e.g.

  lapse:../local-acpi|master|events% cat thinkpad-wifi                         
#6420
  event=ibm/hotkey HKEY 00000080 00001005
  action=/etc/local-acpi/thinkpad-wifi

and /etc/local-acpi/thinkpad-wifi is attached.

After a system boot, if I cause that ACPI event, acpid reacts
(according to strace, see acpid-thinkpad-widi.strace.1.bz2
attached), but there are a lot of EBADF, and even though the script
seems to run, it fails to load the module.

If I restart acpid and repeat the event, then it works, until the
next system reboot. See acpid-thinkpad-widi.strace.2.bz2 for the
second strace.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-etchnhalf.1+scoflowctrl.1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

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

acpid recommends no packages.

acpid suggests no packages.

-- no debconf information


-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems
#!/bin/sh
set -eu

MODULE=ath_pci
/sbin/modinfo $MODULE >/dev/null 2>&1 || MODULE=ath5k

MODULE=ath5k

IFACE=wifi

if grep -q $MODULE /proc/modules; then
  logger -- "disabling wifi ($MODULE)..."
  ifdown $IFACE || :
  rmmod $MODULE
else
  logger -- "enabling wifi ($MODULE)..."
  modprobe $MODULE
  ifup $IFACE || :
fi

exit 0

Attachment: acpid-thinkpad-widi.strace.1.bz2
Description: Binary data

Attachment: acpid-thinkpad-widi.strace.2.bz2
Description: Binary data

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to