Git Product home page Git Product logo

plasma-applet-thermal-monitor's Introduction

Thermal Monitor

Plasma 5 applet for monitoring CPU, GPU and other available temperature sensors.

INSTALLATION

$ git clone --depth=1 https://github.com/kotelnik/plasma-applet-thermal-monitor
$ cd plasma-applet-thermal-monitor/
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
$ sudo make install

UNINSTALLATION

$ cd plasma-applet-thermal-monitor/build/
$ sudo make uninstall

or

$ sudo rm -r /usr/share/plasma/plasmoids/org.kde.thermalMonitor
$ sudo rm /usr/share/kservices5/plasma-applet-org.kde.thermalMonitor.desktop

LICENSE

This project is licensed under the GNU General Public License v2.0 and is therefore Free Software. A copy of the license can be found in the LICENSE file.

plasma-applet-thermal-monitor's People

Contributors

bilyaka avatar david-geiger avatar fademind avatar kezii avatar kotelnik avatar kscd avatar linxtone avatar musikolo avatar scrumplex avatar varlesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

plasma-applet-thermal-monitor's Issues

Move the applet under KDE umbrella

Hello,

I saw that your Plasma 5 applet for controlling redshift is being moved under KDE umbrella. I think it will be a good idea to also move this one under KDE umbrella.

Thanks !

The widget doesn't center vertically

screenshot_20180105_104406

As you can see in the image above, the temperature is not centered vertically. It would be really great if the widget can show the single temperature centered vertically. You can see how Event Calendar widget centers vertically nicely irrespective of its scale.

Thanks.

Doesn't find any temperature sources on FreeBSD

I don't know if the issue is with this widget, with Plasma 5, or what, but I have the coretemp kernel module loaded, and I can read the CPU temperature with sysctl from the terminal. So I know the correct kernel driver is loaded for the CPU temperature sensor at the OS level. But this widget reports no temperature sources for the CPU, hard drive, or anything else.

Feature request: custom font settings

Hi there!
Since github doesn't provide any kind of feature request page I'll post it here.
It would be great to have custom font settings for applet to use. I like a lot your warning and meltdown icons so I maximized their size in applet (to make them more visible in system tray). But as temp text is not bold I can hardly see it over colored icon. So it would be great to have font settings for label and temp text to make them bold/italic or to change font (not only text size).

Imgur
Imgur

Also a little issue easy to fix: warning and meltdown icons covers label text (see first pic above). I think it shouldn't.

P.S. don't be surprised with my CPU temperature. I am using Gentoo and I was compiling new Qt core in that moment on Core i7 ^_^

Can not build on Ubuntu 18

When try to run cmake .. -DCMAKE_INSTALL_PREFIX=/usr

Got error

CMake Error at CMakeLists.txt:6 (find_package):
Could not find a package configuration file provided by "ECM" (requested
version 0.0.11) with any of the following names:

ECMConfig.cmake
ecm-config.cmake

Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
to a directory containing one of the above files. If "ECM" provides a
separate development package or SDK, be sure it has been installed.

-- Configuring incomplete, errors occurred!
See also "/home/alex/plasma-applet-thermal-monitor/build/CMakeFiles/CMakeOutput.log".

Log file https://ufile.io/6caj0
System - Ubuntu 18, 4.17.0-12.1-liquorix-amd64

Use UDisks2 instead of hddtemp?

The netcat hack (not documented in README) is a bit ugly:

For mobile devices it is also not nice to wake up every second. Consider using UDisks2 for reading the temperature. Its D-Bus interface is documented here: http://udisks.freedesktop.org/docs/latest/gdbus-org.freedesktop.UDisks2.Drive.Ata.html#gdbus-property-org-freedesktop-UDisks2-Drive-Ata.SmartTemperature. Advantage of using this interface is that it will not spin disks or wake up SSDs unless it is active.

Bar / Curve display

It would be very cool if the widget would support some more graphical output. A bar display could save some space, while a curve showing the temperature of the last minutes could give a better overview.

CPU temperature goes to off state

I use this applet to show my CPU, GPU, SSD and HDD temperature. However, I have a problem with the CPU temperature.

When I start the computer, all the temperatures show its values except CPU, which shows an "off" message. Also, when I'm using my computer, sometimes I realize CPU temperature is "off" again. This can be manually fixed by right clicking on the applet and left click on "Reload temperature sources".

My CPU is a AMD Ryzen 5 1500x and I'm using the lmsensors/nct6795-isa-0a20/CPUTIN

