How about allowing adding an option to dump the current settings (good/bad)
to a JSON file. There could be another option to read in the settings from a
JSON file, and an option that makes it apply the settings and quit.

We could then do:

powertop --write-tunables=tunables.txt --exit-immediately

edit the file to make change the good/bad settings then:

powertop --read-tunables=tunables.txt --exit-immediately


Cheers,
Keean.



On 14 February 2011 23:23, Auke Kok <[email protected]> wrote:

> On 02/08/11 03:59, Keean Schupke wrote:
>
>> Would it be possible to add a switch to the command line, that would make
>> powertop start, switch every possible tunable to "Good" and then quit again?
>>
>> It would be really cool to include this in my boot scripts to make sure
>> all powersaving features are enabled.
>>
>> It would also allow people to automatically benefit from new
>> recommendations added in future versions of powertop?
>>
>
> This has been suggested with the 1.x version before, and, we're really
> reluctant to implement this.
>
> It's simple enough to break someone's machine with this ("oops, we just
> turned off your keyboard and mouse"), and, you don't want to do this with
> some fallback code etc. ("did this fail the last time? skip that step from
> now on then").
>
> That just makes this too complicated to safely do, especially at startup.
> Which is why we don't.
>
> Powertop is a diagnostics tool. The tool should be used by your
> distribution to figure out default-good-out-of-the-box settings and include
> those in your distribution by default. That's really where you need to go
> and ask in the first place to tweak the knobs at boot time.
>
> Auke
>
>
_______________________________________________
Discuss mailing list
[email protected]
http://lists.lesswatts.org/listinfo/discuss

Reply via email to