Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation System monitor and CPU Temp.
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] System monitor and CPU Temp. [Bug #317]
Page : 1 2
Guest English 26 sophiejane [Read]
11 May 2014 à 06:55

Guest, Friday 10 May 2013 à 04:11

Hello!!
    • The version of Cairo-Dock ('cairo-dock -v' in a terminal).-- 3.2.1
    • Your GNU/Linux distribution (Debian, Ubuntu, Fedora, etc.).-- Linux Mint 13 MAte
    • Or you using OpenGL or not.-- Use OpenGL
    • Your Window manager (Compiz, Metacity, Kwin, Openbox, etc.).
    • Your Desktop Environment (Gnome, KDE, XFCE, etc.).--Mate



I use a pluggin of System Monitor for view usage cpu, usage ram and cpu temp.

Well, the cpu temp value I think is not correct.

If in a terminal I use the command "sensors" appears other value of cpu temp.

If I click with center button in this pluggin, appear more information, and I view that, appears 2 values of temp1, one is the same of appears in terminal using the command "sensors", the other temp1 is the same value appears in pluggin system monitor of cairo dock and is the same value appears in terminal using command "sensors" of video card.

I don't know how attach a image for this.

Thanks and regards!

fabounet, Saturday 11 May 2013 à 10:34


Subscription date : 30 November 2007
Messages : 17118
I only have 1 temperature, so I can't really test
here is my output of sensors:
# sensors
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +32.1°C (high = +70.0°C)

what's yours ?

to upload a screenshot, you can use the convenient Drop and share applet

Guest, Tuesday 21 May 2013 à 01:08

Hello.
Thanks for your reply.
My output of sensors is:
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +9.2°C (high = +70.0°C)
(crit = +80.0°C, hyst = +77.0°C)

fam15h_power-pci-00c4
Adapter: PCI adapter
power1: 46.39 W (crit = 124.95 W)

nouveau-pci-0100
Adapter: PCI adapter
temp1: +40.0°C (high = +95.0°C, hyst = +3.0°C)
(crit = +105.0°C, hyst = +5.0°C)
(emerg = +135.0°C, hyst = +5.0°C)


Ant his is my screenshot of cairo

https://www.dropbox.com/s/if4dl944ah92naa/cairo.jpg

Again, thank you very much!

Regards!

Guest, Tuesday 21 May 2013 à 01:10

Sorry, the screenshot aren't good posted

Like I don't know how insert for share, I post a link of screenshot:
https://www.dropbox.com/s/if4dl944ah92naa/cairo.jpg

Thanks and regards!

fabounet, Thursday 23 May 2013 à 14:17


Subscription date : 30 November 2007
Messages : 17118
thank you
temp1: +9.2°C

are you living in the Groenland ? is the value correct ?

I'll see how it is possible to distinguish between the 2 "temp1"

Guest, Friday 24 May 2013 à 01:46

fabounet :
thank you
temp1: +9.2°C

are you living in the Groenland ? is the value correct ?

I think the same
I live with very sun...
But this value appears in sensors...
In other machine, appears temp1 and temp2, and its correct the temps, this other machine is very old machine.
But in my machine only appears temp1.

I'll see how it is possible to distinguish between the 2 "temp1"


Thank you very much!

brianw, Wednesday 12 February 2014 à 21:22


Subscription date : 25 April 2012
Messages : 270
Just wondering if there was any resolution to this issue? I am experiencing the same thing. I have cpu usage and cpu temperature selected to display on system monitor but the temp is incorrect. It appears that the cpu temperature is showing an average of the DIMM temperatures instead of the core cpu temperature. When I center click I can view all the correct information and that is why I say it looks like an average of the DIMM temps. The cpu temp in cairo-dock shows 61°C and the sensors output is shown bellow. Middle click of the System monitor plugin shows the same information as the sensors output (also shows a core temp which is 46°C and reflects an average of all cores)

System information:
HP xw6400 workstation
2 processors with 2 cores each: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz
Xubuntu 13.01
cairo-dock version 3.2.1

sensors
i5k_amb-isa-0000
Adapter: ISA adapter
Ch. 0 DIMM 0: +54.0°C (low = +127.5°C, high = +127.5°C)
Ch. 1 DIMM 0: +58.0°C (low = +127.5°C, high = +127.5°C)
Ch. 2 DIMM 0: +59.0°C (low = +127.5°C, high = +127.5°C)
Ch. 3 DIMM 0: +59.5°C (low = +127.5°C, high = +127.5°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +43.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +44.0°C (high = +80.0°C, crit = +100.0°C)

coretemp-isa-0003
Adapter: ISA adapter
Core 0: +44.0°C (high = +80.0°C, crit = +100.0°C)
Core 1: +47.0°C (high = +80.0°C, crit = +100.0°C)

brianw, Saturday 15 February 2014 à 05:01


Subscription date : 25 April 2012
Messages : 270
Just as an update. On my HP laptop with a single dual core processor the temp is correct.

Something that is interesting is that on my laptop when I middle click the correct temperature shows as temp1 (there is also a Core 0 and a Core 1 that show the same temperatures.

On the desktop (with 2 processors which are dual core xeons) there is no temp1 on middle click. There is a 'Core Temperature' instead which looks like an average of all 4 cores (or it is the same as core 0 of the second processor, I would have to investigate further to be sure if it is an average or the one temperature being picked up) and further down (after the DIMM temperatures) there is a line for each core of each processor, same as for the laptop cores.

matttbe, Saturday 22 February 2014 à 19:41


Subscription date : 24 January 2009
Messages : 12573
Hello brianw!
How are you?

When quickly looking to the code, it seems the dock doesn't compute a mean value but maybe it takes wrongs values? Is it maybe possible to uncomment the two lines which start with g_print in cairo-dock-plug-ins/System-Monitor/src/applet-sensors.c?

brianw, Thursday 13 March 2014 à 03:16


Subscription date : 25 April 2012
Messages : 270
Sorry for the delay. I did not have the bzr branch installed on this system and had to wait to find the time to install it for development.

I attempted to build and install cairo-dock with those lines uncommented but I am having issues. When I attempt to 'sudo make install' the plugins I get the following (no errors building and installing the core and no errors building the plugins, I do get warnings about libical, but can't install. I tried both the 32 and 64 bit steps for cmake):

[ 66%] Building C object Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/applet-search.c.o
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c: In function ‘on_deleting_event_received’:
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:420:2: warning: passing argument 3 of ‘zeitgeist_log_find_event_ids_finish’ from incompatible pointer type [enabled by default]
In file included from /usr/include/zeitgeist-1.0/zeitgeist.h:33:0,
from /home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:24:
/usr/include/zeitgeist-1.0/zeitgeist-log.h:117:14: note: expected ‘struct GError ’ but argument is of type ‘int *’
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:420:2: error: too many arguments to function ‘zeitgeist_log_find_event_ids_finish’
In file included from /usr/include/zeitgeist-1.0/zeitgeist.h:33:0,
from /home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:24:
/usr/include/zeitgeist-1.0/zeitgeist-log.h:117:14: note: declared here
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:420:18: warning: initialization from incompatible pointer type [enabled by default]
make[2]:
* [Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/applet-search.c.o] Error 1
make[1]: * [Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/all] Error 2
make:
* [all] Error 2

Now I can't run cairo-dock at all. I tried an apt-get purge cairo-dock and then a re-install but I keep getting the error:

cairo-dock: symbol lookup error: cairo-dock: undefined symbol: myDeskletObjectMgr

brianw, Thursday 13 March 2014 à 03:27


Subscription date : 25 April 2012
Messages : 270
I used synaptic to completely remove all traces of cairo-dock and reinstall and now it works. I still get the above error when doing the make install though and can't test.

brianw, Thursday 13 March 2014 à 16:46


Subscription date : 25 April 2012
Messages : 270
Sorry about that but I do get errors when I run "make -j $(grep -c ^processor /proc/cpuinfo)" and they are:

[ 66%] Built target cd-show_mouse
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c: In function ‘on_deleting_event_received’:
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:420:2: warning: passing argument 3 of ‘zeitgeist_log_find_event_ids_finish’ from incompatible pointer type [enabled by default]
In file included from /usr/include/zeitgeist-1.0/zeitgeist.h:33:0,
from /home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:24:
/usr/include/zeitgeist-1.0/zeitgeist-log.h:117:14: note: expected ‘struct GError ’ but argument is of type ‘int *’
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:420:2: error: too many arguments to function ‘zeitgeist_log_find_event_ids_finish’
In file included from /usr/include/zeitgeist-1.0/zeitgeist.h:33:0,
from /home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:24:
/usr/include/zeitgeist-1.0/zeitgeist-log.h:117:14: note: declared here
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-search.c:420:18: warning: initialization from incompatible pointer type [enabled by default]
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-dialog.c: In function ‘_on_got_events’:
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-dialog.c:120:3: error: implicit declaration of function ‘zeitgeist_result_set_next_value’ [-Werror=implicit-function-declaration]
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-dialog.c:120:9: warning: assignment makes pointer from integer without a cast [enabled by default]
make[2]:
* [Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/applet-search.c.o] Error 1
make[2]: * Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]:
* [Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/applet-dialog.c.o] Error 1
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-notifications.c: In function ‘_on_find_related_events’:
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-notifications.c:120:3: error: implicit declaration of function ‘zeitgeist_result_set_next_value’ [-Werror=implicit-function-declaration]
/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/Recent-Events/src/applet-notifications.c:120:9: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[2]: * [Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/applet-notifications.c.o] Error 1
make[1]:
* [Recent-Events/src/CMakeFiles/cd-Recent-Events.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
[ 66%] Built target cd-slider
[ 66%] Built target cd-Sound-Effects
[ 66%] Built target cd-stack
make:
* [all] Error 2

brianw, Friday 14 March 2014 à 02:57


Subscription date : 25 April 2012
Messages : 270
My previous posts are probably a little confusing so let me explain them better.

My post from "Thursday 13 March 2014 à 03:16" shows the errors I get when I run "sudo make install" while in the cairo-dock-plugins directory.

My second post "Thursday 13 March 2014 à 16:46" shows the errors I get when I run "make -j $(grep -c ^processor /proc/cpuinfo)" while in the cairo-dock-plugins directory. I had missed these errors when I first posted but realized that there must have been compile errors so tried compiling again to see the errors.

After running make install for both the core and plugins I get the error "symbol lookup error: /opt/cairo-dock/bin/cairo-dock: undefined symbol: myDeskletObjectMgr". I get this error with "cmake .. -DCMAKE_INSTALL_PREFIX=/usr" and when I attempt to build a local copy "cmake .. -DCMAKE_INSTALL_PREFIX=/opt/cairo-dock". I have tried LIB64=yes and LIB32=yes. I have also tried with cairo-dock removed from the system using synaptic.

NOTE: I also ran the make command without the -j option.

I am using the bzr verison (not lightweight but a full download of core, plugins and extras). Should I try the stable version download?

brianw, Saturday 15 March 2014 à 00:53


Subscription date : 25 April 2012
Messages : 270
Well I am getting there. Someone needs to slap me though because I had part of the answer all the time. I did a make clean on the version I had downloaded then the make started going better. I had to make some changes to several files in the Recent-Events/src directory to get them to compile but once I made the minor changes I had a successful compile. I still can't do a make install but that is another issue.

Now when I do a make install I get an error about copying a file. I set the DMAKE flag to use a different folder (/opt/cairo-dock) but the make install for the plugins build directory is attempting to copy an image file to the /usr directory.

Install the project...
-- Install configuration: ""

-- Installing: /usr/share/cairo-dock/plug-ins/shared-files/images/expose-desktops.svg
CMake Error at shared-files/images/cmake_install.cmake:44 (FILE):
file INSTALL cannot copy file
"/home/brian/Devel/cairo-dock_bzr/cairo-dock-plug-ins/shared-files/images/expose-desktops.svg"
to
"/usr/share/cairo-dock/plug-ins/shared-files/images/expose-desktops.svg".
Call Stack (most recent call first):
shared-files/cmake_install.cmake:37 (INCLUDE)
cmake_install.cmake:37 (INCLUDE)
make: *** [install] Error 1


To work around this I removed cairo-dock from my system and started over using /usr as the install directory. I still get the error:

cairo-dock: symbol lookup error: cairo-dock: undefined symbol: myDeskletObjectMgr


I am going to attempt different builds to see if anything changes. If anyone has an answer to this error though it would be greatly appreciated.

Guest, Sunday 16 March 2014 à 00:39

!!! Don't forget the Anti-spam filter !!!

How to ensure that applets added to CD (such as clock, sys monitor etc) reappear everytime i log in? Thanks.

brianw, Sunday 16 March 2014 à 01:17


Subscription date : 25 April 2012
Messages : 270
Guest :
How to ensure that applets added to CD (such as clock, sys monitor etc) reappear everytime i log in? Thanks.


This isn't an answer to the problem but a suggestion about how to get an answer faster. Since this thread is about System Temperature the people who are looking into a solution may not read every post as fast that is made here (they already know this issue and are investigating) and if the issue gets marked resolved your issue will not be investigated.

You should go to the top level problem forums http://www.glx-dock.org/bg_forum.php?f=2 and post a new subject. Don't forget to read through the FAQ first http://www.glx-dock.org/ww_page.php?p=F.A.Q&lang=en and search the forums for the issue.

You will also need some basic information if you need to post a new subject or report a bug. On the Report a Bug page http://www.glx-dock.org/ww_page.php?p=Report%20a%20bug&lang=en you will see the information required under the heading "How to report the bug".

brianw, Thursday 20 March 2014 à 17:13


Subscription date : 25 April 2012
Messages : 270
OK, finally got it to work (I had to manually delete the libgldi files in /usr/lib to get the compiled cairo-dock file to run, it would not read the libgldi file in /opt/cairo-dock/lib I had to install to /usr after deleting the libgldi files to get it to work).

Anyway here is a sample of the output with the g_print lines un-commented.

CPU : 127.50 0(0) 128.50
CPU : 127.50 0(0) 128.50
CPU : 127.50 0(0) 128.50
CPU : 127.50 0(0) 128.50
CPU : 0.00 42(0) 80.00
CPU : 0.00 42(0) 80.00
CPU : 0.00 45(0) 80.00
CPU : 0.00 48(0) 80.00
CPU : 127.50 0(0) 128.50
CPU : 127.50 0(0) 128.50
CPU : 127.50 0(0) 128.50
CPU : 127.50 0(0) 128.50
CPU : 0.00 39(0) 80.00
CPU : 0.00 40(0) 80.00
CPU : 0.00 44(0) 80.00
CPU : 0.00 47(0) 80.00


Notice that the 4 cpu temperatures read the same as the sensors command (and my conky display) but the display in the System Monitor plugin shows the temperature to bounce between 59 and 60 degrees. I let it run for a while and the 4 CPU lines went between 38 and 49 degrees.

I am not aware of any other temperatures for my system although I do know that some systems have a 'cpu base temperature' which is from a sensor on the motherboard at the base of the cpu as well as the internal cpu temperatures.

brianw, Thursday 20 March 2014 à 18:50


Subscription date : 25 April 2012
Messages : 270
Getting close. The temperature displayed on the label is different than displayed on the Icon. When looking at the code in applet-sensors.c and applet-monitor.c I noticed that there was 2 different temperatures. one is myData.iCPUTemp and one is myData.fCpuTempPercent and they are displayed on the icon and one on the label. When I switched the setting to display the info on the label instead of the icon the data is correct.

For the icon the code is:

if (myConfig.bShowCpuTemp)
{
g_string_append_printf (sInfo, "%s%d°C%s",
(myDesklet || bOneLine ? "CPU:" : ""),
myData.iCPUTemp,
(bOneLine ? " - " : "\n"));
}


but for the icon the code is:

if (! myData.bInitialized)
{
if (myConfig.iInfoDisplay == CAIRO_DOCK_INFO_ON_ICON)
CD_APPLET_SET_QUICK_INFO_ON_MY_ICON (myDock ? "..." : D_("Loading"));
memset (s_fValues, 0, sizeof (s_fValues));
CD_APPLET_RENDER_NEW_DATA_ON_MY_ICON (s_fValues);
}


the s_fValues for the cpu temperature gets set to the percent in the code (line 184 of the file I have):

if (myConfig.bShowCpuTemp)
{
s_fValues[i++] = myData.fCpuTempPercent / 100.;
if (myData.bCPUAlerted && !myData.bCpuTempAlarm)
myData.bCPUAlerted = FALSE; //On reinitialise l'alerte quand la temperature descend en dessous de la limite.

if (!myData.bCPUAlerted && myData.bCpuTempAlarm)
cd_cpu_alert (myApplet);
}

brianw, Thursday 20 March 2014 à 19:08


Subscription date : 25 April 2012
Messages : 270
I change the code in the file applet-monitor.c to use the myData.iCPUTemp on the icon and it displayed the temperature of core # 4 (which happens to be the highest temperature core on my system).

from:
s_fValues[i++] = myData.fCpuTempPercent / 100.;


to:
s_fValues[i++] = myData.iCPUTemp / 100.;


I tried first without the "/ 100." but it did not work and needs to be divided by 100.

brianw, Thursday 20 March 2014 à 19:33


Subscription date : 25 April 2012
Messages : 270
Just as an after thought my solution does NOT resolve the original posters issue.

After some digging I found that the original poster does not have an actual CPU temperature in the sensors output.

The nouveau-pci-0100 is the temperature of the GPU (graphics processor).

The k10temp-pci-00c3, on some systems, is a relative temperature (explaination found here https://www.kernel.org/doc/Documentation/hwmon/k10temp at the bottom of the page) and is not an actual temperature.

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] System monitor and CPU Temp. [Bug #317]
Page : 1 2
Guest English 26 sophiejane [Read]
11 May 2014 à 06:55


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation System monitor and CPU Temp. Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.