 |
 |
 |
 |
| F15 Development The proper place for all things "F15." This section will be archived once F15 reaches final release. |

5th May 2011, 08:04 PM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 110

|
|
|
How do I change CPU speed in Gnome 3?
Are there any programs I can install that would do this in Gnome 3?
|

6th May 2011, 10:09 AM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 131

|
|
|
Re: How do I change CPU speed in Gnome 3?
Quote:
Originally Posted by simpleblue
Are there any programs I can install that would do this in Gnome 3?
|
according to gnome 3 devs an average user does not need to worry about the cpu speed, hence there is no applet for such a thing.
according to gnome 3 devs you don't need to inhibit your screen either, as an average user won't use it. it does not matter, that I have to sit in front of my computer for 20 minutes moving my mouse every couple of minutes, as my screen gets calibrated. they call it usability improvement - to help you focus on one task (calibrating your monitor) and not to get distracted while you're focused on your task
let's hope some one will write an extension to implement CPU Freq applet or something similar.
__________________
megaloman.org
|

6th May 2011, 11:23 AM
|
|
Registered User
|
|
Join Date: Sep 2009
Location: India
Posts: 93

|
|
|
Re: How do I change CPU speed in Gnome 3?
you can install cpupowerutils. Then use cpuspeed to control your cpu. Or just let it run as a daemon and it will automatically try to lower your power usage.
__________________
Fedora 15 x86_64, thinkpad edge 14
Common sense can not be compiled.
|

6th May 2011, 01:10 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,099

|
|
|
Re: How do I change CPU speed in Gnome 3?
In addition to calanor's recommendation, read the /etc/sysconfig/cpuspeed file - it has F15 info and some user settings.
No idea how GNOME 3 affects this because I don't use it.
|

6th May 2011, 02:14 PM
|
|
Registered User
|
|
Join Date: Dec 2004
Posts: 131

|
|
|
Re: How do I change CPU speed in Gnome 3?
Quote:
Originally Posted by sonoran
In addition to calanor's recommendation, read the /etc/sysconfig/cpuspeed file - it has F15 info and some user settings.
No idea how GNOME 3 affects this because I don't use it. 
|
I think, question was regarding CPU Frequency Scaling Monitor - a gnome applet, not compatible with Gnome 3. It allowed users to amend cpu scaling governor as well as force particular speed when needed, with a single click.
Gnome 3 brings a massive usability improvement - now instead of one single click, users have to do more clicks and, as a bonus, some command line typing too.
__________________
megaloman.org
|

6th May 2011, 07:34 PM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 110

|
|
|
Re: How do I change CPU speed in Gnome 3?
Thank you for all the replies.. After much research and fiddling I came up with some code that can change the CPU speed:
* Run at your own risk! *
# Run computer at Minimum CPU frequency/speed
In terminal copy and paste the following:
Code:
su -c 'yum -y install cpuspeed cpupowerutils; yes | cp /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq; /etc/init.d/cpuspeed restart'
# Run computer at Maximum CPU frequency/speed
In terminal copy and paste the following:
Code:
su -c 'yum -y install cpuspeed cpupowerutils; yes | cp /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq; yes | cp /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq; yes | cp /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq; yes | cp /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq; yes | cp /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq'
This code is good for up to a 4 core machine. Settings 'may' be reset upon resetting.
|

7th May 2011, 02:18 AM
|
 |
Fedora QA Community Monkey
|
|
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,760

|
|
|
Re: How do I change CPU speed in Gnome 3?
there is just about no reason for you ever to mess with this, really.
The kernel has been very good at handling CPU speeds for a while, now. It runs the CPU as fast as any running process can make use of it, and that's the optimal behaviour for just about every situation. No, running your CPU at lower speeds even when CPU-intensive processes are active does *not* save power, because it makes the CPU-intensive processes take longer and hence keeps the CPU non-idle for longer. The goal for ideal power management is always to get the CPU idle, and the best way to do that is to complete processes as fast as possible. So _even for power saving_, you want to run your CPU as fast as possible when it's actually needed.
This can be a bit tricky to understand, but it's really true. Except for very old CPUs which the kernel couldn't really control effectively, there is just about zero reason to set the CPU speed manually or install any third-party tools discussed in this thread any more.
|

7th May 2011, 03:21 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 110

