improper APM settings chosen when power status cannot be determined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdparm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On my *desktop* machine, on_ac_power returns 255 as a status code, which according to the man page means "Power status could not be determined". This is reasonable, but unfortunately /etc/apm/
/etc/apm/
(*) relevant snippet:
choose_power ()
{
if on_ac_power > /dev/null
then
power_performance
else
power_conserve
fi
}
Note the aforementioned file is part of the hdparm package, which is reasonable to install on a desktop machine:
$ dpkg -S apm/event. d/20hdparm event.d/ 20hdparm
hdparm: /etc/apm/