LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-22-2014, 01:07 PM   #1
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Rep: Reputation: 17
Fedora 20 No package cpuspeed available.


Hi,

my 3 1/2 year old laptop (Sony Z-series) overheats quickly and as a result shuts down.

Before installing Fedora 20 I have been using CentOS for a couple of years.
There I have been using the cpuspeed program to limit CPU frequency.
This worked fine.

I've been looking for a similar program/service for Fedora 20 all day but cannot find anything.
It's the F20 MATE spin, so compiz, no gnome.

Right now I am thinking about writing a script overriding the values in /sys/devices/cpu ...

Even the installation failed due to CPU overheat and I only got it on by opening a terninal as superuser and running 'nice -10 /usr/sbin/liveinst'.

Booting the laptop now is kind of playing lottery, it sometimes comes up, but mostly gets too hot.
So some system service might do the trick.

Any pointers or hints much appreciated.

Thanks for your time.
 
Old 05-22-2014, 02:06 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
When my laptop kept overheating I took it apart.
The fan was so full of dust it wasn't even funny so I replaced the fan.
In addition I cleaned the heat sink and put it back together.
It worked fine for about a month and than the graphics card died and it just kept locking up--

You could call Sony and see what the fee would be to repair it (if you want to and if you really want to keep it) -- I have a Sony Vaio running Fedora so I understand if you would want to keep it--
1-877-865-7669
http://esupport.sony.com/US/p/select...RECTOR=CONTACT

The sensors cmd should show just how hot your Sony is getting-
Code:
sensors -f | grep -i temp
If you can run the dmesg cmd before it shuts down the error or errors are a place to start.

Micro Center repairs laptops if your interested.
http://www.microcenter.com/site/products/closeout.aspx

http://www.linuxquestions.org/questi...ld-4175491753/
 
Old 05-23-2014, 07:45 AM   #3
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Original Poster
Rep: Reputation: 17
thanks for your reply Ztcoracat,
got hold of them at Vaio Repairs (Out of Warranty): 1-239-245-6378
will be a major repair that can include fan & motherboard replacement.
Price starting at $599.99 plus an extra $99 diagnostic fee, shipping not included.
I can give them another call for the work order and they'll send me a shipping box w/ return label.

Not sure I wanna spend a minimum of $700 on some repair of which I cannot be sure will fix the problem for good.

When I got the laptop I installed FC15 and later that year upgraded to FC16. Didn't like the desktops (gnome3 & xfce) and installed CentOS w/ gnome2.
That's when the latop fired up, fans going full speed and the system shutting itself down after 2 or 3 minutes.
Comparing package lists of FC & CentOS I found out that CentOS did not set any CPU governor, but the then included cpuspeed daemon program in Fedora did.
So next thing was installing cpuspeed, tried w/o any extra configuration (ondemand is the default) and my laptop was back to normal.

I still don't like gnome3 and was trying the RHEL 7 RC with MATE packages I hijacked from Fedora 19. That's when I was back to the old overheating problem.
To get me on a supported platform, I installed FC20 MATE spin.
Had a closer look around the Fedora repos but wasn't able to find any cpuspeed package.

The CPU in my laptop is an i7 M 640 running at 2.80GHz. Typical core temperature is 100°- 150° w/ CPU @ 1199MHz. ACPI critical temp is 217.4°, core critical 221°. The also included Nvidia GT216M (GeForce 330M) normally runs 10-20° hotter.

When limiting the max CPU frequency to 2666MHz, the system does not overheat. That's at least my experience with my laptop over the past two years.

For now, I will write a script. Already did override the 'scaling_max_freq' from the command line. So the biggest challenge will be to get it fiddled in with systemd.

Last edited by phlyer; 05-23-2014 at 07:56 AM.
 
Old 05-23-2014, 12:05 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by phlyer View Post
thanks for your reply Ztcoracat,
got hold of them at Vaio Repairs (Out of Warranty): 1-239-245-6378
will be a major repair that can include fan & motherboard replacement.
Price starting at $599.99 plus an extra $99 diagnostic fee, shipping not included.
I can give them another call for the work order and they'll send me a shipping box w/ return label.

