Posted on August 7, 2011, last updated on July 3, 2014
by
Dipesh Acharya

gnome-shell-extension-sensors (previously known as gnome-shell-extension-cpu-temperature)
is an extension for displaying CPU temperature, hard disk temperature, voltage and
CPU fan RPM in GNOME Shell.

The extension uses sensors from lm_sensors package (lm-sensors for Debian systems)
to read temperature for different CPU cores and adapters, voltage data and fan speed.
If lm_sensors is not installed, temperature is read from system files.

My CPU core temperatures are hwmon1 and hwmon2 (two CPUs, four cores each). In my case, hwmon0 and two of the hwmon3 devices are non-functioning, and give a reading of 0C or -128C, and three of the hwmon3 devices are showing a reasonable temperature.

The extension has been updated. Please check if the new version works, and report back.
Thank you

Jorge

I have a problem with the new version. This show me a “warning” message and the legend “Please Install lm_sensors…”.
However, I have the lm-sensors installed in ubuntu…

http://motorscript.com/ Dipesh Acharya

Never tested it on Ubuntu.

What is the output of the command ‘which –skip-alias sensors’ ?

Jorge

The output for “which –skip-alias sensors” : /usr/bin/sensors

http://motorscript.com/ Dipesh Acharya

Maybe a typo was the problem. Please try the latest code and report.

Jorge

Is working! thank you

http://motorscript.com/ Dipesh Acharya

Added screenshot!

http://www.spoenk.nl Jack

I’m getting the same warning message as Jorge. I installed the extension manually following the instructions on top of this page. I too have lm-sensors installed. I’m running Linux Mint with Gnome 3.2.1.

The reason why I tried installing it with the commands on top of this page was because the normal installation failed and gave me this warning So I get this warning either way.

http://motorscript.com/ Dipesh Acharya

@Jack
Output of ‘which –skip-alias sensors’ command please!

http://www.spoenk.nl Jack

Same as Jorge: /usr/bin/sensors

http://motorscript.com/ Dipesh Acharya

Replace the line
this.sensorsPath = this._detectSensors();
with
this.sensorsPath = ‘/usr/bin/sensors';

This is just a workaround.
I will be debugging the extension in my free time.
Thanks.

http://motorscript.com/ Dipesh Acharya

The warning should have displayed only when ‘which –skip-alias sensors’ doesn’t give a useful output.
I will have to look into the code and will get back to you.
Thanks for reporting

http://www.bubi.si/ Luka

Works great on Fedora 16, Gnome 3.2, Lenovo R61. Thanks! One question: What is Virtual Thermal Zone? Thanks for this extension!

http://motorscript.com/ Dipesh Acharya

@Luka
You are welcome!
Virtual Thermal Zone is what sensors returns as acpitz-virtual-* or Virtual Adapter.
It is not an actual reading from one of the CPU core sensors or adapters but the reading from some file.

Hi! First, thanks for your work ^^
Is there a way to choose which temperature is displayed ? The extension show me a temperature but I don’t know which one, this temperature doesn’t appear with the command ‘sensors’ in a terminal.

PS: Sorry for my bad english

Spirito

I just find which temperature is displayed lol. Is is possible to skip the VTZ ? Because it makes the calculation of the average temperature wrong.

@Jack and others:
I’m working on a newer version that probably fixes your issue
Thanks.

http://motorscript.com/ Dipesh Acharya

Minor update to the extension.

Please report with output of the following two commands if the extension doesn’t work for you.which sensorssensors

Also, it now ignores +0.0°C temperature.

Spirito

@Dipesh Acharya: Thank you it works perfectly ^^

Woof

FYI new version is happy.

Peanut

Installed it from github just now. Initiall, I got ‘warning, install lm-sensors’, which I then installed. Once lm-sensors was installed, the extension would completely crash gnome-shell as soon as I enabled it: all window-decorations gone and no window-manager anymore! This means having to restart X and losing all your work. After then running sensors-detect, I gave the CPU Temp extension another try, and now it works fine. But it really shouldn’t crash the WM if lm-sensors hasn’t been configured. System: Ubuntu 11.10 (Ocelot) with gnome-shell.

Ringo

Great extension, it’s working fine on gnome-shell 3.2.2.1. But is there a way to disable certain temperature sources? For example, i’d like to disable isa adapter and acpi adapter and just use the values from coretemp. Thanks in advance for any hints.

shrd

false t° you make a sum of all t° and divide it !
i have 4 core : 46° coretemp
i have 1 sensor from MB for cpu temp: 35°
and you mix coretemp value and MB sensor value
it is completly false

http://freshtutorial.com Saugat Adhikari

Awesome work . Just try it in fedora 16. Work perfectly.

Chad

How can you convert to Fahrenheit?

TUXY

Mine only show my GPU, nothing else!

what sensors show:
/usr/bin/sensors

Sensors show a BUNCH of stuff so it should be there! (voltages, sensor makeup, fan speed, etc)

