Open IaonnisPrysma opened 1 year ago
Can you try this command to see if you can read the cpu temperature?
cat /sys/class/thermal/thermal_zone0/temp
cat /sys/class/thermal/thermal_zone0/temp](cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory
Is that file part of a package I can download? I read temps with lm-sensors
@IaonnisPrysma Is it convenient to look at this path '/sys/devices/virtual/thermal/thermal_zone0/temp' if not, look at '/sys/devices/virtual/thermal' to see what's under this path
I tried all path and all of them give "No data available" I also tried "cat /sys/class/thermal/thermal_zone*/temp" I found nothing I'm on ubuntu server last version also with amd cpu
@Nsbx Can you check the temperature of the cpu with other third party tools, or command line commands?
I personally can with powertop (already included in my system) and lm-sensors (needs to be downloaded)
I'm on lastest debian with only basic components and ssh server, no desktop.
@IaonnisPrysma
Currently, CasaOS only supports temperature readings directly provided by the CPU and does not support readings from external sensors.
To confirm the type of temperature monitoring device your system is using, you can use the following command:
cat /sys/devices/virtual/thermal/thermal_zone*/type
To obtain the temperature reading from the corresponding device, use the following command:
cat /sys/devices/virtual/thermal/thermal_zone*/temp
Here are some examples:
{"cpu-thermal": "39704"}
{"acpitz": "31000", "x86_pkg_temp": "31000"}
For more types of temperature readings, refer to this link
If still have problems, please reopen
If still have problems, please reopen
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, the 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, here's the output $ cat /sys/class/hwmon/hwmon0/temp1_input 30500
Could you please update the code?
Still no read outs
@shatrix Do you have any ideas?
Is your feature request related to a problem? Please describe.
Is frustrating to not be able to see the power usage and temperature of the CPU, I know I can see it with powertop and lm-sensors as I have been doing since using CasaOS. Still not ideal for seeing it faster My CPU is an Ryzen 3 3200U, the device used as server is a laptop, I'm using Debian 11 minimal with nothing but basic system utils and OpenSSH.
Describe the solution you'd like To have on the UI the Temperature and Watt usage on AMD CPUs
Additional context Consider it would be a luxury to also have CPU frecuencies (by core) on some place on the WebUI. Anyways I'm grateful for this software, has been really good for my DDNS, Game servers and File hosting.