CPU temperature shown as NA after kernel update
It seems after a kernel update to 5.11.0-7633 on Pop OS 21.04 my CPU temperature isn't detected anymore. My CPU is AMD Ryzen 9 4900HS.

It worked perfectly prior to updating.
Hi, Thanks for reporting. Please refer #22. and let me know the debugging info(output of the below python code):
import psutil as ps
print(ps.sensors_temperatures())
import psutil as ps print(ps.sensors_temperatures()) {'acpitz': [shwtemp(label='', current=33.0, high=120.0, critical=120.0)], 'nvme': [shwtemp(label='Composite', current=27.85, high=79.85, critical=84.85)], 'amdgpu': [shwtemp(label='edge', current=31.0, high=None, critical=None)], 'k10temp': [shwtemp(label='Tctl', current=33.625, high=None, critical=None)], 'iwlwifi_1': [shwtemp(label='', current=29.0, high=None, critical=None)]}
So after the kernel update, the Tdie temperature is not available from the psutil. Tctl temperature is the temperature that the system set to fire-up the fan and control its speed and other OS related stuff. Basically it acts as the controlling temperature rather than the true measured temperature.
I'm having the same issue on Pop OS (fresh install),
Python 3.9.5 (default, May 11 2021, 08:20:37)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import psutil as ps
>>> print(ps.sensors_temperatures())
{'acpitz': [shwtemp(label='', current=16.8, high=20.8, critical=20.8), shwtemp(label='', current=16.8, high=20.8, critical=20.8)], 'gigabyte_wmi': [shwtemp(label='', current=28.0, high=None, critical=None), shwtemp(label='', current=32.0, high=None, critical=None), shwtemp(label='', current=45.0, high=None, critical=None), shwtemp(label='', current=34.0, high=None, critical=None), shwtemp(label='', current=32.0, high=None, critical=None), shwtemp(label='', current=46.0, high=None, critical=None)], 'k10temp': [shwtemp(label='Tctl', current=45.0, high=None, critical=None), shwtemp(label='Tccd1', current=34.25, high=None, critical=None)]}
Possibly issue in 192 - 210 in cpu.py not falling back tctl if tdie unavailable?
Possibly issue in 192 - 210 in cpu.py not falling back tctl if tdie unavailable?
It is not meant fallback to tctl since it is not the correct temperature and actual cpu temperature.
May be there might some other locations which give cpu temperature to the closest but it I m not sure.