Anonymous

A yum update switched this to Celsius. How to I switch it back to Fahrenheit?

http://williampenton.com William Penton

I too would like to know how to switch it to Fahrenheit.

Bestofme

Doesn’t work on Gnome 3.4.

Matt Heck

To users of recent motherboards, including the Gigabyte Z68AP-D3: please aware that there are, at present, deficiences in the lm-sensors module that prevent properly interfacing with part of that chipset. This is due to slow responses to requests for datasheets.

However, the subsystem in question is apparently backward-compatible with the older system, so you may have some luck if you make a quick string check hack and manually build lm-sensors to use the older driver for the newer chipset.

Since that very change is probably going to get commited fairly soon, I’m just going to wait for it; I can see my CPU core temperatures, and that’s it, but that’s OK for me. My nVidia GPU core temp is nowhere to be found; I wonder if that’s a side-effect of using the nVidia driver…?

Anyhoo, good luck. The code for the extension itself is quite hackable; the Fahrenheit thing is just a quick comment, and a good way to get your feet wet. My basic hack cycle is:

1. Read, edit, proofread, save.
2. ALT-F2
3. r

…though you’re advised to do that on a system without much else running, in case of typos. =]

Fredrik Hammar

Nice extension! Just two things:

It does not work out of the box with 3.4: metadata.json must be updated

Fraction is not shown when the fraction is 0, which makes the widget change size and is very distracting. It would be nice if it was fixed size. Easiest would be to not show any fraction at all. Who needs to know their system temperature down to a tenth of a degree anyway?

Yann

Hi!

Thanks for this nice extension.
Is it planned to add support for GPU sensors or HDD sensors (like the sensors-applet in GNOME 2)?

http://motorscript.com/ Dipesh Acharya

Yeah, I will do it in the next version, as soon as I am free.

silverbucket

Great little app, but it only monitors my PCI temp, I have 3 temps in my ISA adapter that get hotter faster, and need to be monitored… any chance you could add support for multiple instances? and support for ISA temps?

Sensor output:http://pastebin.com/S7Nn1XC0
The extension itself is working, but the only temperature it displays is the PCI adapter. I wish for it to play the CPU temp (Which should be obvious in my installing an extension named “CPU temperature”).

Žygintas Beručka

Hey there! I want to ask you if you are going to port it to GNOME 3.6? If yes, then around when should one be expecting this?

http://motorscript.com/ Dipesh Acharya

If it requires some serious changes in code, maybe it will take time. Look for the forks in github.

Enrique Corchero

good job! tnks!

Alex

The extension displayed many 0°C sensors on my computer (Thinkpad T410). I changed the code (_update_temp) to:
– include only sensors with temp > 0
– show the maximum temperature as title (instead of the mean)

Thanks for the suggestion and the code. I’ve implemented this and pushed upstream.

Good Manrs

Thank you for such a Beautiful and Good extension. I have no complain on it, rather i would like to ask for a suggestion. I don’t want my Virtual Temperature listed on panel.
Adapter: Virtual device
temp1: +26.8°C (crit = +100.0°C)
temp2: +0.0°C (crit = +100.0°C)

See, that 27 C entry sticks on panel and ruins original average temperature, How can i get rid of it?

Good Manrs

I could easily patch it using alex’s method, but i wish for more convenient solution. Thank you.

AJ

Hi,

my Fedora-18 system locks up every 15 Seconds when hddtemp is called for a short moment (for up to a second). First I blamed my nvidia drivers because its mainly noticable during gaming. I had to deinstall hddtemp – now its fine. Any suggestions?

http://motorscript.com/ Dipesh Acharya

Sorry, no suggestions. The whole hddtemp thing came from contributors, so i have no idea on it. I will sure look into it in future.

Patrick Fulconis

I’ve installed gnome-shell-extension-cpu-temperature-1.1-1.fc18.noarch on my Fedora 18, but I can’t activate it
in Tweak tool, I see “Cpu temperature indicator” but I can’t enable it (there is an exclamation mark)

http://motorscript.com/ Dipesh Acharya

There has been an error in packaging the extension for Fedora 18. I’ve notified the packager and this should be fixed very soon. Thanks, for reporting. The fix is to edit the file /usr/share/gnome-shell/extensions/temperature@xtranophilist/metadata.json and include your shell version (3.6, most probably) in the shell_version array.

Christophe Perez

Thanks for the extension and new fan/voltage features. Im having an issue with hddtemp though. I am not able to get temperatures probably because of weird characters showing up in hddtemp (output from terminal): Samsung SSD 840 PRO Serise �: 30°C. Is there any way to work around this with your extension? What about using smartctl directly? Any plans for adding temperatures from other devices (I have “nvidia-smi -q -d TEMPERATURE” in mind)? Regards,

Ernesto Gonzalez

Christophe Perez How did you get hddtemp to work with your Samsung 840 PRO SSD? Mine just tells me there was no sensor :/