kotelnik / plasma-applet-thermal-monitor

Plasma 5 applet for monitoring CPU, GPU and other available temperature sensors.
GNU General Public License v2.0
111 stars 63 forks source link

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

Closed shmerl closed 7 years ago

shmerl commented 7 years ago

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.

shmerl commented 7 years ago

Looks like there is an easy workaround directly through sensors configuration.

It helps sensors tool, but plasmoid ignores this for some reason. That's actually a bug.

shmerl commented 7 years ago

Here is what I did for my configuration:

sensors -u

nct6779-isa-0290
...
SMBUSMASTER 0:
  temp7_input: 48.000

I created: /etc/sensors.d/asrock-x370-taichi.conf

chip "nct6779-isa-0290"
  compute temp7 @-20,@+20

Now SMBUSMASTER 0 reports correct CPU temperature:

sensors

...
SMBUSMASTER 0:          +28.0°C

However the plasmoid still reports incorrect value. You can see computation logic in

man sesnors.conf
shmerl commented 7 years ago

Actually, I just had to re-login, and it started working, I guess plasmoid just red configs on startup, and actually adding a conf file wasn't picked up until it was restarted.