It appears this is related to sudo permissions...

on Ubuntu Server, I can not do this via sudo, but if I su to root, I am
able to:

leo@ubuntu:~$ sudo echo "2601000" > 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed; echo $? 
-bash: /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed: Permission denied
1
leo@ubuntu:/sys/devices/system/cpu/cpu0/cpufreq$ sudo su
[sudo] password for leo: 
root@ubuntu:/sys/devices/system/cpu/cpu0/cpufreq# echo "userspace" >> 
scaling_governor
root@ubuntu:/sys/devices/system/cpu/cpu0/cpufreq# cat scaling_governor 
userspace
root@ubuntu:/sys/devices/system/cpu/cpu0/cpufreq# echo "2601000" > 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed; echo $?
0

How would one go about adding the ability to echo things into this via
sudo? :( this breaks some tests

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1035050

Title:
  Unable to set scaling frequency on cpu with Precise server

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1035050/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to