View Single Post
Posts: 36 | Thanked: 13 times | Joined on Dec 2009 @ Bandung, Indonesia
#26
Originally Posted by nokian-series View Post
Before reflash, i easly can do:
sudo echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
I don't think you could do that even before reflash.

Your command will run echo as root, but then pipe to a privileged file *without* root privileges.

For example, the following code rightly fails on my Ubuntu system (and on any Linux system):

Code:
$ sudo echo a > /hello
bash: /hello: Permission denied
What you should do is like this:

Code:
echo 900000 | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
(but you have to get sudo working correctly first)