Not sure I wanna spend a minimum of $700 on some repair of which I cannot be sure will fix the problem for good.

When I got the laptop I installed FC15 and later that year upgraded to FC16. Didn't like the desktops (gnome3 & xfce) and installed CentOS w/ gnome2.
That's when the latop fired up, fans going full speed and the system shutting itself down after 2 or 3 minutes.
Comparing package lists of FC & CentOS I found out that CentOS did not set any CPU governor, but the then included cpuspeed daemon program in Fedora did.
So next thing was installing cpuspeed, tried w/o any extra configuration (ondemand is the default) and my laptop was back to normal.

I still don't like gnome3 and was trying the RHEL 7 RC with MATE packages I hijacked from Fedora 19. That's when I was back to the old overheating problem.
To get me on a supported platform, I installed FC20 MATE spin.
Had a closer look around the Fedora repos but wasn't able to find any cpuspeed package.

The CPU in my laptop is an i7 M 640 running at 2.80GHz. Typical core temperature is 100°- 150° w/ CPU @ 1199MHz. ACPI critical temp is 217.4°, core critical 221°. The also included Nvidia GT216M (GeForce 330M) normally runs 10-20° hotter.

When limiting the max CPU frequency to 2666MHz, the system does not overheat. That's at least my experience with my laptop over the past two years.

For now, I will write a script. Already did override the 'scaling_max_freq' from the command line. So the biggest challenge will be to get it fiddled in with systemd.
Your Welcome-

For that price you could purchase a new machine--

I think KDE and Gnome are RAM hogs.
Did you run Memtest?

Glad limiting the max is working--

In some cases installing a newer version of the kernel can help if there are hardware or performance issue's.
Fedora 20 is already using kernel 3.14.4 so the highest may or may not help. Mainline now is 3.15-rc6--
https://www.kernel.org/

http://linux-diag.sourceforge.net/

We have members here that are very good with hardware; I hope one chimes in for you.

Last edited by Ztcoracat; 05-23-2014 at 12:10 PM. Reason: Link for Diagnostic Tools
 
Old 05-23-2014, 04:53 PM   #5
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Original Poster
Rep: Reputation: 17
No need for a script!
So when starting writing a script I did it SystemV style (creature of habit) and then was looking around where I should put my systemd service definition for that script.
That's when I got into the '/usr/lib/systemd/system' directory. And there I found: cpupower.service.
Thought they have a 'single file' policy , no more config here and there...
When looking at the file (cat cpupower.service) I found out it actually uses a config file:

Code:
[Unit]
Description=Configure CPU power related settings
After=syslog.target

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/sysconfig/cpupower
ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS
ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS

[Install]
WantedBy=multi-user.target
So cat on that:

Code:
# See 'cpupower help' and cpupower(1) for more info
CPUPOWER_START_OPTS="frequency-set -g performance"
CPUPOWER_STOP_OPTS="frequency-set -g ondemand"
and there you go, there was the culprit! This configuration selects the 'performance' governor!
Followed the instructions for 'more info' in that file and eventually changed the content to:
Code:
# See 'cpupower help' and cpupower(1) for more info
CPUPOWER_START_OPTS="--cpu all frequency-set --governor ondemand --min 1199000 --max 2666000"
CPUPOWER_STOP_OPTS="frequency-set -g ondemand"
After that change, I restarted the service:
Code:
systemctl restart cpupower
and double checked with the status option of my own script that everything was the way I want it...
And it was. Yay!
 
Old 05-23-2014, 07:47 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Was this argument (option):
Code:
--cpu all frequency-set --governor ondemand
listed under the "cpupower" help?

Finding the culprit is joy insn't it!-
 
Old 05-24-2014, 02:17 PM   #7
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Ztcoracat View Post
Was this argument (option):
...
listed under the "cpupower" help?
...
nope, but I've been poking around a bit
'cpupower help' just gives:
Quote:
Usage: cpupower [-d|--debug] [-c|--cpu cpulist ] <command> [<args>]
Supported commands are:
frequency-info
frequency-set
idle-info
idle-set
set
info
monitor
help

