Closed ghost closed 11 years ago
I may not be able to solve your issue without a lot more information about your system.
uname -a
)ls -l -R /sys/devices/system/cpu*
?1.Ubuntu 12.04LTS 64 bit 2.Linux cpatrick08-laptop 3.10.5-031005-generic #201308040618 SMP Sun Aug 4 10:19:06 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 3.http://pastebin.com/kVdpvyKu
You do not have the file /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
The script uses this file to find out what scaling frequencies are available to use. This file is created by the Linux kernel at bootup. It appears that you are using a custom made kernel, and it may be possible that this is something you didn't compile into your custom kernel.
You may want to try running the Ubuntu stock kernel and rerun temp_throttle. If using stock Ubuntu kernel doesn't make file appear, then I'm not yet sure how else it would be possible to discover the cpu frequencies available. It may be a limitation of your system?
Please write back with your results.
Hi cpatrick08, I recently received a patch from a great guy, Wolfgang Ocker. His patch should hopefully resolve the issue of missing cpu frequencies. Please write back promptly and let us know how it works for you. I intend to close this issue based on your positive response. Thanks
it works, thanks for the fix
I git cloned the repo and it ran fine the first time. I shutdown my laptop, then when I rebooted my laptop and ran the script I get following error message
cat: /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies: No such file or directory unthrottle ./temp_throttle.sh: line 42: echo: write error: Invalid argument ./temp_throttle.sh: line 42: echo: write error: Invalid argument ./temp_throttle.sh: line 42: echo: write error: Invalid argument ./temp_throttle.sh: line 42: echo: write error: Invalid argument