Description: Plasma 5 applet for monitoring Fan Speed sensors (lmsensors and nvidia-smi if applicable).
Coding very largely based off of Kotelnik's thermal Monitor https://github.com/kotelnik/plasma-applet-thermal-monitor.
Original Icon is Fan Icon made by Freepik from www.flaticon.com (https://www.flaticon.com/free-icon/fan_22846) before changing the colors.
REQUIRED DEPENDENCIES - qt5-graphicaleffects - e.g. package for kubuntu users: libqt5qml-graphicaleffects
HOW TO INSTALL - Add Widgets... -> Get new widgets -> Download new plasma widgets - find this applet and install through the first item with .plasmoid extensionLast changelog:
I got it to work, before it just put OFF...
I have only added a "!" in /contents/ui/config/ConfigFanspeeds.qml, leaving the code as follows, and it shows the fan speed on my macbook pro.
if ((source.indexOf('lmsensors/') === 0 )
3Monitor always says just "OFF" for me.
Tried using it with GPU fan speed (which is what I care about) and it only says "OFF". Have an Nvidia card and nvidia-smi command DOES show fan speed correctly.
Also tried using it for cpu/mobo fan speeds just to see if it would report 0 (since lm_sensor doesn't support my mobo) but that also just said "OFF".
OFF is normal behavior if speed is 0 (which happens if returned as 0 or undefined).
Thermal monitor does the same thing if Temp is 0
ui/TemperatureItem.qml: property bool isOff: temperature === 0
ui/TemperatureItem.qml: text: isOff ? i18n('OFF') : TemperatureUtils.getTemperatureStr(temperature, temperatureUnit)
Ah, thanks for that. That would explain the CPU fan being reported as off since I know my mobo has problems with lm_sensor but still doesn't explain why I can't see GPU fan.
What version of plasma are you using ? I have the exact opposite behavior... Official Thermal monitor showing OFF for CPU Temps for eternity.
Must admit I have not tested GPU fan speed as I don't have one... Just coded it as I expect it to work based on what thermal monitor did...
What does "nvidia-smi --query-gpu=fan.speed --format=csv,noheader" return ?
Out of curiosity what version of plasma are you using ?
I ask as Official Thermal Monitor stopped working for me at some point and so I had to patch it (see https://github.com/kotelnik/plasma-applet-thermal-monitor/pull/62) to get it to work in plasma >=5.17.4
I reused the same patches for Fanspeed-monitor.
It returns whats expected (same fan speed as reported by nvidia-settings gui as well as just nvidia-smi with no parameters) (I'll also note it is above 0 at all times so Fan Speed Monitor shouldn't be saying off)
The plasma version i'm using is 5.17.5.
Thermal Monitor reports both CPU and GPU temps correctly while Fan Speed Monitor says "OFF" no matter what settings it has.
Ratings & Comments
12 Comments
I got it to work, before it just put OFF... I have only added a "!" in /contents/ui/config/ConfigFanspeeds.qml, leaving the code as follows, and it shows the fan speed on my macbook pro. if ((source.indexOf('lmsensors/') === 0 )
" if ((source.indexOf('lmsensors/') === 0 )
!source.match(/\/fan[0-9]*$/)) {
Buggy .... crashes kwin when trying to configure. Recent update causing breakage ??
I like this widget but I can't add Source to Fan Speed Monitor. I have lm-sensors and use Plasma 5.18. Any suggestion? Thanks in advanced
3 Monitor always says just "OFF" for me. Tried using it with GPU fan speed (which is what I care about) and it only says "OFF". Have an Nvidia card and nvidia-smi command DOES show fan speed correctly. Also tried using it for cpu/mobo fan speeds just to see if it would report 0 (since lm_sensor doesn't support my mobo) but that also just said "OFF".
OFF is normal behavior if speed is 0 (which happens if returned as 0 or undefined). Thermal monitor does the same thing if Temp is 0 ui/TemperatureItem.qml: property bool isOff: temperature === 0 ui/TemperatureItem.qml: text: isOff ? i18n('OFF') : TemperatureUtils.getTemperatureStr(temperature, temperatureUnit)
Ah, thanks for that. That would explain the CPU fan being reported as off since I know my mobo has problems with lm_sensor but still doesn't explain why I can't see GPU fan.
Doesn't work for me. Indicator just says "OFF" for eternity. Thermal Monitor applet works perfectly though.
What version of plasma are you using ? I have the exact opposite behavior... Official Thermal monitor showing OFF for CPU Temps for eternity. Must admit I have not tested GPU fan speed as I don't have one... Just coded it as I expect it to work based on what thermal monitor did... What does "nvidia-smi --query-gpu=fan.speed --format=csv,noheader" return ?
Out of curiosity what version of plasma are you using ? I ask as Official Thermal Monitor stopped working for me at some point and so I had to patch it (see https://github.com/kotelnik/plasma-applet-thermal-monitor/pull/62) to get it to work in plasma >=5.17.4 I reused the same patches for Fanspeed-monitor.
It returns whats expected (same fan speed as reported by nvidia-settings gui as well as just nvidia-smi with no parameters) (I'll also note it is above 0 at all times so Fan Speed Monitor shouldn't be saying off) The plasma version i'm using is 5.17.5. Thermal Monitor reports both CPU and GPU temps correctly while Fan Speed Monitor says "OFF" no matter what settings it has.