Closed shatrix closed 1 year ago
For 5800h $ cat /sys/class/hwmon/hwmon0/temp1_input efficient
It has been put into version 0.4.4-3 and you can update it to give feedback on the status of the issue.
Perfect, it's now working on my PC and my laptop as well. PC: AMD Ryzen 3 1200 Laptop: AMD Ryzen 7 4700U Here's a screenshot from my laptop
Thank you!
What happened?
Hi, the problem remains with AMD CPUs, I think you should use chekc for the thermal temp file, similar to what's happening with PiHole code, they chec for both files: /sys/devices/virtual/thermal/thermal_zone*/temp /sys/class/hwmon/hwmon0/temp1_input
Here: https://github.com/pi-hole/AdminLTE/blob/master/scripts/pi-hole/php/header_authenticated.php#L67-L73 Code: if (file_exists('/sys/class/thermal/thermal_zone0/temp')) { $output = rtrim(file_get_contents('/sys/class/thermal/thermal_zone0/temp')); } elseif (file_exists('/sys/class/hwmon/hwmon0/temp1_input')) { $output = rtrim(file_get_contents('/sys/class/hwmon/hwmon0/temp1_input')); } else { $output = ''; }
For me on my AMD PC (AMD Ryzen 3 1200), here's the output $ cat /sys/class/hwmon/hwmon0/temp1_input 30500
Could you please update the code?
Screenshots