acpi-support calls pm-powersave even when upower is running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Lucid |
Fix Released
|
High
|
Steve Langasek | ||
Maverick |
Fix Released
|
High
|
Steve Langasek |
Bug Description
SRU justification:
On some hardware, calling pm-utils power.d scripts twice causes system crashes.
Regression potential:
If I got this wrong, then in some cases users will have nothing processing power events at all, which may result in the system being left in "performance" mode while on battery.
Binary package hint: acpi-support
acpi-support in lucid calls pm-powersave unconditionally on ACPI power events, but in lucid, upower is installed by default on the Ubuntu desktop and *also* calls pm-powersave, triggering on udev events. This results in running all the /usr/lib/
(Since upower is unfortunately not yet part of the KDE stack, we will need to be selective at runtime rather than being able to prune this code entirely.)
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: acpi-support 0.136
ProcVersionSign
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Tue May 18 12:15:25 2010
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: acpi-support
description: | updated |
Changed in acpi-support (Ubuntu Lucid): | |
status: | Triaged → In Progress |
This bug was fixed in the package acpi-support - 0.137
---------------
acpi-support (0.137) maverick; urgency=low
* power.sh, lib/policy-funcs: don't call pm-powersave if upower is running,
as upower already does this for us unconditionally and we don't want to
run these scripts twice. Eventually power.sh should be dropped entirely,
but Kubuntu hasn't yet transitioned to use upower. LP: #582471.
* lib/power-funcs: drop dependency on finger, we can do this just as well
using who from coreutils.
-- Steve Langasek <email address hidden> Tue, 22 Jun 2010 19:16:30 -0700