mirror of
https://github.com/Fred78290/nct6687d
synced 2024-11-16 07:48:04 +01:00
Add sources
This commit is contained in:
parent
16108804a7
commit
d5ec6adbe4
4 changed files with 1280 additions and 0 deletions
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
.Module.symvers.cmd
|
||||
.modules.order.cmd
|
||||
.nct6687.ko.cmd
|
||||
.nct6687.mod.cmd
|
||||
.nct6687.mod.o.cmd
|
||||
.nct6687.o.cmd
|
||||
linux-headers
|
||||
Module.symvers
|
||||
modules.order
|
||||
nct6687.ko
|
||||
nct6687.mod
|
||||
nct6687.mod.c
|
||||
nct6687.mod.o
|
||||
nct6687.o
|
||||
.vscode/
|
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
obj-m += nct6687.o
|
||||
|
||||
all:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
||||
|
||||
install: all
|
||||
sudo cp nct6687.ko /lib/modules/$(shell uname -r)/kernel/drivers/hwmon/
|
||||
sudo depmod
|
||||
sudo modprobe nct6687
|
||||
|
||||
clean:
|
||||
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|
55
README.md
Normal file
55
README.md
Normal file
|
@ -0,0 +1,55 @@
|
|||
# README
|
||||
|
||||
## NCT6687D Kernel module
|
||||
|
||||
This kernel module permit to recognize the chipset Nuvoton NCT6687-R in lm-sensors package.
|
||||
This sensor is present on some B550 motherboard such as MSI or ASUS.
|
||||
|
||||
The implementation is minimalist and was done by reverse coding of Windows 10 source code from [LibreHardwareMonitor](https://github.com/LibreHardwareMonitor/LibreHardwareMonitor)
|
||||
|
||||
## Installation
|
||||
|
||||
To install this module, you need a buid environment. Exemple for Ubuntu
|
||||
|
||||
```shell
|
||||
apt-get install build-essential linux-headers-`uname -r`
|
||||
```
|
||||
|
||||
Clone this repository and go to source directory, just run make install. During install, you could be asked for your password because some commands are sudoed.
|
||||
|
||||
```shell
|
||||
make install
|
||||
```
|
||||
|
||||
## Sensors
|
||||
|
||||
By running the command sensors, you got this output
|
||||
|
||||
```
|
||||
nct6687-isa-0a20
|
||||
Adapter: ISA adapter
|
||||
fan1: 1200 RPM
|
||||
fan2: 1426 RPM
|
||||
fan3: 918 RPM
|
||||
fan4: 930 RPM
|
||||
fan5: 1371 RPM
|
||||
fan7: 967 RPM
|
||||
CPU: +49.0°C
|
||||
System: +34.0°C
|
||||
VRM MOS: +30.0°C
|
||||
PCH: +40.0°C
|
||||
CPU Socket: +33.0°C
|
||||
PCIe x1: +32.0°C
|
||||
M2_1: +0.0°C
|
||||
```
|
||||
|
||||
## Tested
|
||||
|
||||
This module was tested on Ubuntu 20.04 with [Linux Kernel 5.8.18-050818-generic](https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.18/) on motherboard [MAG-B550-TOMAHAWK](https://www.msi.com//Motherboard/MAG-B550-TOMAHAWK) running an [AMD 3900X](https://www.amd.com/en/products/cpu/amd-ryzen-9-3900x)
|
||||
|
||||
## TODO
|
||||
|
||||
**1. Fan speed control**
|
||||
|
||||
- Changing fan speed and restore to default value not tested.
|
||||
- Becareful probably fan speed will down to 0 RPM
|
Loading…
Reference in a new issue