Sepero / temp-throttle

A shell script for throttling system CPU frequency based on a desired maximum temperature
Other
243 stars 64 forks source link

error when running script #3

Closed ghost closed 11 years ago

ghost commented 11 years ago

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

Sepero commented 11 years ago

I may not be able to solve your issue without a lot more information about your system.

  1. What distribution are you running?
  2. What Linux kernel are you using? (uname -a)
  3. What is the output of ls -l -R /sys/devices/system/cpu* ?
ghost commented 11 years ago

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

Sepero commented 11 years ago

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.

Sepero commented 11 years ago

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

ghost commented 11 years ago

it works, thanks for the fix