Package Details: nct6687d-dkms-git r78.df1565a-2

Git Clone URL: https://aur.archlinux.org/nct6687d-dkms-git.git (read-only, click to copy)
Package Base: nct6687d-dkms-git
Description: Nuvoton module for NCT6687-R synced with latest upstream kernel.
Upstream URL: https://github.com/Fred78290/nct6687d
Keywords: nct6687
Licenses: GPLv2
Submitter: benlypan
Maintainer: darose
Last Packager: darose
Votes: 17
Popularity: 0.96
First Submitted: 2020-11-17 07:47 (UTC)
Last Updated: 2023-07-24 23:47 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Pinned Comments

benlypan commented on 2020-11-17 07:59 (UTC)

run modprobe nct6687 to load the module and then run sensors to get the outputs.

Latest Comments

1 2 3 Next › Last »

kodr commented on 2025-07-16 02:21 (UTC)

my bad, at some point it was pulling an upstream version which wasn't compatible with the current kernel. Thanks for the feedback.

darose commented on 2025-07-16 01:19 (UTC)

@kodr I don't know what you're talking about. This package builds and loads fine for me. (See below.) Is there some particular error message that you are experiencing?

[darose@darsys22 nct6687d-dkms-git]$ makepkg                                          
==> Making package: nct6687d-dkms-git r124.66ddfee-1 (Tue 15 Jul 2025 09:13:03 PM EDT) 
...
==> Finished making: nct6687d-dkms-git r124.66ddfee-1 (Tue 15 Jul 2025 09:13:04 PM EDT)
[darose@darsys22 nct6687d-dkms-git]$ sudo pacman -U nct6687d-dkms-git-r124.66ddfee-1-x86_64.pkg.tar.zst                                                                      
...
(1/1) Remove upgraded DKMS modules                                                                                                                                           
==> dkms remove --no-depmod nct6687d-dkms-git/r124.66ddfee -k 6.12.37-1-lts                                                                                                  
==> dkms remove --no-depmod nct6687d-dkms-git/r124.66ddfee -k 6.15.6-arch1-1                                                                                                 
:: Processing package changes...
(1/1) reinstalling nct6687d-dkms-git                                                                    [##############################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod nct6687d-dkms-git/r124.66ddfee -k 6.12.37-1-lts
==> dkms install --no-depmod nct6687d-dkms-git/r124.66ddfee -k 6.15.6-arch1-1
==> depmod 6.12.37-1-lts
==> depmod 6.15.6-arch1-1
(3/3) Updating linux initcpios...
...
[darose@darsys22 nct6687d-dkms-git]$ sudo dkms build nct6687d-dkms-git/r124.66ddfee -k 6.15.6-arch1-1 --force
Sign command: /usr/lib/modules/6.15.6-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module(s)... done.
Signing module /var/lib/dkms/nct6687d-dkms-git/r124.66ddfee/build/nct6687.ko
[darose@darsys22 nct6687d-dkms-git]$ sudo dkms install nct6687d-dkms-git/r124.66ddfee -k 6.15.6-arch1-1 --force
Module nct6687d-dkms-git/r124.66ddfee for kernel 6.15.6-arch1-1 (x86_64):
Before uninstall, this module version was ACTIVE on this kernel.
Deleting /usr/lib/modules/6.15.6-arch1-1/updates/dkms/nct6687.ko.zst
Running depmod... done.

Installing /usr/lib/modules/6.15.6-arch1-1/updates/dkms/nct6687.ko.zst
Running depmod... done.
[darose@darsys22 nct6687d-dkms-git]$ sudo modprobe nct6687
[darose@darsys22 nct6687d-dkms-git]$ lsmod | grep nct6687
nct6687                36864  0

kodr commented on 2025-07-15 20:03 (UTC)

@darose please fix this package...

kode54 commented on 2025-06-16 13:22 (UTC) (edited on 2025-06-16 13:23 (UTC) by kode54)

This package needs some fixes for the latest version, r119:

https://gist.github.com/kode54/e497014cbbfc45a1014b5e266f9a61b2

FShip commented on 2025-06-16 06:56 (UTC)

Does not build after Jun 15 commits.

Error! Build of nct6687.ko failed for: 6.15.2-arch1-1 (x86_64)

make.log says the same thing from the previous comment

yogo1212 commented on 2025-06-15 21:23 (UTC)

Does this still build for you?

For me, make.log says this:

DKMS (dkms-3.2.1) make.log for nct6687d-dkms-git/r119.7df2680 for kernel 6.15.2-arch1-1 (x86_64)
So 15. Jun 23:09:22 CEST 2025

Building module(s)
# command: make -j12 KERNELRELEASE=6.15.2-arch1-1 -C /usr/lib/modules/6.15.2-arch1-1/build M=/var/lib/dkms/nct6687d-dkms-git/r119.7df2680/build
make: Entering directory '/usr/lib/modules/6.15.2-arch1-1/build'
make[1]: Entering directory '/var/lib/dkms/nct6687d-dkms-git/r119.7df2680/build'
  MODPOST Module.symvers
make[1]: Leaving directory '/var/lib/dkms/nct6687d-dkms-git/r119.7df2680/build'
make: Leaving directory '/usr/lib/modules/6.15.2-arch1-1/build'

# exit code: 0
# elapsed time: 00:00:00
----------------------------------------------------------------

But nothing is compiled

darose commented on 2024-10-31 23:53 (UTC)

Builds for me:

[root@darsys22 ~]# dkms install  nct6687d-dkms-git/r107.f45b72a -k 6.11.5-arch1-1

Sign command: /usr/lib/modules/6.11.5-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Cleaning build area... done.
Building module(s)... done.
Signing module /var/lib/dkms/nct6687d-dkms-git/r107.f45b72a/build/nct6687.ko
Cleaning build area... done.

Installing /usr/lib/modules/6.11.5-arch1-1/updates/dkms/nct6687.ko.zst
Running depmod... done.
[root@darsys22 ~]# modprobe nct6687
[root@darsys22 ~]# lsmod | grep nct6
nct6687                32768  0

I'm guessing you probably need to upgrade: r104.0ee35ed -> r107.f45b72a

RAMChYLD commented on 2024-10-31 16:41 (UTC) (edited on 2024-10-31 16:43 (UTC) by RAMChYLD)

Will no longer build with latest kernel (6.11).

DKMS make.log for nct6687d-dkms-git-r104.0ee35ed for kernel 6.11.5-zen1-1-zen (x86_64)
Fri Nov  1 00:33:08 +08 2024
make: Entering directory '/usr/lib/modules/6.11.5-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.o
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:40:9: warning: "MIN" redefined
   40 | #define MIN(a,b) (((a)<(b))?(a):(b))
      |         ^~~
In file included from ./include/linux/ioport.h:15,
                 from ./include/linux/acpi.h:12,
                 from /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:27:
./include/linux/minmax.h:329:9: note: this is the location of the previous definition
  329 | #define MIN(a,b) __cmp(min,a,b)
      |         ^~~
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:41:9: warning: "MAX" redefined
   41 | #define MAX(a,b) (((a)>(b))?(a):(b))
      |         ^~~
./include/linux/minmax.h:330:9: note: this is the location of the previous definition
  330 | #define MAX(a,b) __cmp(max,a,b)
      |         ^~~
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:1171:19: error: initialization of ‘void (*)(struct platform_device *)’ from incompatible pointer type ‘int (*)(struct platform_device *)’ [-Wincompatible-pointer-types]
 1171 |         .remove = nct6687_remove,
      |                   ^~~~~~~~~~~~~~
/var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.c:1171:19: note: (near initialization for ‘nct6687_driver.<anonymous>.remove’)
make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build/nct6687.o] Error 1
make[1]: *** [/usr/lib/modules/6.11.5-zen1-1-zen/build/Makefile:1924: /var/lib/dkms/nct6687d/dkms-git-r104.0ee35ed/build] Error 2
make: *** [Makefile:224: __sub-make] Error 2
make: Leaving directory '/usr/lib/modules/6.11.5-zen1-1-zen/build'