|
|
|
Re: How do I change CPU speed in Gnome 3?
Quote:
Originally Posted by AdamW
there is just about no reason for you ever to mess with this, really.
The kernel has been very good at handling CPU speeds for a while, now. It runs the CPU as fast as any running process can make use of it, and that's the optimal behaviour for just about every situation. No, running your CPU at lower speeds even when CPU-intensive processes are active does *not* save power, because it makes the CPU-intensive processes take longer and hence keeps the CPU non-idle for longer. The goal for ideal power management is always to get the CPU idle, and the best way to do that is to complete processes as fast as possible. So _even for power saving_, you want to run your CPU as fast as possible when it's actually needed.
This can be a bit tricky to understand, but it's really true. Except for very old CPUs which the kernel couldn't really control effectively, there is just about zero reason to set the CPU speed manually or install any third-party tools discussed in this thread any more.
|
You make a great point.
For what I"m using this for it makes sense: I want to lower the laptops temperature because it freezes when it gets hot (yes, whatever distro, and it even freezes before grub). There is a huge difference in the decrease of heat produced when I do this.
|

7th May 2011, 03:30 AM
|
 |
Registered User
|
|
Join Date: Aug 2009
Location: In a cardboard box
Posts: 1,845

|
|
|
Re: How do I change CPU speed in Gnome 3?
Quote:
|
Less than a minute in the #fedora channel was enough to remind me why Fedora 13 was the last Fedora revision I had burned. I've found that whenever I am foolish enough to ask a question in #fedora, instead of getting help with what I have asked, I am bombarded with questions on why I am trying to do what I am doing.
|
http://jeffhoogland.blogspot.com/201...ays-wrong.html
__________________
I used to miss my wife but then my aim improved.
|

7th May 2011, 03:44 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: How do I change CPU speed in Gnome 3?
Quote:
Originally Posted by simpleblue
You make a great point.
For what I"m using this for it makes sense: I want to lower the laptops temperature because it freezes when it gets hot (yes, whatever distro, and it even freezes before grub). There is a huge difference in the decrease of heat produced when I do this.
|
I hesitate to ask ... but ... what make and model of laptop?
http://forums.fedoraforum.org/showthread.php?t=262259
|

7th May 2011, 03:57 AM
|
|
Registered User
|
|
Join Date: Nov 2010
Posts: 110

|
|
|
Re: How do I change CPU speed in Gnome 3?
Quote:
Originally Posted by Dan
|
It's a HP Pavillon dv6-2120a. I saw that thread you mentioned but didn't want to respond until I found out what the problem was. I'll try cleaning it as soon as I get a small enough screwdriver to open it up.
And no, decreasing the power did not work. If the load goes over 30-50% CPU (on 800Mhz, much sooner on full 2200Mhz) then it seemed to eventually trip out. No more HP computers for me.
|

7th May 2011, 04:25 AM
|
 |
Administrator
|
|
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,309

|
|
|
Re: How do I change CPU speed in Gnome 3?
Dang! I was afraid of that. Some of the dv6 line has the same issues and reputation.
|

7th May 2011, 06:09 AM
|
 |
Fedora QA Community Monkey
|
|
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,760

|
|
|
Re: How do I change CPU speed in Gnome 3?
Yeah, that's about the only valid reason to change the CPU speed manually; it might be nice to have some kind of tool for that specific purpose. I had a similar system myself, once - a Lenovo 3000 V100, it would hit its temp threshold (100 degC!) and reboot if run at full CPU usage for more than 15 minutes or so. What I did was buy one of those laptop cooling pad things - it actually helped a lot (knocked 20 degC off the temps).
|

7th May 2011, 06:25 AM
|
 |
Administrator
|
|
Join Date: Aug 2009
Posts: 6,613

|
|
|
Re: How do I change CPU speed in Gnome 3?
I have an old Dell here (P4 1.8ghz) that the kernel still doesn't seem to be able to control right. However, I have the opposite problem on that one. It sets it to the lower speed, and won't increase it to full speed when needed. It sets it to 1.2GHz and leave it there, no matter what the CPU load is. So I have to go in and set it manually to 1.8GHz if I wish it to run full speed.
It's only on that one system I have ever had a problem with the cpu speed, so I just chalk it up to something flakey in the Dell bios.
|

7th May 2011, 07:30 AM
|
 |
Fedora QA Community Monkey
|
|
Join Date: Dec 2008
Location: Vancouver, BC
Posts: 3,760

|
|
|
Re: How do I change CPU speed in Gnome 3?
yeah, P4s are around where it gets troublesome. The usual advice with P4s is just to turn off the clock controlling stuff entirely - blacklist the p4_clockmod kernel module...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 16:59 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|