I think this can be "patched" if a new feature to auto reload temperature sources on these situations is added.

There are no HDD entries

Arch Linux, Plasma 5.5. Applet installed from AUR, version 41d3cdd. No HDD entries at all.

hddtemp shows temperatures:

% hddtemp /dev/sda
/dev/sda: WDC WD800JD-75JNC0: 36°C

% hddtemp /dev/sdb
/dev/sdb: WDC WD5000AAKS-00TMA0: 29°C

Also:

% qdbus-qt5 --system org.freedesktop.UDisks2 /org/freedesktop/UDisks2/drives/WDC_WD800JD_75JNC0_WD_WMAM98114468 org.freedesktop.UDisks2.Drive.Ata.SmartTemperature
309.15000000000003

% qdbus-qt5 --system org.freedesktop.UDisks2 /org/freedesktop/UDisks2/drives/WDC_WD5000AAKS_00TMA0_WD_WCAPW0754885 org.freedesktop.UDisks2.Drive.Ata.SmartTemperature
302.15000000000003

Can't find .plasmoid extension file

There are only options for .zip, AUR, and GitHub in Plasma Widgets Library.
Also, when following the instructions from README.md file, make install fails.

dhruvdutt@dhruvdutt:~/plasma-applet-thermal-monitor$ sudo make install
make: *** No rule to make target 'install'. Stop.

System: Kubuntu 16.10
KDE Plasma Version: 5.7.5
KDE Frameworks Version: 5.26.0
Kernel Version: 4.8.0-46-generic

Patch of aticonfig support for ATI Catalyst driver

Hi!

I am user of ATI Catalyst driver for my graphic card HD 7870 Tahiti LE and I added aticonfig support to get temperature value. Here is my patch for plasma-applet-thermal-monitor.

You can reject the patch if you want, but I would be happy if you accept it.
On the picture: RGPU is my graphic card.

screenshot_20170718_190106

Display on large screens / high dpi screens

