PDA

View Full Version : Monitoring CPU temperature on Fedora 20



eldiener
5th June 2014, 02:36 AM
I installed lm_sensors, ran sensors, installed gkrellm, but I still do no see anything about my CPU temperature uunder Fedora 20. Is there some easy, simple GUI app that just works and allows me to view my CPU temperature periodiocally in Fedora 20 ?

RupertPupkin
5th June 2014, 03:39 AM
Install the xsensors package, then run: xsensors -f

eldiener
6th June 2014, 05:07 AM
Install the xsensors package, then run: xsensors -f

It shows me a temperature reading but says "radeon" to the left of the reading. My Video controller is the Radeon 4850 video card so i suspect that this is a video card temperature but not the CPU temperature. There is no other temperature reading shown.

stevea
6th June 2014, 06:32 AM
sudo bash
yum -y install lm_sensors
yes | sensors-detect
exit
sensors

Neubie2
6th June 2014, 05:38 PM
It shows me a temperature reading but says "radeon" to the left of the reading. My Video controller is the Radeon 4850 video card so i suspect that this is a video card temperature but not the CPU temperature. There is no other temperature reading shown.

Underneath Radeon are 2 other values, one for just the cpu, and one for all your sensors.
Great little application.

eldiener
9th June 2014, 02:28 AM
sudo bash
yum -y install lm_sensors
yes | sensors-detect
exit
sensors

The output from sensors:


radeon-pci-0100
Adapter: PCI adapter
temp1: +50.0C (crit = +120.0C, hyst = +90.0C)


This still suggests to me the tempaerature of my radeon video adapter ( Radeon 4850 ). If it is I am not seeing a CPU temperature anywhere. Even when I install gkrellm, the output under temperature has the preferences tag of:


radeon@100/temp1

and also gives 50.0C.

---------- Post added at 09:28 PM ---------- Previous post was at 09:26 PM ----------


Underneath Radeon are 2 other values, one for just the cpu, and one for all your sensors.
Great little application.

On my system those two other values do not exist.

jsnjack
10th June 2014, 07:33 PM
I installed lm_sensors, ran sensors, installed gkrellm, but I still do no see anything about my CPU temperature uunder Fedora 20. Is there some easy, simple GUI app that just works and allows me to view my CPU temperature periodiocally in Fedora 20 ?
I use byobu instead of gnome terminal and it has nice widget on the bottom of the page with cpu temperature (configurable).

You can also install this extension https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet

stevea
10th June 2014, 10:43 PM
You're being mislead - the problem is finding your CPU temp sensor, and NOT the applications to display it.

Exactly what processor is in your system ?

[stevea@hypoxylon Desktop]$ head -5 /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 37
model name : Intel(R) Core(TM) i5 CPU 650 @ 3.20GHz

*most* modern CPUs include on-chip temp sensing. Older systems had external sensors.

eldiener
11th June 2014, 12:47 AM
You're being mislead - the problem is finding your CPU temp sensor, and NOT the applications to display it.

Exactly what processor is in your system ?


*most* modern CPUs include on-chip temp sensing. Older systems had external sensors.


head -5 /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : AMD Phenom(tm) 9950 Quad-Core Processor


The motherboard is the K9A2 Platinum and the chipset is the 790FX.

What is found is by sensors-detect is:


Driver `f71882fg':
* ISA bus, address 0x600
Chip `Fintek F71882FG/F71883FG Super IO Sensors' (confidence: 9)

PabloTwo
11th June 2014, 01:05 AM
And what is the output of:

# systemctl status lm_sensors.service

stevea
11th June 2014, 03:54 AM
The 'k10temp' kernel module is needed to read temps off the 9550 (r so I beleive from the documentation).

Is this module loaded ?
sudo lsmod | grep k10

If not try manually loading it and looking for the temp ....
sudo modprobe k10temp

That module *should* have been listed into /etc/sysconfig/lm_sensors when you ran sensors-detect

eldiener
11th June 2014, 05:01 AM
And what is the output of:

# systemctl status lm_sensors.service


systemctl status lm_sensors.service
lm_sensors.service - Initialize hardware monitoring sensors
Loaded: loaded (/usr/lib/systemd/system/lm_sensors.service; enabled)
Active: active (exited) since Tue 2014-06-10 23:58:23 EDT; 2min 12s ago
Process: 644 ExecStart=/usr/bin/sensors -s (code=exited, status=0/SUCCESS)
Process: 622 ExecStart=/usr/libexec/lm_sensors/modprobe $BUS_MODULES $HWMON_MODULES (code=exited, status=1/FAILURE)
Main PID: 644 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/lm_sensors.service

