Eric Saxe wrote:

> Rafael Vanoni wrote:
>> 
>> Just thinking out loud here, as I don't know the code yet, but
>> decoupling the active part from the observational would solve it. If
>> the user wants to change power state conf in any way, ask for root
>> passwd. 
>> 
> This makes sense to me. The tool could detect when it has failed to
> make any changes (because of insufficient privledges, for example),
> and emit a helpful message.
> 
> -Eric

PowerTOP can run under two modes, dump mode and curse based
UI mode. dump mode doesn't give user a chance to change conf file.

So, how about use dtrace privilege in dump mode for just observation
and use root priviledge in UI mode so that the friendly user interface
is not
broken?

Thanks,
-Aubrey

Reply via email to