Package: acpi-support Version: 0.137-2 Severity: important Tags: patch I noticed the following error message upon boot:
,---- | Checking battery state.../usr/share/acpi-support/policy-funcs: 24: Syntax error: ")" unexpected (expecting "then") | done. `---- Among other things, this breaks the power button if no desktop environment is running. Here is a patch for this: --8<---------------cut here---------------start------------->8--- diff --git a/debian/patches/policy-funcs.diff b/debian/patches/policy-funcs.diff index 1bdedcb..cc7ad8a 100644 --- a/debian/patches/policy-funcs.diff +++ b/debian/patches/policy-funcs.diff @@ -25,7 +25,7 @@ PMS="$PMS guidance-power-manager.py dalston-power-applet" if pidof -x $PMS > /dev/null || - (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop kded kded loadedModules | grep -q klaptopdaemon) || -+ test "$XUSER" != "" && pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon) || ++ test "$XUSER" != "" && (pidof dcopserver > /dev/null && test -x /usr/bin/dcop && /usr/bin/dcop --user $XUSER kded kded loadedModules | grep -q klaptopdaemon) || PowerDevilRunning ; then echo 0; else --8<---------------cut here---------------end--------------->8--- -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.34-kms Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages acpi-support depends on: ii acpi-fakekey 0.137-2 tool to generate fake key events ii acpi-support-base 0.137-2 scripts for handling base ACPI eve ii acpid 1:2.0.6-1 Advanced Configuration and Power I ii lsb-base 3.2-23.1 Linux Standard Base 3.2 init scrip ii pm-utils 1.3.0-2 utilities and scripts for power ma ii x11-xserver-utils 7.5+1+b1 X server utilities Versions of packages acpi-support recommends: ii dbus 1.2.24-1 simple interprocess messaging syst pn radeontool <none> (no description available) ii vbetool 1.1-2 run real-mode video BIOS code to a pn xscreensaver | gnome-screensa <none> (no description available) Versions of packages acpi-support suggests: pn rfkill <none> (no description available) pn xinput <none> (no description available) -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org