eldiener
11th June 2014, 05:10 AM
The 'k10temp' kernel module is needed to read temps off the 9550 (r so I beleive from the documentation).

Is this module loaded ?
sudo lsmod | grep k10

If not try manually loading it and looking for the temp ....
sudo modprobe k10temp

That module *should* have been listed into /etc/sysconfig/lm_sensors when you ran sensors-detect


lsmod | grep k10
k10temp 13126 0


The module k10temp was not mentioned when I ran sensors-detect. The file /etc/sysconfig/lm_sensors has only the line:


HWMON_MODULES="f71882fg"

besides the comments in the file.

PabloTwo
11th June 2014, 02:15 PM
-----
Process: 622 ExecStart=/usr/libexec/lm_sensors/modprobe $BUS_MODULES $HWMON_MODULES (code=exited, status=1/FAILURE)
------
And from your /etc/sysconfig/lm_sensors file:

HWMON_MODULES="f71882fg"
And here are the configured items for the f71882fg sensor chip in the /etc/sensors3.conf file:

$ grep -A10 f71882fg /etc/sensors3.conf
chip "f71808e-*" "f71808a-*" "f71862fg-*" "f71869-*" "f71869a-*" "f71882fg-*" \
"f71889fg-*" "f71889ed-*" "f71889a-*"

label in0 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"

compute in0 @*2, @/2
compute in7 @*2, @/2
compute in8 @*2, @/2
Is this module failing to load?

lsmod | grep f718

$ modinfo f71882fg
filename: /lib/modules/3.14.5-200.fc20.x86_64/kernel/drivers/hwmon/f71882fg.ko
license: GPL
author: Hans Edgington, Hans de Goede <hdegoede@redhat.com>
description: F71882FG Hardware Monitoring Driver
depends:
intree: Y
vermagic: 3.14.5-200.fc20.x86_64 SMP mod_unload
signer: Fedora kernel signing key
sig_key: 21:F4:E4:EC:6A:77:C7:B0:FE:1B:3C:58:F2:28:1F:61:4D :91:D2:62
sig_hashalgo: sha256
parm: force_id:Override the detected device ID (ushort)

leigh123linux
11th June 2014, 04:38 PM
Try a newer version of lm_sensors.


rpm -qa lm_sensors\*then grab the newer versions from here and install them, then run


http://koji.fedoraproject.org/koji/taskinfo?taskID=7036172


su
sensors-detect --auto
.

eldiener
11th June 2014, 05:15 PM
-----
Process: 622 ExecStart=/usr/libexec/lm_sensors/modprobe $BUS_MODULES $HWMON_MODULES (code=exited, status=1/FAILURE)
------
And from your /etc/sysconfig/lm_sensors file:

HWMON_MODULES="f71882fg"
And here are the configured items for the f71882fg sensor chip in the /etc/sensors3.conf file:

$ grep -A10 f71882fg /etc/sensors3.conf
chip "f71808e-*" "f71808a-*" "f71862fg-*" "f71869-*" "f71869a-*" "f71882fg-*" \
"f71889fg-*" "f71889ed-*" "f71889a-*"

label in0 "+3.3V"
label in7 "3VSB"
label in8 "Vbat"

compute in0 @*2, @/2
compute in7 @*2, @/2
compute in8 @*2, @/2
Is this module failing to load?

lsmod | grep f718

$ modinfo f71882fg
filename: /lib/modules/3.14.5-200.fc20.x86_64/kernel/drivers/hwmon/f71882fg.ko
license: GPL
author: Hans Edgington, Hans de Goede <hdegoede@redhat.com>
description: F71882FG Hardware Monitoring Driver
depends:
intree: Y
vermagic: 3.14.5-200.fc20.x86_64 SMP mod_unload
signer: Fedora kernel signing key
sig_key: 21:F4:E4:EC:6A:77:C7:B0:FE:1B:3C:58:F2:28:1F:61:4D :91:D2:62
sig_hashalgo: sha256
parm: force_id:Override the detected device ID (ushort)

Is what module failing to load ? if I run 'lsmod | grep f718' it returns nothing.

PabloTwo
11th June 2014, 05:36 PM
Is what module failing to load ? if I run 'lsmod | grep f718' it returns nothing.
The "f71882fg" kernel module, that is listed in your /etc/sysconfig/lm_sensors file and the one I'm discussing above. The return of nothing from the grep command means it's not loading. Try the suggestion made by leigh123linux to download newer lm_sensors and lm_sensors-libs packages that he just build for F20 from the F21 SRPM and use them to "update" your current packages.

eldiener
12th June 2014, 02:29 AM
Try a newer version of lm_sensors.


rpm -qa lm_sensors\*then grab the newer versions from here and install them, then run


http://koji.fedoraproject.org/koji/taskinfo?taskID=7036172


