![]() Registered Member ![]()
|
Hi,
I have a Core2Duo laptop, and have set the cpu/ondemand/up_threshold to 35 on a initialization script. It works fine until I logon to KDE. I noticed that once powerdevil starts, it sets the power management profile, and the up_threshold goes back to 80 (the default). There is an option to run a script after setting the profile, but I need root proviledges to change things on sysfs. It seems the script doesn't run under powerdevil's privileges (since I tried and the settings are not changed) and I don't want to run kdesu and keep asking for passwords every time I boot or unplug the power cord. How can I apply my settings without getting a password screen? Note: I tried adding the command line to the sudoers file with NOPASSWD. It runs fine from konsole, but nothing happens if add exactly the same command to powerdevil. Thanks. |
![]() Administrator ![]()
|
You need to change the configuration of the System wide CPU power profiles. You can see this setting in Powerdevil, it is usually called "powersave", "performance", etc. You should be able to find this in the documentation of the the power governor.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
bcooksley, change exactly what? There is an option to change the governor, but I don't see any advanced option to set the up_threshold for the ondemand governor. Is this "systemm wide power profile" in a different screen than what I get when I edit the profiles through the "Edit Profiles" in the power management control panel? Thanks. |
![]() Administrator ![]()
|
The setting in question is not changable through the Powerdevil configuration interface in System Settings.
I do not know where this setting is located, but it is likely managed by HAL ( Who Powerdevil asks to change the system configuration ) http://cpufreqd.sourceforge.net/manpage ... nf.5.shtml http://en.gentoo-wiki.com/wiki/CPU_Frequency_Scaling
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thanks bcooksley.
But as you can see, my original question was not "how to do it", but "how to do it when power devil changes the profile". I can change it manually or through a script, but powerdevil was not running them. Anyway, I solved the problem by using kdesudo instead of kdesu, that will take into account the sudoers file. Thanks. |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]