LWN.net Logo

A single power preference knob

A single power preference knob

Posted Jun 24, 2010 16:51 UTC (Thu) by nescafe (subscriber, #45063)
In reply to: A single power preference knob by Tobu
Parent article: A single power preference knob

Introspection is of limited usability -- it is ultimately up to the end user or the distro to decide what level of power management makes sense for a given use case. I prefer the more complete documentation option.


(Log in to post comments)

A single power preference knob

Posted Jun 24, 2010 23:04 UTC (Thu) by hummassa (subscriber, #307) [Link]

I disagree strongly. I think this kind of parameters should be enumerable in a ALSA mixer like way.

A single power preference knob

Posted Jun 25, 2010 1:20 UTC (Fri) by nescafe (subscriber, #45063) [Link]

Enumerable is fine -- exposing them all in a /sys/power/powersave_knobs directory (or wherever) would be awesome. Once that is done, we can work on adding features that make it easier to introspect on them.

A single power preference knob

Posted Jun 25, 2010 0:12 UTC (Fri) by Tobu (subscriber, #24111) [Link]

Hopefully the userland can figure out a value from the introspection. If the knob exposes a range with two examples, a “powersave” value and a “balanced” value, the userland can pick the powersave value for powersave and more energy-efficient modes, and the balanced value for balanced and more performance-oriented modes. Generally: pick the example nearest the desired mode.

If you have a more advanced user willing to figure things out, you can let them view the range, pick values and submit a patch, but that doesn't need to be the default user experience.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds