Li, Aubrey wrote: > Alexander Kolbasov wrote: > >> Li, Aubrey <aubrey.li at intel.com> wrote: >> >> Aubrey> Eric.Saxe wrote: >> >> >> Alexander Kolbasov wrote: >> >>> Why does powertop should be run as root? If I have enough >> >>> privilidges to run dtrace shouldn't I be able to run powertop >> as >>> well? >> >>> >> >> Yes, dtrace privileges should be enough. >> >> >> >> -Eric >> >> Aubrey> er..., device driver suggestion and action need >> root to touch the system >> Aubrey> configuration file, like /etc/power.conf ...... >> >> Probably, but for just monitoring there is no real need, so it should >> allow running as non-root. >> >> - akolb > > device driver suggestion and action is a part of powertop. > when it detects the system configuration is tunable for power saving, > it will give a method to the user to do it. so, root need to touch > configuration > file. Do you have a better idea? >
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. Rafael
