View Single Post
Posts: 10 | Thanked: 0 times | Joined on May 2010
#3
Originally Posted by Sash View Post
Have you tried doing it with the sudo followed by the command. The "| sudo gainroot" method wasn't working for me on Queen BeeCon so I used the following :

sudo /usr/sbin/kernel-load /home/user/MyDocs/files/overclock900

(where overclock900 is my copied/modified file of the kernel power setting for 900Mhz).
I just tried that for the hell of it and it doesn't work. It actually completely freezes up my widget screen I'm assuming because it's waiting for the sudo password.

I tried something else, that is creating a script called ideal and default that just executes
Code:
#!/bin/sh
/usr/sbin/kernel-load /usr/share/kernel-power-settings/default
I then added an entry in sudoers.d to add the script in sudoers permissions and tried executing it without root but it does not work.



... scratch all that. I just realized I have to prepend sudo to the command to run it. I was just executing the command, assuming it would run with root permissions automatically. I'll just leave what I wrote above so someone doesn't accidentally lock up their widget/desktop screen!