[ltp] New PowerTOP utility for Linux 2.6.21+ from Intel

Martin Milata linux-thinkpad@linux-thinkpad.org
Mon, 14 May 2007 19:50:39 +0200


On Mon, May 14, 2007 at 12:10:41PM -0400, Shem Multinymous wrote:
> On 5/14/07, Martin Milata <b42-ml@srck.net> wrote:
> >What about checking accelerometer status only if hdd is actually
> >spinning? Because when using laptop_mode, hdd is spun down most of the
> >time, but hdapsd is doing it's work all the time. Is something like that
> >possible?
> 
> Excellent idea. Caveats:
> 
> - You'll also need to keep polling if the driver is accessed via the
> input infrastructure (as a joystick).
> - IIRC some drives stupidly spin up when you ask them about their power 
> mode.

Ok, another stupid idea;)

If I understand correctly there are two independent timers set: one for
hdaps driver to periodicaly poll data from accelerometer and other for
hdapsd to poll data from the driver.

Wouldn't be possible for the driver to provide a file (sys or char dev),
from which hdapsd could read continuously and which would block until there
are new data available instead of openning the sys file periodically and
checking for values in it? This way only one timer would be needed ...

Just a thought, I better start doing something what I understand at
least a little bit ...