darose commented on 2023-07-22 00:14 (UTC)

Anyone interested in adopting this orphan? I guess I'll step up if no one else does, but kernel modules aren't really my strong suit.

barrybingo commented on 2023-06-17 11:29 (UTC)

To get this package working apply this patch

diff --git a/PKGBUILD b/PKGBUILD
index 568b502..95b4b5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Frederic Boltz <frederic.boltz@gmail.com>

 pkgname=nct6687d-dkms-git
-pkgver=r13.b7a988d
+pkgver=r78.df1565a
 pkgrel=2
 pkgdesc="Nuvoton module for NCT6687-R synced with latest upstream kernel."
 arch=('i686' 'x86_64')
@@ -9,10 +9,10 @@ url="https://github.com/Fred78290/nct6687d"
 license=('GPLv2')
 makedepends=('git')
 depends=('dkms')
-source=("${pkgname}::git://github.com/Fred78290/nct6687d.git"
+source=("${pkgname}::git+https://github.com/Fred78290/nct6687d"
         "dkms.conf.in")
 sha256sums=('SKIP'
-            '22c57de66af431804e9f4e9e4fd435f6f24d7d0b5b562b5574b331f5919e5915')
+            'SKIP')

 pkgver() {
    cd "${pkgname}"
@@ -26,7 +26,10 @@ package() {
    install -dm755 "${pkgdir}/usr/src/${pkgname}-${pkgver}"
    cp -a LICENSE README* *.c "${pkgdir}/usr/src/${pkgname}-${pkgver}"

-   sed -e "s/(shell uname -r)/{TARGET}/" Makefile > \
+   commitcount=$(git rev-list --all --count)
+   commithash=$(git rev-parse --short HEAD)
+
+   sed -e "s/(shell uname -r)/{TARGET}/" -e "s/commitcount.*=.*/commitcount := $commitcount/" -e "s/commithash.*=.*/commithash := $commithash/" Makefile > \
        "${pkgdir}/usr/src/${pkgname}-${pkgver}/Makefile"

    sed -e "s/@PACKAGE_VERSION@/${pkgver}/" "${srcdir}/dkms.conf.in" > \
diff --git a/dkms.conf.in b/dkms.conf.in
index 481b145..63fc621 100644
--- a/dkms.conf.in
+++ b/dkms.conf.in
@@ -4,6 +4,6 @@ AUTOINSTALL="yes"

 BUILT_MODULE_NAME[0]="nct6687"
 DEST_MODULE_LOCATION[0]="/updates"
-MAKE[0]="make TARGET=${kernelver} KERNEL_BUILD=${kernel_source_dir}"
+#MAKE[0]="make TARGET=${kernelver} KERNEL_BUILD=${kernel_source_dir}"

 #POST_REMOVE="rmdir /usr/lib/modules/${kernelver}/updates"
\ No newline at end of file