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


Groups > comp.os.linux.hardware > #2285 > unrolled thread

Running desktop cool and silent

Started byrusi <rustompmody@gmail.com>
First post2014-04-08 06:19 -0700
Last post2014-04-09 19:35 +0000
Articles 8 — 3 participants

Back to article view | Back to comp.os.linux.hardware


Contents

  Running desktop cool and silent rusi <rustompmody@gmail.com> - 2014-04-08 06:19 -0700
    Re: Running desktop cool and silent Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2014-04-08 18:34 +0000
      Re: Running desktop cool and silent rusi <rustompmody@gmail.com> - 2014-04-08 18:53 -0700
        Re: Running desktop cool and silent rusi <rustompmody@gmail.com> - 2014-04-08 21:45 -0700
        Re: Running desktop cool and silent Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2014-04-09 06:22 +0000
          Re: Running desktop cool and silent rusi <rustompmody@gmail.com> - 2014-04-09 09:47 -0700
    Re: Running desktop cool and silent buck <buck@private.mil> - 2014-04-08 19:56 +0000
      Re: Running desktop cool and silent buck <buck@private.mil> - 2014-04-09 19:35 +0000

#2285 — Running desktop cool and silent

Fromrusi <rustompmody@gmail.com>
Date2014-04-08 06:19 -0700
SubjectRunning desktop cool and silent
Message-ID<7cc646cc-8abe-4d78-ae55-dc1caa959fa5@googlegroups.com>
First time around here... dont know if this question if appropriate.

I want to run my desktop (running debian testing) cool and silent.
Slow is not a big issue.
[Just for context its 40 deg C or 104 F out here]

Now Ive done this in the past with various laptops:
cpufreq-set -u something
This clamps the highest clock freq to whatever is given.
Thereafter the laptop runs slightly slower but much cooler and less noisy.

However with my desktop this is not working.

Output of cpufreq-info is 
--------------------
$ sudo cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq..., please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 2.40 GHz - 3.00 GHz
  available frequency steps: 3.00 GHz, 2.40 GHz
  available cpufreq governors: userspace, conservative, powersave, ondemand, performance
  current policy: frequency should be within 3.00 GHz and 3.00 GHz.
                  The governor "userspace" may decide which speed to use
                  within this range.
  current CPU frequency is 3.00 GHz (asserted by call to hardware).
  cpufreq stats: 3.00 GHz:100.00%, 2.40 GHz:0.00%
analyzing CPU 1:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 1
  CPUs which need to have their frequency coordinated by software: 1
  maximum transition latency: 10.0 us.
  hardware limits: 2.40 GHz - 3.00 GHz
  available frequency steps: 3.00 GHz, 2.40 GHz
  available cpufreq governors: userspace, conservative, powersave, ondemand, performance
  current policy: frequency should be within 3.00 GHz and 3.00 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 3.00 GHz (asserted by call to hardware).
  cpufreq stats: 3.00 GHz:100.00%, 2.40 GHz:0.00%
-----------------------


Now this suggests that this cpu should be able to run at 2.4 as well as 3 GHz
However I am unable to set it to 2.4 GHz

[toc] | [next] | [standalone]


#2286

FromHenrik Carlqvist <Henrik.Carlqvist@deadspam.com>
Date2014-04-08 18:34 +0000
Message-ID<53444144$0$297$14726298@news.sunsite.dk>
In reply to#2285
On Tue, 08 Apr 2014 06:19:04 -0700, rusi wrote:
> Now this suggests that this cpu should be able to run at 2.4 as well as
> 3 GHz However I am unable to set it to 2.4 GHz

What does "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" say?

I use the following startup script myself to get CPU frequencies adapted 
to load:

-8<---------------------
/sbin/modprobe acpi-cpufreq
/sbin/modprobe cpufreq_ondemand
find /sys/devices/system/cpu -name scaling_governor -exec \
                              sh -c 'echo ondemand > {}' \;
-8<---------------------

