plasmoid-hwmon

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 58.6%
Description:

this is a plasmoid for KDE. it can monitor cpu and nvidia video card temperatures for you recently. nvidia-smi command is run for detecting nvidia video card temperature, so if you'd like to monitor it, you should make sure nvidia-smi command is in your path.
some machine's motherboard doesn't report cpu temperature to operating system and this plasmoid can not retrieve cpu temperature from acpi, in this situation,this plasmoid will try to read cpu temperature from sensors command, so you must have finished the sensors' configuration with sensors-detect command.
installation:
[li]download the file plasmoid-hwmon.plasmoid and save it to any directory you like.[/li]
[li]run the following command to install this plasmoid:
plasmapkg -i /path/to/plasmoid-hwmon.plasmoid
[/li]
[li]
if you have already installed this plasmoid,run the following command to update this plasmoid:
plasmapkg -u /path/to/plasmoid-hwmon.plasmoid, then remove this plasmoid from panel and add it again.
[/li]

TODO:
[li]
support ati video card temperature monitor.
[/li]
[li]
add color configurations.
[/li]
if you encounter any problem while using this plasmoid, you can check 'enable trace' in configuration window, then wait for about 9 seconds( 3 times of default update period), and then email this file '/tmp/net.ubuntudaily.hwmon.log' to me, of cource, you should also describe what's your problem.
Last changelog:

5 years ago

2014-03-07 feature:
(1). add a new configuration (bypass acpi) to help to retrieve cpu temperature directly from sensors command withou giving acpi a try.
(2). merge net.ubuntudaily.hwmon.trace.log and net.ubuntudaily.hwmon.info.log into net.ubuntudaily.hwmon.log, so from now on your should email net.ubuntudaily.hwmon.log to me for debug purpose.
2013-5-22 feature: you can see build time in the configuration window now
2013-5-22 fix: if there is never data from acpi datasource, try to retreive cpu temperature from sensors command
2013-5-21 fix:when failed to connect data source 'acpi/Thermal_Zone/0/Temperature', try to utilize sensors
2013-5-20 fix:some machine's motherboard can not provide cpu temperature to os,in this situation cpu temperature will be read from sensors' command
2013-5-20 fix:/run directory does not exist in some distros.in this situation temp data will be writen to /tmp

mango17

4 years ago

..after upgrade to nvidia-340.76 no output gpu-temp.
In main.js replace in Line 317
nvidia-smi -q -d TEMPERATURE|grep Gpu|cut -d: -f2>
to
nvidia-smi -q -d TEMPERATURE|grep Current|cut -d: -f2>
output is Ok.

THX

Report

mango17

4 years ago

..after upgrade to nvidia-340.76 no output gpu-temp.
In main.js replace in Line 317
nvidia-smi -q -d TEMPERATURE|grep Gpu|cut -d: -f2>
to
nvidia-smi -q -d TEMPERATURE|grep Current|cut -d: -f2>
output is Ok.

THX

Report

paviluf

4 years ago

The CPU temp is incorrect on my system.
I see you get the CPU with temp1 :
sensors|grep 'temp1'|cut -d: -f2

But for me the real temp is that one : Physical id 0

It will be good if you can make that detection automatic like in Simple CPU Sensor

http://kde-apps.org/content/show.php/Simple+CPU+Sensor?content=135310

Thank you

Report

sudhirkhanger

5 years ago

When no temp is available like for nvidia, it should just not show it, instead of showing a question mark.

Report

totedati

6 years ago

in
.kde/share/apps/plasma/plasmoids/net_ubuntudaily_plasmoid_hwmon/contents/code/main.js

if i change

function setCpuTempLabel(temp){
cpuTempLabel.text = '<font color="yellow">' + 'C' + temp + '</font>';
}

from <font color="yellow"> to <font color="blue"> my little problem is gone!

yayyyyyyy ;-)


Report

totedati

6 years ago

i like this plasmoid! working 100% in Mint 14 but ... i have a little problem

red color for GPU is ok but on my plasma color configuration that CPU yellow is hardly reading ... from where i can change this color settings!?

Report

vaxxipooh

6 years ago

I looks that this plasmoid dont work - its installed and put in panel - i can get to settings but theres NO output in panel for CPU or GPU - i have nvidia-smi in my path.

MyOS:
Linux Mint 14 / KDE 4.10.3

