I have a HP t620 thin client running Ubuntu 20.04 as a SOHO file server. Webmin is not displaying the CPU temperature on the dashboard. The t620 has a k10temp-pci-00c3 sensor, and sensors returns temp1:.
Looking at linux-lib.pl, if I read it right, the sensors response does not match any of the temperature detection patterns. Here's the sensors response;
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +45.9°C (high = +70.0°C)
(crit = +100.0°C, hyst = +99.0°C)
I added the following to linux-lib.pl;
# HP t620 / k10temp kernel driver $ad = 0 if (/^\s*$/); $ad = 1 if (/^k10temp.*/); if ($ad && ( /temp(\d+):\s+([\+\-][0-9\.]+)\s+.*?[=+].*?\)/ || /temp(\d+):\s+([\+\-][0-9\.]+).*?°[Cc]\s+.*?[=+].*?\)/ )) { push(@rvx, { 'core' => int($1) - 1, 'temp' => $2 }); }
After restarting the webmin service the temperature now displays correctly. Just wasn't sure how to request this inclusion for future versions?
Hi, Steve.
Thanks for the details.
Could you please be kind sharing full sensors command output?
Hi Ilia,
Full sensors output below;
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +48.2°C (high = +70.0°C)
(crit = +100.0°C, hyst = +99.0°C)
radeon-pci-0008
Adapter: PCI adapter
temp1: +48.0°C (crit = +120.0°C, hyst = +90.0°C)
fam15h_power-pci-00c4
Adapter: PCI adapter
power1: N/A (crit = 15.00 W)
I also created a file in /etc/sensors.d/ with the following;
chip "k10temp-pci-*"
label temp1 "CPU"
This also works, but I would prefer not to have to remember to add the sensors file each time.
Regards
Last edit: SteveH 2021-07-30