Not all commands can make use of the -c cpulist option.
I then tried 'cpupower help frequency-set' which opened a man page:
Code:
CPUPOWER-FREQUENCY-SET(1)                                cpupower Manual                               CPUPOWER-FREQUENCY-SET(1)

NAME
       cpupower frequency-set - A small tool which allows to modify cpufreq settings.

SYNTAX
       cpupower [ -c cpu ] frequency-set [options]

DESCRIPTION
       cpupower   frequency-set  allows  you  to  modify  cpufreq  settings  without  having  to  type  e.g.  "/sys/devices/sys‐
       tem/cpu/cpu0/cpufreq/scaling_set_speed" all the time.

OPTIONS
       -d --min <FREQ>
              new minimum CPU frequency the governor may select.

       -u --max <FREQ>
              new maximum CPU frequency the governor may select.

       -g --governor <GOV>
              new cpufreq governor.
when palying around with 'cpupower' I noticed that settings applied for one CPU where propagated to the others after a couple of seconds.
Because I want them to be set immediately for all I added the '--cpu all' option to the config.
BTW: looks like Fedora only install the package on a system supports frequency scaling, or maybe laptops only?
Just had a look at the VM installation I did for playing w/ multiple monitors. Didn't have it installed.
The program is included in the package 'kernel-tools' (yum install kernel-tools). This also installs the 'cpupower.service' but does not enable it.
 
Old 05-25-2014, 10:44 AM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by phlyer View Post
nope, but I've been poking around a bit
'cpupower help' just gives:

I then tried 'cpupower help frequency-set' which opened a man page:
Code:
CPUPOWER-FREQUENCY-SET(1)                                cpupower Manual                               CPUPOWER-FREQUENCY-SET(1)

NAME
       cpupower frequency-set - A small tool which allows to modify cpufreq settings.

SYNTAX
       cpupower [ -c cpu ] frequency-set [options]

DESCRIPTION
       cpupower   frequency-set  allows  you  to  modify  cpufreq  settings  without  having  to  type  e.g.  "/sys/devices/sys‐
       tem/cpu/cpu0/cpufreq/scaling_set_speed" all the time.

OPTIONS
       -d --min <FREQ>
              new minimum CPU frequency the governor may select.

       -u --max <FREQ>
              new maximum CPU frequency the governor may select.

       -g --governor <GOV>
              new cpufreq governor.
when palying around with 'cpupower' I noticed that settings applied for one CPU where propagated to the others after a couple of seconds.
Because I want them to be set immediately for all I added the '--cpu all' option to the config.
BTW: looks like Fedora only install the package on a system supports frequency scaling, or maybe laptops only?
Just had a look at the VM installation I did for playing w/ multiple monitors. Didn't have it installed.
The program is included in the package 'kernel-tools' (yum install kernel-tools). This also installs the 'cpupower.service' but does not enable it.
Where you able to enable the cpupower.service?

I'm not entirely sure if the frequency scaling is limited to certain machines, sorry-
 
Old 05-25-2014, 12:39 PM   #9
phlyer
Member
 
Registered: Jan 2010
Distribution: CentOS, Vector Linux, Scientific Linux, Rocks
Posts: 36

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by Ztcoracat View Post
Where you able to enable the cpupower.service?
the short answer is yes
simply run:
Code:
systemctl enable cpupower.service
or
Code:
systemctl enable cpupower
That will enable the service. Meaning it will get started when the referenced target is reached a system start-up.

The thing really is: will it get started successfully?
When trying to start this service on a system with a CPU that does not support frequency scaling, the service will fail.

Quote:
Originally Posted by Ztcoracat View Post
I'm not entirely sure if the frequency scaling is limited to certain machines, sorry-
to be precise, it's the CPU(s) in that machine. Physical and Virtual alike.
In Virtual Machines it depends on the hypervisor and maybe guest extensions that need to be installed in order to pass through frequency scaling to the guest operating system.

