Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #273989

Re: lower CPU speed

From Hans <hans.ullrich@loop.de>
Newsgroups linux.debian.user
Subject Re: lower CPU speed
Date 2024-10-23 22:50 +0200
Message-ID <JAQsO-3KVR-7@gated-at.bofh.it> (permalink)
References <JAOAF-3JMx-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Am Mittwoch, 23. Oktober 2024, 20:46:05 CEST schrieb Eben King:
> I have a variable-speed CPU.  Normally the OS manages it.  If I want to make
> less heat inside the case, is it possible to cap it at a certain speed?

Try the command "cpufreq-set" like the example:

cpufreq-set -c 0 -u 800MHz

or any frequency your cpu can use.

I added this command to a little shell script named "cpufreq-min.sh" and copied it to /usr/bin/

So the cpu is forced to stay low on frequency. There is another script, called "cpufreq-max.sh" 
which does set the opposite, I guess you know the trick.

Note: You must set each cpu seperately, so if you got i.e. 4 cores, your sript will need 4 lines for 
each core, like: 

---

#:/bin/bash

cpufreq-set -c 0 -u 800MHz
cpufreq-set -c 1 -u 800MHz
cpufreq-set -c 2 -u 800MHz
cpufreq-set -c 3 -u 800MHz

---

This got the advantage, you can control each core seperately.

Hope this helps.

Best

Hans

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

lower CPU speed Eben King <eben@gmx.us> - 2024-10-23 20:50 +0200
  Re: lower CPU speed Michael Kjörling <c9bc136c6063@ewoof.net> - 2024-10-23 21:10 +0200
    Re: lower CPU speed Lee <ler762@gmail.com> - 2024-10-23 23:50 +0200
      Re: lower CPU speed Hans <hans.ullrich@loop.de> - 2024-10-24 17:10 +0200
  Re: lower CPU speed Mike <debian@good-with-numbers.com> - 2024-10-23 22:30 +0200
  Re: lower CPU speed eben@gmx.us - 2024-10-23 22:30 +0200
  Re: lower CPU speed Greg Wooledge <greg@wooledge.org> - 2024-10-23 22:50 +0200
    Re: lower CPU speed Hans <hans.ullrich@loop.de> - 2024-10-23 23:10 +0200
      Re: lower CPU speed eben@gmx.us - 2024-10-23 23:30 +0200
  Re: lower CPU speed Hans <hans.ullrich@loop.de> - 2024-10-23 22:50 +0200
    Re: lower CPU speed eben@gmx.us - 2024-10-23 23:20 +0200

csiph-web