Public bug reported:

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/event.d/20hdparm takes it
(*) as meaning "use the conservative setting" which sets the hard drive
to spin down after 90 seconds of inactivity. This is entirely
inappropriate for a desktop machine, as now I have to wait several
seconds each time I access my non-system hard drive.

/etc/apm/event.d/20hdparm should really take 255 to mean "this is
unlikely to be a battery-powered machine at all, don't mess with the
power management settings".

(*) relevant snippet:

choose_power ()
{
    if on_ac_power > /dev/null
    then
        power_performance
    else
        power_conserve
    fi
}

** Affects: hdparm (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: laptop-mode-tools (Ubuntu) => hdparm (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1502307

Title:
  improper APM settings chosen when power status cannot be determined

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/1502307/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to