However, you might want to try other values than ondemand as you don't 
want the CPU frequency to rise at load.

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc351(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

[toc] | [prev] | [next] | [standalone]


#2288

Fromrusi <rustompmody@gmail.com>
Date2014-04-08 18:53 -0700
Message-ID<296bd243-d0ee-45d3-b301-4fa4eb9faef3@googlegroups.com>
In reply to#2286
On Wednesday, April 9, 2014 12:04:44 AM UTC+5:30, Henrik Carlqvist wrote:
> On Tue, 08 Apr 2014 06:19:04 -0700, rusi wrote:
> > Now this suggests that this cpu should be able to run at 2.4 as well as
> > 3 GHz However I am unable to set it to 2.4 GHz

> What does "cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" say?

> I use the following startup script myself to get CPU frequencies adapted 
> to load:

> -8<---------------------
> /sbin/modprobe acpi-cpufreq
> /sbin/modprobe cpufreq_ondemand
> find /sys/devices/system/cpu -name scaling_governor -exec \
>                               sh -c 'echo ondemand > {}' \;
> -8<---------------------

> However, you might want to try other values than ondemand as you don't 
> want the CPU frequency to rise at load.

[In dir /sys/devices/system/cpu/cpu1/cpufreq]
I find

# cat scaling_available_governors 
userspace conservative powersave ondemand performance 

Ok so trying to set the governor...

# cat scaling_governor 
ondemand
# echo userspace > scaling_governor 
# cat scaling_governor
userspace

So I can change that. However...

# echo 2400000 > scaling_max_freq 
bash: echo: write error: Invalid argument

Even though
# cat scaling_available_frequencies 
3000000 2400000 

[toc] | [prev] | [next] | [standalone]


#2289

Fromrusi <rustompmody@gmail.com>
Date2014-04-08 21:45 -0700
Message-ID<f2c067a5-e416-4a8f-8cbf-15be4978cc47@googlegroups.com>
In reply to#2288
Just a (half-baked) status update:

On the desktop Ive an old (heavily used) 32-bit debian
And a new 64-bit ubuntu

The command
$ sudo cpufreq-set -c0 -u 2.4GHz # likewise -c1

works on ubuntu not on debian

Too many other variables to make much sense of ATM.
Still... In case someone sees/knows something

[toc] | [prev] | [next] | [standalone]


#2290

FromHenrik Carlqvist <Henrik.Carlqvist@deadspam.com>
Date2014-04-09 06:22 +0000
Message-ID<5344e71a$0$296$14726298@news.sunsite.dk>
In reply to#2288
On Tue, 08 Apr 2014 18:53:17 -0700, rusi wrote:
> Ok so trying to set the governor...
> 
> # cat scaling_governor
> ondemand
> # echo userspace > scaling_governor
> # cat scaling_governor
> userspace

My guess is that you would prefer the "powersave" governor instead.
 
> So I can change that. However...
> 
> # echo 2400000 > scaling_max_freq
> bash: echo: write error: Invalid argument
> 
> Even though
> # cat scaling_available_frequencies
> 3000000 2400000


I haven't tried userspace myself, but I think the frequency should be set 
with the file "scaling_setspeed".

You might have a file called governors.txt among the kernel sources, that 
file explains some of this.

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc351(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost

[toc] | [prev] | [next] | [standalone]


#2296

Fromrusi <rustompmody@gmail.com>
Date2014-04-09 09:47 -0700
Message-ID<e4f44a66-6dad-4bf0-afec-0241b42a2af7@googlegroups.com>
In reply to#2290
On Wednesday, April 9, 2014 11:52:18 AM UTC+5:30, Henrik Carlqvist wrote:
> On Tue, 08 Apr 2014 18:53:17 -0700, rusi wrote:
> > Ok so trying to set the governor...
> > # cat scaling_governor
> > ondemand
> > # echo userspace > scaling_governor
> > # cat scaling_governor
> > userspace

> My guess is that you would prefer the "powersave" governor instead.

> > So I can change that. However...
> > # echo 2400000 > scaling_max_freq
> > bash: echo: write error: Invalid argument
> > Even though
> > # cat scaling_available_frequencies
> > 3000000 2400000

> I haven't tried userspace myself, but I think the frequency should be set 
> with the file "scaling_setspeed".

> You might have a file called governors.txt among the kernel sources, that 
> file explains some of this.

None of userspace, powersave and conservative quite work.
[Of course I could try a bit harder]

[toc] | [prev] | [next] | [standalone]


#2287

Frombuck <buck@private.mil>
Date2014-04-08 19:56 +0000
Message-ID<li1k9701ujs@news4.newsguy.com>
In reply to#2285
rusi <rustompmody@gmail.com> wrote in
news:7cc646cc-8abe-4d78-ae55-dc1caa959fa5@googlegroups.com: 

> I want to run my desktop (running debian testing) cool and silent.
> Slow is not a big issue.

I realize this isn't exactly what you're asking, but I add

cpufreq -c0 -g conservative
cpufreq -c1 -g conservative

to my dual core laptop's rc.local and like it fine...
-- 
buck

[toc] | [prev] | [next] | [standalone]


#2297

Frombuck <buck@private.mil>
Date2014-04-09 19:35 +0000
Message-ID<li47d80bci@news4.newsguy.com>
In reply to#2287
buck <buck@private.mil> wrote in news:li1k9701ujs@news4.newsguy.com:

> cpufreq -c0 -g conservative
> cpufreq -c1 -g conservative

Of course, that's cpufreq-set, not cpufreq.
Apology for blowing past that.
-- 
buck

[toc] | [prev] | [standalone]


Back to top | Article view | comp.os.linux.hardware


csiph-web