Certain commands in /etc/acpi/power.sh prevent pm-powersave to switch on
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-power-manager (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: acpi-support
On Ubuntu Karmic 9.10 some of the commands in acpi-support script /etc/acpi/power.sh prevent the execution of its last command (pm-powersave) most of the time.
If I comment out every line before that then pm-powersave is run all the time when I plug/unplug AC.
Example:
-------
#!/bin/sh
#
#test -f /usr/share/
#
#. /usr/share/
#
#if [ -z "$*" ] && [ `CheckPolicy` = 0 ]; then
# exit;
#fi
#
pm-powersave $*
-------
at the same time gnome-power-manager does not trigger its brightness reduction command, even tough it acknowledges that the system is gone from ac to battery (the icon changes and the visual notification appears).
If I suspend the notebook and then get it back up, remaining on battery, both gnome-power-manager and pm-utils are run correctly, britghness is dimmed and the script in /usr/lib/pm-utils are executed.
Thank you for taking the time to report this concern and help to improve Ubuntu.
acpi-support is working as designed. If you have a desktop power manager running on your system, you should configure your powersaving policy there, not in acpi-support.