Report

C

redhatlinux10

6 years ago

hi, vaxxipooh, thanks for your feedback !
to help me localize the source of the problem, would you please check 'enable trace ' for about 10 seconds, then email this file '/tmp/net.ubuntudaily.hwmon.trace.log' to me?

Report

vaxxipooh

6 years ago

Hi

Here's the out from the log file:

-------- snip -------------------

trace : data source name :UTC
trace : nvidia-smi -q -d TEMPERATURE|grep Gpu|cut -d: -f2>/run/user/1000/net.ubuntudaily.hwmon.gpu.temp
trace : slotGPUDataHandleFinished:
trace : gpuTempRequestMissedPercent : 1%

-------- snap -------------------

Look's like wrong user there "1000" and not my login user name and theres no "1000" under "/run/user" either when the plasmoid runs . . .

the missing info for CPU is maybe that i dont have "acpi/Thermal_Zone/0/Temperature" on my system (i use LM Sensors).

Have fun :-)


Report

C

redhatlinux10

6 years ago

Quote: Look's like wrong user there "1000" and not my login user name and theres no "1000" under "/run/user" either when the plasmoid runs
the directory /run is a tmpfs, and it exists in memory, so file manipulation in this directory is faster than in normal file system. 1000 is current user id, not user name.i think i should fallback to /tmp if /run does not exist
Quote:the missing info for CPU is maybe that i dont have "acpi/Thermal_Zone/0/Temperature" on my system (i use LM Sensors)i should have realized that the directory /proc/acpi/thermal_zone is not always capable of providing cpu temperature informations. i should fallback to utilize sensors. is this directory empty in your machine?

Report

vaxxipooh

6 years ago

Hi again :-)

In /proc/acpi i have just event and wakeup - i running your plasmoid just at the moment and thereis NO output whatsoever in /run/user

Ihope you can fix this coz i like this idea to have to monitor my CPU and GPU in the panel where i can see it all the time ;-)

Have a nice summerday

Report

C

redhatlinux10

6 years ago

these two problems have been fixed.thanks for your feedback!
enjoy fun!

Report

vaxxipooh

6 years ago

Works like a Charm now on my Linux Mint 14 - Bruce had take time so it will work whith LM sensors now . . Its excellent to see your temperature reading in the panel - then you see it all the time . . .

Report

vaxxipooh

6 years ago

It sort of works now . . partially, i can see the GPU readings but not CPU readings ..

from the log:

trace : data source name :UTC
trace : nvidia-smi -q -d TEMPERATURE|grep Gpu|cut -d: -f2>/tmp/net.ubuntudaily.hwmon.gpu.temp
trace : slotGPUDataHandleFinished:
trace : gpuTempRequestMissedPercent : 85.71%

----

I can see in main.js that the sensors command is somehow rigth as of sensors|grep temp1

for me the command sensors|grep temp1|cut -d: -f2 outputs this long string:

+34.0°C (low = +127.0°C, high = +127.0°C) sensor = thermistor

there's nothing in the /tmp dir from the cpu readings.


Keep the work up :-)

Report

C

redhatlinux10

6 years ago

i have updated the way how to update this plasmoid in the description.

Report

5 years ago

2014-03-07 feature:
(1). add a new configuration (bypass acpi) to help to retrieve cpu temperature directly from sensors command withou giving acpi a try.
(2). merge net.ubuntudaily.hwmon.trace.log and net.ubuntudaily.hwmon.info.log into net.ubuntudaily.hwmon.log, so from now on your should email net.ubuntudaily.hwmon.log to me for debug purpose.
2013-5-22 feature: you can see build time in the configuration window now
2013-5-22 fix: if there is never data from acpi datasource, try to retreive cpu temperature from sensors command
2013-5-21 fix:when failed to connect data source 'acpi/Thermal_Zone/0/Temperature', try to utilize sensors
2013-5-20 fix:some machine's motherboard can not provide cpu temperature to os,in this situation cpu temperature will be read from sensors' command
2013-5-20 fix:/run directory does not exist in some distros.in this situation temp data will be writen to /tmp

12345678910
12
product-maker arcanis Jul 26 2013 3 bad
product-maker vaxxipooh May 22 2013 9 excellent
product-maker blask May 18 2013 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
1.0
updated Mar 07 2014
added May 18 2013
downloads 24h
0
page views 24h 2