Am Mittwoch, 23. Oktober 2024, 22:47:54 CEST schrieb Greg Wooledge:
> On Wed, Oct 23, 2024 at 22:46:09 +0200, Hans wrote:
> > #:/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
> 
> For the record, that should be #!/bin/bash instead of #:/bin/bash
> (or you could use #!/bin/sh in this case, since you're not actually
> using any bash extensions).

Yes, of course, just a little typo.

Tried a second ago, if it still works. 

cpufreq-info | grep "current CPU" 
 current CPU frequency is 797 MHz. 
 current CPU frequency is 797 MHz. 
 current CPU frequency is 797 MHz. 
 current CPU frequency is 798 MHz. 
 current CPU frequency is 800 MHz. 
 current CPU frequency is 800 MHz. 
 current CPU frequency is 797 MHz. 
 current CPU frequency is 800 MHz.

Then ran "glxgears", which normally let the cpu raise to full clock speed, but 
got the same 
result: all cores are 800 MHz.

I am suing this, when my computer is working and will not need much cpu-power, 
for example, 
when building a livefile system. Most work then is writing to the harddrive, 
which does not need 
much cpu power. And no process can suddenly raise my cpu power! 

Such I can do unattended tasks safely. I believe, this is what the op wants to 
do.

Hans

Reply via email to