Certain commands in /etc/acpi/power.sh prevent pm-powersave to switch on

Bug #500997 reported by Lele83x
10
This bug affects 2 people
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/acpi-support/key-constants || exit 0
#
#. /usr/share/acpi-support/policy-funcs
#
#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.

Revision history for this message
Lele83x (lele83x) wrote :
Revision history for this message
Steve Langasek (vorlon) wrote :

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.

Changed in acpi-support (Ubuntu):
status: New → Invalid
Revision history for this message
Lele83x (lele83x) wrote :

Instead of putting it as invalid isn't it more logical to tell me what package isn't working here ? Maybe pm-utils ? Thank you for the help.

Revision history for this message
Steve Langasek (vorlon) wrote :

It's not a pm-utils bug either; if there is a bug here at all, it's in whatever desktop power manager you have running, but you haven't given enough information here to see which power manager that is.

Revision history for this message
Lele83x (lele83x) wrote :

Sorry, I believed it was already intended. Anyway I have gnome-power-manager, how can I include the info that are automatically gathered with apport in this bug ?

Revision history for this message
Lele83x (lele83x) wrote : apport-collect data

Architecture: i386
DistroRelease: Ubuntu 9.10
Package: gnome-power-manager 2.28.1-0ubuntu1
PackageArchitecture: i386
ProcEnviron:
 SHELL=/bin/bash
 LANG=it_IT.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-18.55-generic
Uname: Linux 2.6.31-18-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

affects: acpi-support (Ubuntu) → gnome-power-manager (Ubuntu)
Changed in gnome-power-manager (Ubuntu):
status: Invalid → New
Revision history for this message
Lele83x (lele83x) wrote : Dependencies.txt
Revision history for this message
Lele83x (lele83x) wrote : DevkitPower.txt
Revision history for this message
Lele83x (lele83x) wrote : GConfNonDefault.txt
Revision history for this message
Lele83x (lele83x) wrote : XsessionErrors.txt
Revision history for this message
Lele83x (lele83x) wrote : gnome-power-bugreport.txt
tags: added: apport-collected
Revision history for this message
Lele83x (lele83x) wrote :

I have changed the package from pm-utils to gnome-power-manager as you suggested and collected the standard informations.

description: updated
Lele83x (lele83x)
description: updated
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. A new version of GNOME Power Manager is available on Maverick and we are wondering if this bug is still an issue for you with that version? Could you please test and comment back? Thanks in advance.

Changed in gnome-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-power-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-power-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.