mirror of
https://github.com/Fred78290/nct6687d
synced 2025-02-12 20:47:59 +01:00
Merge pull request #35 from discover02/main
This commit is contained in:
commit
40dd789567
4 changed files with 70 additions and 33 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -15,6 +15,8 @@ nct6687.o
|
||||||
.vscode/
|
.vscode/
|
||||||
5.1*/
|
5.1*/
|
||||||
|
|
||||||
|
dkms/
|
||||||
|
|
||||||
debian/changelog
|
debian/changelog
|
||||||
debian/nct6687d-dkms*
|
debian/nct6687d-dkms*
|
||||||
debian/.debhelper
|
debian/.debhelper
|
||||||
|
|
19
Makefile
19
Makefile
|
@ -19,6 +19,25 @@ clean:
|
||||||
[ -d "${curpwd}/${kver}" ] && make -C /lib/modules/${kver}/build M=${curpwd}/${kver} clean
|
[ -d "${curpwd}/${kver}" ] && make -C /lib/modules/${kver}/build M=${curpwd}/${kver} clean
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dkms/build:
|
||||||
|
make -C /lib/modules/${kver}/build M=${curpwd} modules
|
||||||
|
|
||||||
|
dkms/install:
|
||||||
|
rm -rf ${curpwd}/dkms
|
||||||
|
mkdir -p ${curpwd}/dkms
|
||||||
|
cp ${curpwd}/dkms.conf ${curpwd}/Makefile ${curpwd}/nct6687.c ${curpwd}/dkms
|
||||||
|
sudo rm -rf /usr/src/nct6687d-1
|
||||||
|
sudo cp -rT dkms /usr/src/nct6687d-1
|
||||||
|
sudo dkms install nct6687d/1
|
||||||
|
sudo modprobe nct6687
|
||||||
|
|
||||||
|
dkms/clean:
|
||||||
|
sudo dkms remove nct6687d/1
|
||||||
|
make -C /lib/modules/${kver}/build M=${curpwd} clean
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
debian/changelog: FORCE
|
debian/changelog: FORCE
|
||||||
git --no-pager log \
|
git --no-pager log \
|
||||||
--format='nct6687d-dkms (%ad) unstable; urgency=low%n%n * %s%n%n -- %aN <%aE> %aD%n' \
|
--format='nct6687d-dkms (%ad) unstable; urgency=low%n%n * %s%n%n -- %aN <%aE> %aD%n' \
|
||||||
|
|
71
README.md
71
README.md
|
@ -8,53 +8,53 @@ This kernel module permit to recognize the chipset Nuvoton NCT6687-R in lm-senso
|
||||||
This sensor is present on some B550 motherboard such as MSI or ASUS.
|
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)
|
The implementation is minimalist and was done by reverse coding of Windows 10 source code from [LibreHardwareMonitor](https://github.com/LibreHardwareMonitor/LibreHardwareMonitor)
|
||||||
|
<br><br>
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
#### Dependencies:
|
||||||
|
- Ubuntu/Debian:
|
||||||
|
```apt-get install build-essential linux-headers-$(uname -r) dkms```
|
||||||
|
- Fedora/CentOS/RHEL:
|
||||||
|
```yum install make automake gcc gcc-c++ kernel-devel kernel-headers dkms```
|
||||||
|
- ArchLinux:
|
||||||
|
```pacman -S make automake linux-firmware linux-headers dkms base-devel```
|
||||||
|
<br>
|
||||||
|
|
||||||
To install this module, you need a buid environment. Exemple for Ubuntu
|
### Build with DKMS
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
apt-get install build-essential linux-headers-`uname -r`
|
~$ git clone https://github.com/Fred78290/nct6687d
|
||||||
|
~$ cd nct6687d
|
||||||
|
~$ make dkms/install
|
||||||
```
|
```
|
||||||
|
<br>
|
||||||
|
|
||||||
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.
|
### Manual build
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
make install
|
~$ git clone (this-repo)
|
||||||
|
~$ cd nct6687d
|
||||||
|
~$ make install
|
||||||
```
|
```
|
||||||
|
<br>
|
||||||
|
|
||||||
If you need debug messages, please set `EXTRA_CFLAGS=-DDEBUG`
|
### Deb package
|
||||||
|
- Prerequisites
|
||||||
```shell
|
```shell
|
||||||
make install EXTRA_CFLAGS=-DDEBUG
|
~$ apt install -y debhelper dkms
|
||||||
```
|
```
|
||||||
|
- Clone this repository
|
||||||
## Deb package
|
|
||||||
|
|
||||||
1. Prerequisites
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
apt install -y debhelper dkms
|
~$ git clone https://github.com/Fred78290/nct6687d
|
||||||
|
~$ cd nct6687d
|
||||||
```
|
```
|
||||||
|
- Build package
|
||||||
2. Clone this repository
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git clone https://github.com/Fred78290/nct6687d
|
|
||||||
cd nct6687d
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Build package
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
make deb
|
make deb
|
||||||
```
|
```
|
||||||
|
- Install package
|
||||||
4. Install package
|
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
dpkg -i ../nct6687d-dkms_*.deb
|
dpkg -i ../nct6687d-dkms_*.deb
|
||||||
```
|
```
|
||||||
|
<br><br>
|
||||||
|
|
||||||
## Sensors
|
## Sensors
|
||||||
|
|
||||||
|
@ -89,6 +89,8 @@ PCIe x1: +32.0°C (low = +32.0°C, high = +32.0°C)
|
||||||
M2_1: +0.0°C (low = +0.0°C, high = +0.0°C)
|
M2_1: +0.0°C (low = +0.0°C, high = +0.0°C)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
## Load(prob) Sensors on boot
|
## Load(prob) Sensors on boot
|
||||||
|
|
||||||
To make it loaded after system boots
|
To make it loaded after system boots
|
||||||
|
@ -97,23 +99,30 @@ Just add nct6687 into /etc/modules
|
||||||
|
|
||||||
`sudo sh -c 'echo "nct6687" >> /etc/modules'`
|
`sudo sh -c 'echo "nct6687" >> /etc/modules'`
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
## Gnome sensors extensions
|
## Gnome sensors extensions
|
||||||
|
|
||||||
![Fan](./images/fan.png) ![Voltage](./images/voltage.png)
|
![Fan](./images/fan.png) ![Voltage](./images/voltage.png)
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
## Tested
|
## Tested
|
||||||
|
|
||||||
This module was tested on Ubuntu 20.04 with all kernel availble on motherboard [MAG-B550-TOMAHAWK](https://www.msi.com//Motherboard/MAG-B550-TOMAHAWK) running an [AMD 3900X/AMD 5900X](https://www.amd.com/en/products/cpu/amd-ryzen-9-3900x)
|
This module was tested on Ubuntu 20.04 with all kernel availble on motherboard [MAG-B550-TOMAHAWK](https://www.msi.com//Motherboard/MAG-B550-TOMAHAWK) running an [AMD 3900X/AMD 5900X](https://www.amd.com/en/products/cpu/amd-ryzen-9-3900x)
|
||||||
|
|
||||||
## Other motherboard supported
|
<br>
|
||||||
|
|
||||||
- Many people have reported compatibility with MB having h410M & H510M chipset from some manufacturer. See issue report.
|
## Other motherboard supported
|
||||||
|
- Many people have reported compatibility with MB having Intel H410M & H510M chipset from some manufacturer. See [issue](https://github.com/Fred78290/nct6687d/issues) report.
|
||||||
|
<br>
|
||||||
|
|
||||||
## CHANGELOG
|
## CHANGELOG
|
||||||
|
|
||||||
- Add support for MSI B460M Bazooka having NCT6687 with another device ID
|
- Add support for MSI B460M Bazooka having NCT6687 with another device ID
|
||||||
|
<br>
|
||||||
|
|
||||||
## VERIFIED
|
## VERIFIED
|
||||||
|
|
||||||
**1. Fan speed control**
|
**1. Fan speed control**
|
||||||
|
|
||||||
- Changing fan speed was tested succesfuly by users, see reported issue.
|
- Changing fan speed was tested succesfuly by users, see reported issue.
|
||||||
|
|
7
dkms.conf
Normal file
7
dkms.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
PACKAGE_NAME="nct6687d"
|
||||||
|
PACKAGE_VERSION="1"
|
||||||
|
MAKE[0]="make dkms/build"
|
||||||
|
BUILT_MODULE_NAME[0]="nct6687"
|
||||||
|
DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon/"
|
||||||
|
AUTOINSTALL="yes"
|
||||||
|
REMAKE_INITRD=no
|
Loading…
Add table
Reference in a new issue