Let's have a closer look at my physical laptop:
Code:
[root@m5ng ~]# cat /proc/cpuinfo | grep ^model | sort | uniq -c
      4 model		: 37
      4 model name	: Intel(R) Core(TM) i7 CPU       M 640  @ 2.80GHz
[root@m5ng ~]# ls /sys/devices/system/cpu/cpu0
./  ../  cache/  cpufreq/  cpuidle/  crash_notes  microcode/  node0@  topology/
[root@m5ng ~]#
so, it's an i7 and has a 'cpufreq' directory under '/sys/devices/system/cpu/cpu0'
what's in there?
Code:
[root@m5ng ~]# ls /sys/devices/system/cpu/cpu0/cpufreq/
./	       cpuinfo_cur_freq  cpuinfo_transition_latency  scaling_available_frequencies  scaling_driver    scaling_min_freq
../	       cpuinfo_max_freq  ondemand/		     scaling_available_governors    scaling_governor  scaling_setspeed
affected_cpus  cpuinfo_min_freq  related_cpus		     scaling_cur_freq		    scaling_max_freq
[root@m5ng ~]#
when having a look at the 'scaling_available_frequencies' file we see:
Code:
[root@m5ng ~]# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2800000 2799000 2666000 2533000 2399000 2266000 2133000 1999000 1866000 1733000 1599000 1466000 1333000 1199000 
[root@m5ng ~]#
so these are speeds we can set using 'cpuspeed' in CentOS6 or 'cpupower' in FC20.

I also have a virtual laptop. It's a copy of the physical one. Just in case it dies on me (like six of its seven predecessors) or gets stolen again.
There will be a ghost

This virtual machine is hosted on an i5 system:
Code:
[root@five ~]# cat /proc/cpuinfo | grep ^model | sort | uniq -c
      4 model		: 58
      4 model name	: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz
[root@five ~]# ls /sys/devices/system/cpu/cpu0
./  ../  cache/  cpufreq/  cpuidle/  crash_notes  microcode/  node0@  thermal_throttle/  topology/
[root@five ~]# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 
2301000 2300000 2200000 2100000 2000000 1800000 1700000 1600000 1500000 1400000 1300000 1200000 1000000 900000 800000 759000 
[root@five ~]#
So this machine's CPU does suport frequency scaling.
But when looking at the virtual machine:
Code:
[root@m5ghost ~]# cat /proc/cpuinfo | grep ^model | sort | uniq -c
      4 model		: 58
      4 model name	: Intel(R) Core(TM) i5-3427U CPU @ 1.80GHz
[root@m5ghost ~]# ls /sys/devices/system/cpu/cpu0/
./  ../  cache/  crash_notes  microcode/  node0@  topology/
[root@m5ghost ~]#
it doesn't have a 'cpufreq' sub-directory.

Same with one of my Xeon systems:
Code:
[root@snoopy ~]#[root@snoopy ~]# cat /proc/cpuinfo | grep ^model | sort | uniq -c
     16 model		: 45
     16 model name	: Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz
[root@snoopy ~]# ls /sys/devices/system/cpu/cpu0/
./  ../  cache/  cpuidle/  crash_notes	node0@	thermal_throttle/  topology/
[root@snoopy ~]#
Again, no 'cpufreq' directory.

So frequency scaling won't work on these systems. Even if we install the program and run it. This dog won't hunt.

My assumption would be that 'anaconda' checks for available CPU scaling frequencies and installs the program. Or not.

HTH
 
Old 05-25-2014, 01:44 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thank You!-

That does help:-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with cpuspeed bt227 Linux - Server 6 05-01-2008 09:57 AM
Problems getting cpuspeed to work on Fedora 7 paulsiu Fedora 3 06-21-2007 07:42 PM
cpuspeed Problem a_m0d Linux - Hardware 1 05-17-2007 11:14 PM
cpuspeed 74039186 Fedora 5 04-19-2004 11:17 PM
cpuspeed? Smerk Linux - Software 2 09-09-2003 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 08:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration