No support for AMD Family 17h with lm-sensors in Mint 19

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
joemac42

No support for AMD Family 17h with lm-sensors in Mint 19

Post by joemac42 »

I did a fresh install of Mint 19 using an x470 motherboard with an AMD Ryzen 5 2600, which is AMD Family 17h. When I run "sensors-detect", I see the following:

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
Module cpuid loaded successfully.
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD Family 10h thermal sensors... No
AMD Family 11h thermal sensors... No
AMD Family 12h and 14h thermal sensors... No
AMD Family 15h thermal sensors... No
AMD Family 16h thermal sensors... No
AMD Family 15h power sensors... No
AMD Family 16h power sensors... No
Intel digital thermal sensor... No
Intel AMB FB-DIMM thermal sensor... No
Intel 5500/5520/X58 thermal sensor... No
VIA C7 thermal sensor... No
VIA Nano thermal sensor... No


So, no AMD Family 17h. On another forum, it was suggested that it was a kernel module issue and that I try Kernel 4.17 or later. I tried 4.18, but it did not make any difference. If this is a bug, I am not certain where to submit a but report. Any help is appreciated - I would like to be be able to monitor CPU temperature and fan speed.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
joemac42

Re: No support for AMD Family 17h with lm-sensors in Mint 19

Post by joemac42 »

I switched back to the 4.15 kernel - 4.18 was entirely not stable on my computer. I'm having trouble finding the correct place to do a bug report for lm-sensors.
ClixTrix

Re: No support for AMD Family 17h with lm-sensors in Mint 19

Post by ClixTrix »

If you run sensors from Terminal, you should see k10temp detected (should show as k10temp-pci-00c3).

k10temp is the driver for core temp on AMD and does now support 17h. I believe the updated driver was added in Kernel 4.15. I know I didn't have that sensor working until I updated to 4.15 (from 4.14) on old Mint 18.3. It's also working OK for me now in Mint 19. Here's a link to doc on the driver:

https://github.com/groeck/k10temp

I have the board and processor in my sig.

Edit: If you want to double-check that the driver is loaded, run the following command from Terminal.

Code: Select all

lsmod | grep k10temp
joemac42

Re: No support for AMD Family 17h with lm-sensors in Mint 19

Post by joemac42 »

Thanks for the help, especially for the clue about k10temp.

Here's what I get so far:
lsmod | grep k10temp
k10temp 16384 0
Running "sensors" still gets some odd results for k10temp-pci-00c3:
$ sensors
iwlwifi-virtual-0
Adapter: Virtual device
temp1: +33.0°C

nct6792-isa-0290
Adapter: ISA adapter
in0: +0.54 V (min = +0.00 V, max = +1.74 V)
in1: +0.00 V (min = +0.00 V, max = +0.00 V)
in2: +3.34 V (min = +0.00 V, max = +0.00 V) ALARM
in3: +3.34 V (min = +0.00 V, max = +0.00 V) ALARM
in4: +0.00 V (min = +0.00 V, max = +0.00 V)
in5: +0.00 V (min = +0.00 V, max = +0.00 V)
in6: +0.79 V (min = +0.00 V, max = +0.00 V) ALARM
in7: +3.42 V (min = +0.00 V, max = +0.00 V) ALARM
in8: +3.26 V (min = +0.00 V, max = +0.00 V) ALARM
in9: +1.80 V (min = +0.00 V, max = +0.00 V) ALARM
in10: +0.18 V (min = +0.00 V, max = +0.00 V) ALARM
in11: +0.13 V (min = +0.00 V, max = +0.00 V) ALARM
in12: +1.82 V (min = +0.00 V, max = +0.00 V) ALARM
in13: +1.70 V (min = +0.00 V, max = +0.00 V) ALARM
in14: +0.00 V (min = +0.00 V, max = +0.00 V)
fan1: 0 RPM (min = 0 RPM)
fan2: 424 RPM (min = 0 RPM)
fan3: 554 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
fan5: 0 RPM (min = 0 RPM)
SYSTIN: +118.0°C (high = +0.0°C, hyst = +0.0°C) sensor = thermistor
CPUTIN: -62.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor
AUXTIN0: +37.0°C (high = +0.0°C, hyst = +0.0°C) ALARM sensor = thermistor
AUXTIN1: +108.0°C sensor = thermistor
AUXTIN2: +107.0°C sensor = thermistor
AUXTIN3: -128.0°C sensor = thermistor
SMBUSMASTER 0: +33.0°C
PCH_CHIP_CPU_MAX_TEMP: +0.0°C
PCH_CHIP_TEMP: +0.0°C
PCH_CPU_TEMP: +0.0°C
intrusion0: OK
intrusion1: ALARM
beep_enable: disabled

