Toggle SATA ALPM (Agressive Link Power Management) on/off when on battery/mains

Bug #254695 reported by Tore Anderson
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pm-utils (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Intrepid by Thomas Loo
Nominated for Jaunty by Thomas Loo
Nominated for Karmic by Forest

Bug Description

ALPM is a feature that enables SATA AHCI controllers to save some power at the expense of performance. This feature can be controlled from Linux since version 2.6.24 (I believe).

I've attached a script (based on /usr/lib/pm-utils/power.d/sched-powersave) that can be installed to /usr/lib/pm-utils/sata-alpm, and it will toggle the feature on/off when switching to battery/mains. I've verified that the scripts works as expected on my Lenovo ThinkPad X61s on a freshly updated Kubuntu Intrepid alpha-3.

Power management in Ubuntu is extremely confusing, with acpi-support, laptop-mode, pm-utils, HAL, and guidance-power-manager (and probably its GNOME counterpart) all doing many of the same things with considerable overlap. Hopefully someone will clean up this mess before Intrepid is released... Anyway, although handling power management features of the hard drive itself (hdparm -B) is done by laptop-mode and acpi-support (yes, both at the same time!), I submit this patch to pm-utils because scheduler power savings is enabled in a very similar way as SATA ALPM from pm-utils, so it kinda fit well here. If it's incorrect please reassign it and I will try to provide an updated patch.

Tore

Revision history for this message
Tore Anderson (toreanderson) wrote :
Revision history for this message
Henrique Ferreiro (henrique-ferreiro) wrote :
Changed in pm-utils (Ubuntu):
status: New → Invalid
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.