Showing several sensors on a large or high-dpi screen uses a lot of space in the panel, even when I use a small font size. In particular, two sensors readings would easily fit on top of each other (like in the system tray widget, where there are two rows of icons. This could be done automatically depending on the font size, i.e., the widget could show as many rows as fit in the panel with the chosen font size.

Center temperature if alias is not set

I just need to see my temperature and i do not care about what core it is, so i just dot set the alias. But this looks awful:
image
It would be nucho more beautiful if temerature were centered vertically if alias don't set.
I can center it by increasing the font size, but this looks terrible too:
image
And Even if alias is set it is hard to read it in a nor,al size panel which make it even more useless

HDD sources not properly initialized on plasma start

Since Plasma upgraded to 5.4 HDD temp values are always at 0 when I reboot or logout/login or restart plasma shell. Then I have to remove HDD entries in Thermal Monitor settings and add them again, then it works fine. It's not something related to udisks2 change, it was like that with hdd-temp in previous version.

Only show temperature without the Alias

Hello,

I want to show one temperature in the panel, preferably the max, without any Alias. Alias doesn't have value to me when quickly checking the overall temperature.

Alias takes space and makes the whole widget look weird with it sitting on top corner and displacing temperature on the other side.

If only temperature could be shown, in vertical center, and alias be made optional that would be great.

Thanks.

[plasma-desktop 5.18.5-2] Applet crashing rear opening Thermal Monitor Settings

Rear updating my arch something broke the Widget. Done it on firstly on my laptop and did it two days later on my Desktop (same Arch installation on both) with the same results.

I'm going to upload a log and

the packets that got updated (because i don't know which one caused the breakage).

thermal_monitor_journalctl.txt

package_update.txt

I already tested other widgets and none of them are having issues.

Plasma version: plasma-desktop 5.18.5-2

Let me know if you need more info :)

Vertical application bar excessive stacking

Still getting to grips with KDE.
The readout temp 'cells' do not decrease in size with smaller (&bigger) fonts.
Having multiple temps the problem increases.
It would be nice for the widget to scale internally making them horizontal where possible. Or selectable column variable.

small

Temperature of individual CPU cores

In lm-sensors I see the individual temperatures of all the CPU cores using the coretemp kernel driver.
Thermal Monitor shows only one temperature, which seems to be the highest one. It would be nice to add an option to see the individual cores as well.

Offsets provided in /etc/sensors.d/* are ignored by thermal monitor

Recent AMD processors (Ryzen X series), report temperature with +20°C offset:

Specifically, the AMD Ryzen™ 7 1700X and 1800X carry a +20°C offset between the tCTL° (reported) temperature and the actual Tj° temperature. In the short term, users of the AMD Ryzen™ 1700X and 1800X can simply subtract 20°C to determine the true junction temperature of their processor. No arithmetic is required for the Ryzen 7 1700. Long term, we expect temperature monitoring software to better understand our tCTL offsets to report the junction temperature automatically.

It would be nice to be able to offset it back to real value in the plasmoid.

hddtemp show NaNº

Hello, very good widget!!! Thx ))
I'm start hddtemp as service, but them not working - show NaNº
Please, see screen (on panel):
139
Tested on Kubuntu 15.04 KDE 5.3, with SSD Kingston V300 and HDD ST500LM012

Unusable source selection UI on systems with many sources

On systems with many temperature sources (in my case a Thinkpad X1 with ACPI and lm-sensors package), the source selection UI is unusable because the "Group Sources" section of the window grows too much:

Screenshot_20191030_092854

Maybe a list with a scrollbar would be more useful in those cases.

Allow setting sensor as fan (=RPM)

My laptop has the following sensor (gotten from sensors):

asus-isa-0000
Adapter: ISA adapter
cpu_fan:     2800 RPM
temp1:        +70.0°C

but the plasmoid can only show temperature and cries because its 2800°C

lmsensors/asus-isa-0000/temp1 is not updated after resume from suspend

After select watching lmsensors/asus-isa-0000/temp1 sensors applet working fine - updating temp. After suspend device and resume ISA sensor is not readable by applet and showing 0 (zero) value.

Command sensors showing all sensors all time:

[tomasz@arch ~]$ sensors
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +56.0°C (high = +87.0°C, crit = +105.0°C)
Core 0: +51.0°C (high = +87.0°C, crit = +105.0°C)
Core 1: +52.0°C (high = +87.0°C, crit = +105.0°C)
Core 2: +50.0°C (high = +87.0°C, crit = +105.0°C)
Core 3: +54.0°C (high = +87.0°C, crit = +105.0°C)

acpitz-virtual-0
Adapter: Virtual device
temp1: +55.0°C (crit = +108.0°C)

asus-isa-0000
Adapter: ISA adapter
temp1: +55.0°C

Workaround is logout and login again, after that ISA is updateable .

[UX Improvement] Change fontsize from slider to input box

Hello.
I can understand that maybe font size is not the thing which you change every day, but initial setup is really hard with theese sliders:
image
For example, I want to set temperature size to be 18 pixels, but where is 18 on the slider, there even no numerical representation on the right end of the slider.
There is another applet which I use - Event Calendar, which has an option to set text size in both a input and a slider methods:
image
But to be fair, The first input box is used to set actual amount of pixels, and the second slider is used to measure percents. And the slider affects both lines, not just only one.
So in your case there is no need for sliders, because they're independent from eachother, and can be easilly replaced with input boxes with no affect on configuration process.

Project status?

There are a bunch of issues and pull requests with fixes that are sitting around for a while. @kotelnik: are you still maintaining the project?

Hi

Hi
I use your plasmoid on Arch Linux, KDE Plasma 5.12.3.
As you can see in my screenshot, aliases are not correctly aligned.

plasmoid

.xsession-errors gets spammed with qml print() output

Qml seems to write every print() output into ~/.xsession-errors which as a result gets spammed with the like of
qml: New data incomming. Source: lmsensors/it8720-isa-0228/temp1, data: 32.000000
qml: updating model with temperature: 32, key: lmsensors/it8720-isa-0228/temp1, i: 0

I'm not sure about how to fix it but would it help to use QT's console API instead?

HDD always zero

Latest update does not show hdd temp at any time. I guess it's a different issue as what was solved by remove/add a sensor or reload data recently. The sensor is always 0.

Arch Linux
plasmashell 5.4.2
r33.2ea3dd6-1
udiskctl status lists both disks

HDD temp source SMART 190 vs 194

looks to be using SMART temp 190 which is airflow temp instead of actual disk temp 194 which results in misleading temperature readings

Build warning or error on Manjaro18.0+Plasma5.14.2?

-- The C compiler identification is GNU 8.2.1
-- The CXX compiler identification is GNU 8.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
CMake Warning at /usr/lib64/cmake/KF5Package/KF5PackageMacros.cmake:71 (message):
  warnings during generation of metainfo for org.kde.thermalMonitor: KCatalog
  being used without a Q*Application instance.  Some translations won't work

Call Stack (most recent call first):
  /usr/lib64/cmake/KF5Plasma/KF5PlasmaMacros.cmake:34 (kpackage_install_package)
  CMakeLists.txt:17 (plasma_install_package)


-- Configuring done
-- Generating done
-- Build files have been written to: /home/roach/code/Git/plasma-applet-thermal-monitor/build

Not sure it's a warning or an error?

Doesn't pick up temperature from a NVMe drive

"udisks/SM961_NVMe_Samsung".. shows as option but when selected status in the panel is "OFF"
Temperature of my second drive, a regular HDD, shows ok.
OS is Kubuntu 18.10 with all updates installed.

configuration to add/subtract offset from sensors values

Description

I own a Ryzen 1600X from AMD. And the temperature shown by the sensors-applet seems far too high. As far as I read, there is a non-conformity sensors values delivered are always 20 degrees to high.

It would be great, if there's a simple configuration option to add/subtract an offset value. Later on the thermal monitor the offset is used to show the correct value for the sensors.

Possibly there are other sensors delivering wrong values? So this would be a simple hack to correct all of these individually.

I made a small mockup what would have to be added to the configuration dialog of one sensor.
The first picture shows the current state and the second (-new) with the enhancement. Feel free to give the objects better placements and nicer style, it's just to show the principle. I'm no designer... ;-)

Mockup

First picture, current state
screenshot_20180903_213951-plasma-thermal-monitor-cfg1

and this would be the enhancement
screenshot_20180903_213951-plasma-thermal-monitor-cfg1-new

Setting a font size to the lowest setting has no effect

If you decrease the font size of the alias, temperature, or icon to the lowest setting and hit apply, nothing happens. Setting the font size to any other setting works as expected.

I am using Thermal Monitor version 1.2.5 on Plasma 5.5.1

Max temperature is limited to double-digits (aka 99°C)

I would like to monitor the junction temperature of my AMD Radeon VII which can (savely) reach 115°C before it starts to throttle.

Sadly I cannot set any temperature monitoring limit above 99°C, as the text field is limited to two characters.

"Reload Temperature Sources" button resets text and icon settings

Hello again, my friend :)

I've noticed strange behavior of "Reload Temperature Sources". It resets layout and all text and icons settings. I'll investigate this and provide you normal bag report. Also I am using github version 89de935 and not that one from kde-apps. Try reproducing it yourself, if you won't be able to - i'll give a try again this afternoon.

P.S. I am sorry not to found this problem during testing after last issue-fix.

build failure

look, what happens on my feeBSD 14 machine:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message):
  The imported target "Qt5::Core" references the file

     "/usr/local/lib/qt5/bin/qmake"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:9 (_qt5_Core_check_file_exists)
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:232 (include)
  /usr/local/share/ECM/modules/ECMQueryQmake.cmake:1 (find_package)
  /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:458 (include)
  CMakeLists.txt:9 (include)


-- Configuring incomplete, errors occurred!
See also "/home/lizbeth/plasma-applet-thermal-monitor/build/CMakeFiles/CMakeOutput.log".

what additional dependencies do I need, or is it just a compile failure?

Lizbeth

I can't choose any lmsensors

Hi. I'm using this plasmoid, version 1.2.7, but I cant find my CPU Temperature sensor.

I've attached visible options and my sensors command output

sensor

options

There is some misconfiguration? How can I do to choose my sensor?

Freezed temp after switching off GPU with bbswith

On Optimus graphics GPU temp sensor is active only when GPU is powered on.
On system bootup (when GPU is switched off) plasmoid showing 0. It's ok (though it can give something like "OFF" if can't read temp sensor). During using GPU it works perfectly. But after switching GPU off it freezes on last seen temp.

Way to reproduce:

  1. take some notebook with Optimus graphics
  2. install bumblebee and thermal monitor applet
  3. switch on GPU
  4. add GPU sensor to applet
  5. turn off GPU

Result:

  • applet shows last temp managed to read from sensor

Expected result:

  • applet shows 0 or OFF

QML Type Error

The app fails to display temperature automatically, but it works when I hit Reload Temperature Sources.
I'm getting this error from journalctl during startup.
Dec 14 12:12:16 caladan plasmashell[693]: file:///home/aulos/.local/share/plasma/plasmoids/org.kde.thermalMonitor/contents/ui/main.qml:312: TypeError: Type error

System info:
Operating System: Antergos Linux
KDE Plasma Version: 5.14.4
Qt Version: 5.12.0
KDE Frameworks Version: 5.53.0
Kernel Version: 4.19.8-arch1-1-ARCH
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 7.7 GiB of RAM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.