k10temp-pci-00c3
Adapter: PCI adapter
temp1: +82.8°C (high = +70.0°C)
I think Temp1 might be the Nvidia GPU. I'm monitoring it via the Cinnamon panel app and it was correctly identified as a Nvidia GTX 1050Ti and typically runs between 33 and 37 °C. I honestly don't believe the 82.8°C CPU temperature at all. I checked CPU temperature in the EUFI bios (ASRock x470 mini-ITX/ac board) and it showed the following at idle:

CPU: 40.0°C
Motherboard: 37.0°C
CPU Fan1: 428 rpm
Fan1: N/A
Fan2: 554 rpm

The fan speeds pretty much match fan2 and fan3 in "sensors". I'm using the UEFI bios for PWM control of the fans and it has a fairly aggressive cooling profile. At 82.8°C, both fans would be maxed out, yet sensors shows that they are running at or just above idle speed. I'm also running a large Noctua NH-L12S cooler and the heat exchanger is cold to the touch at idle both with Mint booted and booted into UEFI bios, so I'm certain that k10temp-pci-00c3 has about a 40°C offset. Is there specific place to report bugs against k10temp?
ClixTrix

Re: No support for AMD Family 17h with lm-sensors in Mint 19

Post by ClixTrix »

There was an article last spring about temp offset problems with the new Zen+.

https://www.phoronix.com/scan.php?page= ... 6-Released

If it's patched on newer Kernels, you could try that or there is a method to add +/- offset yourself.

https://wiki.archlinux.org/index.php/lm_sensors

Here is my sensors for the K10temp with Ryzen 1600 and current 4.15 kernel at idle.

Code: Select all

sensors
radeon-pci-0800
Adapter: PCI adapter
temp1:        +44.5°C  (crit = +120.0°C, hyst = +90.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +28.5°C  (high = +70.0°C)
If you want a GUI monitor, try Psensor from the Software Manager.
joemac42

Re: No support for AMD Family 17h with lm-sensors in Mint 19

Post by joemac42 »

I had read online about different versions of k10temp returning offsets of 20C to 60C for various recent AMD Ryzen 5 processors and the issue seemed to vary among different recent Linux distributions on the 4.15 kernel. I decided to try out a few distributions via live boot USB sticks and I found that if I used Ubuntu 18.04, the issue went away. CPU temperature read the same at idle as within the UEFI bios. Ubuntu 18.04 also completely fixed a "jittery" video playback issue that I had been separately chasing. I hadn't known that Ubuntu and Mint used slightly differently compiled 4.15 kernels. Of course, it also could have been something completely different in the distribution, but I still didn't expect such a difference since Mint is built off of Ubuntu. Years ago, I switched from Ubuntu to Mint on all of my computers when Ubuntu switched to the Unity UI (couldn't stand it). Anyway, I still can't stand Unity, so I installed Xubuntu 18.04 and the CPU temperature monitoring issue is solved (along with the video issue). This isn't exactly the solution I was looking for, but it works for me for now. I will take a look at a bootable USB of Mint 19.1 once it is out of beta and if the k10temp reports CPU temperature correctly and if I can run glx-gears and glmark2 with out skips and stutters every 5-10 seconds, then I will switch back to Mint.
Locked

Return to “Hardware Support”