• Welcome to BOINC-AUSTRALIA FORUM.

News:

If you have forgotten your password use your email address to reset HERE

Main Menu

CPU throttling in Linux to control CPU temps

Started by jave808, December 21, 2019, 10:20:29 AM

jave808

Hi,
Last night I was looking for something to throttle the CPU in order to control the CPU temps whilst crunching.  Remembering that Google was my friend, I discovered this shell script here - https://github.com/Sepero/temp-throttle

All good I thought. After some initial testing I wanted the script to startup at boot.  I initially added the script to a rc.local file located in /etc/init.d. But that didn't work.

So I posted a question on the Linux Mint forums and I was quickly given a solution.  You can view the post here - https://forums.linuxmint.com/viewtopic.php?f=46&p=1731265

The trick is to start up the script as a "service".  That's it!  :BigGrin

PC1: Intel Xeon E5-2697v3, 64GB DDR4 ECC, Quadro M5000 & M4000, Linux Mint 22.3 Cinnamon
PC2: AMD Ryzen 7 5825U, 32GB DDR4, Radeon Graphics, Win11 Pro 26H2
PC3: AMD Ryzen 7 6800H, 32GB DDR5, Radeon Vega Mobile Graphics, Ubuntu 26.04.1 Cinnamon

Dingo

Thanks jave808 that could be very good to run in the summer.  I will give it a try and what temperature did you pick and did the script work ??







Have a look at the BOINC@AUSTRALIA

Facebook Page and join and also the Twitter Page.

Proud Founder and member of BOINC@AUSTRALIA
My Luck Prime 2060937 digits.
Have a look at my  Web Cam of Parliament House Ottawa, CANADA

jave808

@Dingo - temp I chose was 60 degC but that's the ideal temp for my AMD FX8350 CPU, yours will probably differ.  And yes, the script works and now I'm one happy chappy!

Also, you may have to install a package called cpufrequtils with

sudo apt-get install cpufrequtils

Note that I'm using an Ubuntu based distro. Others versions of Linux may need a different setup to get the script to work at boot up.
PC1: Intel Xeon E5-2697v3, 64GB DDR4 ECC, Quadro M5000 & M4000, Linux Mint 22.3 Cinnamon
PC2: AMD Ryzen 7 5825U, 32GB DDR4, Radeon Graphics, Win11 Pro 26H2
PC3: AMD Ryzen 7 6800H, 32GB DDR5, Radeon Vega Mobile Graphics, Ubuntu 26.04.1 Cinnamon