View Single Post
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#103
Originally Posted by Thesandlord View Post
Just a quick question. How do you change CPU mode without root? I don't think that is possible right?

Or you are doing the unthinkable, and running liqbase as root by default!
Thesandlord,
you are right, it requires root access to write to the required cpufreq area.
As part of the .deb package 3 short scripts are installed and added to sudoers.
liqbase-cpu-powersave
liqbase-cpu-ondemand
liqbase-cpu-performance

(i might not have the names correct, im on downtime for a bit now )

Upon switching in the UI these scripts are called with "sudo ..."

The alternative would have been to keep the entire application inside root, but I thought this was unacceptable.
 

The Following User Says Thank You to lcuk For This Useful Post: