
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
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:
download the file plasmoid-hwmon.plasmoid and save it to any directory you like.
run the following command to install this plasmoid:
plasmapkg -i /path/to/plasmoid-hwmon.plasmoid
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.
TODO:
support ati video card temperature monitor.
add color configurations.
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.
6 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
6 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
5 years ago
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
5 years ago
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
6 years ago
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
6 years ago
Report
totedati
7 years ago
.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
7 years ago
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
7 years ago
MyOS:
Linux Mint 14 / KDE 4.10.3
Report
redhatlinux10
7 years ago
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
7 years ago
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
redhatlinux10
7 years ago
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
7 years ago
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
redhatlinux10
7 years ago
enjoy fun!
Report
vaxxipooh
7 years ago
Report
vaxxipooh
7 years ago
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
redhatlinux10
7 years ago
Report