[Pkg-acpi-devel] Bug#563343: ignoring custom events if ends with '.sh'

Ritesh Raj Sarraf rrs at researchut.com
Sat Jan 2 06:10:25 UTC 2010

Package: acpid
Version: 1:2.0.0-1
Severity: normal

Real problem was that my laptop's battery is almost dead, at least for the
acpi subsystem. When AC is switched off, I don't get a battery event because
there is no battery as per the OS.
But there is still like 3 minutes of battery remaining.

So the events I get is only ac_adapter. My requirement was to trap events and
fire up "shutdown in 1 minute". And abort the shutdown if returned to AC within a minute

I have done that with the attached scripts. Maybe we can put than in the examples.


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

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages acpid depends on:
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  module-init-tools             3.11-1     tools for managing Linux kernel mo

Versions of packages acpid recommends:
ii  acpi-support-base             0.130-1    scripts for handling base ACPI eve

acpid suggests no packages.

-- no debconf information
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acpi-power-mgmt.sh
Type: text/x-shellscript
Size: 275 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-acpi-devel/attachments/20100102/0bb79aaa/attachment.bin>

More information about the Pkg-acpi-devel mailing list