wingpanel-indicator-sys-monitor icon indicating copy to clipboard operation
wingpanel-indicator-sys-monitor copied to clipboard

Added CPU temperature information

Open whitfijs-jw opened this issue 5 years ago • 5 comments

- added retrieval of CPU temperature 'x86_pkg_temp' from /sys/class/thermal/ directory -- this 'should' be the highest coretemp read from hwmon
- copy pasta for the indicator and info in the drop down view
- added CPU temp to schema
- so far only tested on a Sandy Bride laptop -- can probably test on a Haswell and AMD FX in the near future

whitfijs-jw avatar Dec 18 '19 00:12 whitfijs-jw

Should be cleaned up now. I liked the layout of the indicator so I figured I'd add CPU temp. x86_pkg_temp likely isn't going to work for all platforms -- it works on the 2 Intel CPUs computers that I have laying around. The pattern matching for the type in update_temperature in CPU.vala can be extended for other platforms. Thanks again for your work -- hope this helps someone.

whitfijs-jw avatar Dec 18 '19 01:12 whitfijs-jw

Thanks for your work. I will probably pull the branch and test is myself to see how it looks. Will come back with an update.

PlugaruT avatar Dec 18 '19 07:12 PlugaruT

Hello! Sorry to interrupt, I've tried to use it on my Dell laptop, I'm on latest version of Elementary, but no temperature is showing, I've tried watching in settings but did not found anything.. Am I missing some steps? I've followed the same install procedure in the Readme. Maybe I should remove the previous installation?

image

umbynos avatar Dec 26 '19 16:12 umbynos

Sorry for the delay, the extension I added depends on finding the type "x86_pkg_temp" in "/sys/class/thermal/thermal_zone*" directory

You can list the types like this:
cat /sys/class/thermal/thermal_zone*/type

If "x86_pkg_temp" isn't a type there let me know and I can add more patterns to support different platforms.

whitfijs-jw avatar Feb 14 '20 17:02 whitfijs-jw

On a fresh install it works. Maybe the problem it's reinstalling on a machine with the plugin already installed

umbynos avatar Apr 07 '20 07:04 umbynos