Fred78290 / nct6687d

Linux kernel module for Nuvoton NCT6687-R
GNU General Public License v2.0
215 stars 42 forks source link

Confirm on MSI H410I Pro Wifi #13

Open Semmelrocks opened 3 years ago

Semmelrocks commented 3 years ago

Thanks to this module it shows anything at all than lm-sensors with the Kernel driver nct6683. You can see the board and chip as well here: https://m.media-amazon.com/images/I/91MNlzN5O9L.AC_SL1500.jpg Tested on Kernel 5.10.61 with a fanless system (so please don't wonder about the '0 rpm').

sensors-detect shows: Trying family `VIA/Winbond/Nuvoton/Fintek'... Yes Found unknown chip with ID 0xd592

Output with original Kernel driver: Adapter: ISA adapter Package id 0: +31.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +28.0°C (high = +80.0°C, crit = +100.0°C) Core 1: +29.0°C (high = +80.0°C, crit = +100.0°C) Core 2: +31.0°C (high = +80.0°C, crit = +100.0°C) Core 3: +27.0°C (high = +80.0°C, crit = +100.0°C)

acpitz-acpi-0 Adapter: ACPI interface temp1: +27.8°C (crit = +119.0°C)

nvme-pci-0100 Adapter: PCI adapter Composite: +45.9°C (low = -0.1°C, high = +84.8°C) (crit = +94.8°C) ERROR: Can't get value of subfeature temp2_min: I/O error ERROR: Can't get value of subfeature temp2_max: I/O error Sensor 1: +62.9°C (low = +0.0°C, high = +0.0°C)

Output now with this module: coretemp-isa-0000 Adapter: ISA adapter Package id 0: +31.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +28.0°C (high = +80.0°C, crit = +100.0°C) Core 1: +29.0°C (high = +80.0°C, crit = +100.0°C) Core 2: +31.0°C (high = +80.0°C, crit = +100.0°C) Core 3: +28.0°C (high = +80.0°C, crit = +100.0°C)

acpitz-acpi-0 Adapter: ACPI interface temp1: +27.8°C (crit = +119.0°C)

nct6687-isa-0a20 Adapter: ISA adapter +12V: 12.24 V (min = +12.24 V, max = +12.24 V) +5V: 5.07 V (min = +5.07 V, max = +5.07 V) +3.3V: 3.35 V (min = +3.35 V, max = +3.35 V) CPU Soc: 642.00 mV (min = +0.64 V, max = +0.64 V) CPU Vcore: 604.00 mV (min = +0.60 V, max = +0.60 V) CPU 1P8: 0.00 V (min = +0.00 V, max = +0.00 V) CPU VDDP: 0.00 V (min = +0.00 V, max = +0.00 V) DRAM: 2.00 V (min = +2.00 V, max = +2.00 V) Chipset: 948.00 mV (min = +0.95 V, max = +0.95 V) CPU Fan: 0 RPM (min = 0 RPM, max = 0 RPM) Pump Fan: 0 RPM (min = 0 RPM, max = 0 RPM) System Fan #1: 0 RPM (min = 0 RPM, max = 0 RPM) System Fan #2: 0 RPM (min = 0 RPM, max = 0 RPM) System Fan #3: 0 RPM (min = 0 RPM, max = 0 RPM) System Fan #4: 0 RPM (min = 0 RPM, max = 0 RPM) System Fan #5: 0 RPM (min = 0 RPM, max = 0 RPM) System Fan #6: 0 RPM (min = 0 RPM, max = 0 RPM) CPU: +31.0°C (low = +31.0°C, high = +31.0°C) System: +46.0°C (low = +46.0°C, high = +47.0°C) VRM MOS: +33.0°C (low = +33.0°C, high = +33.0°C) PCH: +56.0°C (low = +56.0°C, high = +56.0°C) CPU Socket: +32.0°C (low = +32.0°C, high = +32.0°C) PCIe x1: +29.0°C (low = +29.0°C, high = +29.0°C) M2_1: +23.0°C (low = +23.0°C, high = +23.0°C)

nvme-pci-0100 Adapter: PCI adapter Composite: +47.9°C (low = -0.1°C, high = +84.8°C) (crit = +94.8°C) ERROR: Can't get value of subfeature temp2_min: I/O error ERROR: Can't get value of subfeature temp2_max: I/O error Sensor 1: +65.8°C (low = +0.0°C, high = +0.0°C)

You can compare here:https://linux-hardware.org/?probe=e939c51829&log=sensors But it looks like he doesn't activate the Kernel module/driver nct6683. With Kernel 5.10.61 modprobe fails on my maschine:

modprobe nct6683 modprobe: ERROR: could not insert 'nct6683': No such device

But my system is running without sudo so I'd to adjust the makefile: obj-m += nct6687.o

all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

install: all mkdir -p /lib/modules/$(shell uname -r)/kernel/drivers/hwmon/ cp nct6687.ko /lib/modules/$(shell uname -r)/kernel/drivers/hwmon/ depmod modprobe nct6687

clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

As you can see I'd removed the sudo prefix and added the line mkdir -p /lib/modules/$(shell uname -r)/kernel/drivers/hwmon/ which seems to be a good idea at all to me.

dmesg shows me now: [ 4592.081335] nct6687: loading out-of-tree module taints kernel. [ 4593.145782] nct6687: Found NCT6687D or compatible chip at 0x004e:0x0a20 [ 4593.147417] nct6687 nct6687.2592: NCT6687D EC firmware version 1.0 build 05/06/20