su
sensors-detect --auto
.

I do not understand how I am supposed to get the newer version and install it from the above link.

leigh123linux
12th June 2014, 07:10 AM
I do not understand how I am supposed to get the newer version and install it from the above link.

Sorry I don't help noobs as it frustrates me too much :)

PabloTwo
12th June 2014, 12:35 PM
Click the link. Pick one of three choice's under Descendants build that matches your installed architecture, probably either x86_64 or i686, then click on the appropriate filename packages listed at the bottom to download them.

In a command terminal, change directory to your Downloads directory (cd Downloads) then use the command,

sudo yum update filename1 filename2 ...

Which will most likely be just the lm_sensors and lm_sensors-libs rpm packages.




Sent from my Nexus 7

eldiener
22nd June 2014, 09:08 PM
Click the link. Pick one of three choice's under Descendants build that matches your installed architecture, probably either x86_64 or i686, then click on the appropriate filename packages listed at the bottom to download them.

In a command terminal, change directory to your Downloads directory (cd Downloads) then use the command,

sudo yum update filename1 filename2 ...

Which will most likely be just the lm_sensors and lm_sensors-libs rpm packages.




Sent from my Nexus 7

Clicking on any of the three links does not download anything. Try it yourself.

PabloTwo
22nd June 2014, 10:16 PM
Clicking on any of the three links does not download anything. Try it yourself.
I never said clicking on one of the three links would download anything. I said:

Click the link. Pick one of three choice's under Descendants build that matches your installed architecture, probably either x86_64 or i686, then click on the appropriate filename packages listed at the bottom to download them.

In a command terminal, change directory to your Downloads directory (cd Downloads) then use the command,

sudo yum update filename1 filename2 ...
Clicking on anyone of the three links takes you to another webpage, which has a list of the files at the bottom, which you can click on to download. I did try it. And it worked for me.

Descendants build

buildArch (lm_sensors-3.3.5-4.fc21.src.rpm, armv7hl)
buildArch (lm_sensors-3.3.5-4.fc21.src.rpm, x86_64) <== I click here and go to another webpage
buildArch (lm_sensors-3.3.5-4.fc21.src.rpm, i686)

On the other webpage I get, at the bottom of the page:

Output build.log (tail)
mock_output.log (tail)
root.log (tail)
state.log (tail)
lm_sensors-3.3.5-4.fc20.x86_64.rpm <== I click on the filename to download it
lm_sensors-debuginfo-3.3.5-4.fc20.x86_64.rpm
lm_sensors-devel-3.3.5-4.fc20.x86_64.rpm
lm_sensors-libs-3.3.5-4.fc20.x86_64.rpm
lm_sensors-sensord-3.3.5-4.fc20.x86_64.rpm

eldiener
22nd June 2014, 11:41 PM
I never said clicking on one of the three links would download anything. I said:

Clicking on anyone of the three links takes you to another webpage, which has a list of the files at the bottom, which you can click on to download. I did try it. And it worked for me.

Descendants build

buildArch (lm_sensors-3.3.5-4.fc21.src.rpm, armv7hl)
buildArch (lm_sensors-3.3.5-4.fc21.src.rpm, x86_64) <== I click here and go to another webpage
buildArch (lm_sensors-3.3.5-4.fc21.src.rpm, i686)

On the other webpage I get, at the bottom of the page:

Output build.log (tail)
mock_output.log (tail)
root.log (tail)
state.log (tail)
lm_sensors-3.3.5-4.fc20.x86_64.rpm <== I click on the filename to download it
lm_sensors-debuginfo-3.3.5-4.fc20.x86_64.rpm
lm_sensors-devel-3.3.5-4.fc20.x86_64.rpm
lm_sensors-libs-3.3.5-4.fc20.x86_64.rpm
lm_sensors-sensord-3.3.5-4.fc20.x86_64.rpm


I installed the 3.3.5.4. fc20 version of lm_sensors. I then ran sensors_detect successfully. But running 'sensors' again still only gives:


radeon-pci-0100
Adapter: PCI adapter
temp1: +60.5C

So it appears that lm_sensors cannot detect my mobo's CPU temperature under Fedora 20. In all other Linux distros which I run the result is the same, no detection of CPU temperature. It is no big deal but a little disappointing that Linux cannot detect this, but certainly not something to worry about. I can monitor the temperature in the BIOS when I boot and under Windows 7/Vista. I am about to change to a better case for my old mobo as well as rebuild a new system with a new mobo. Admittedly the MSI K9A2 Platinum mobo is a bit old and hopefully, when I choose a new mobo and build a new system, Fedora ( and Linux ) will be able to detect temperature on my new mobo better.

Thanks for your kind help !