Package Details: hid-nintendo-dkms 3.2-2

Git Clone URL: (read-only, click to copy)
Package Base: hid-nintendo-dkms
Description: hid-nintendo Driver (DKMS)
Upstream URL:
Licenses: GPLv2
Provides: hid-nintendo
Submitter: nicman23
Maintainer: nicman23
Last Packager: nicman23
Votes: 9
Popularity: 0.013058
First Submitted: 2020-03-26 15:52 (UTC)
Last Updated: 2021-08-16 17:11 (UTC)

Latest Comments

burrhole commented on 2022-01-14 13:59 (UTC)

Just a heads up, it looks like hid-nintendo finally made it into the 5.16 kernel (or at least the official linux package), so this package shouldn't be necessary for people using the regular Arch kernel anymore

Celti commented on 2021-09-23 04:47 (UTC)

Please keep in mind that Manjaro Is Not Arch — the AUR is specifically for Arch Linux and if you are using it with a non-Arch or Arch-derived distribution there is no guarantee of support. If you are having problems using AUR packages outside of Arch, reach out to your distribution's support channels.

That being said...

You need the headers package for your running kernel. You are running a Manjaro kernel, you need the associated Manjaro headers package; in your case, that's probably linux512-headers.

Alkaris commented on 2021-09-23 03:48 (UTC)

For some reason can't build against 5.12.19-1 kernel on Manjaro despite having the linux-headers while the error suggests I run the make oldconfig stuff it doesn't actually work, because it's got nothing to work with.

ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.

make: *** [Makefile:719: include/config/auto.conf] Error 1
make: Leaving directory '/usr/lib/modules/5.12.19-1-MANJARO/build'

nicman23 commented on 2021-08-16 17:12 (UTC)


i never pushed.....

Date: Mon Jul 26 14:24:21 2021 +0300


yrlf commented on 2021-08-16 17:10 (UTC)

As already noted in the 'flagged out of date' note, please update the package to version 3.2. The only change necessary is bumping the version number in the PKGBUILD.

nfp0 commented on 2021-08-09 13:24 (UTC)

I see. My bad then. Thanks for the clarification.

Celti commented on 2021-08-09 13:18 (UTC)

Yes, this behaviour is by design and Arch does in fact expect you to review the logs of every package installation and upgrade to make sure there are no warnings or errors.

nfp0 commented on 2021-08-09 13:11 (UTC)

Since this is a package, and I believe I'm not supposed to read the log of every successful package installation, shouldn't it still signal Pacman that something went wrong, so that I could get a hint to check the logs and see what went wrong?

I believe a person that installs or updates dozens or hundreds of packages with a success message is not going to check the logs of every single one of them to make sure they're fully installed.

Is this Pacman behavior by design?

Celti commented on 2021-08-09 12:34 (UTC)

The installation of the package is succeeding just fine. The failure happens when DKMS tries to build the modules and can't find the headers. In this case, that's being triggered by a pacman hook after successful installation, but it can be run manually and will give you a similar error at that time.

nfp0 commented on 2021-08-09 12:10 (UTC)

@Celti Even so, shouldn't the installation fail? It's still being reported as successful even though the installation fails when the kernel headers are missing.

Celti commented on 2021-08-09 11:56 (UTC)

linux-headers is already an optional dependency for the core dkms package and should not be added here. It is optional because the specific headers package needed changes depending on the kernel the module is being built for (e.g., linux-zen-headers or linux-lts-headers).

The need to install kernel headers is spelled out in the Arch DKMS documentation, which you should read before using a DKMS package.

miepee commented on 2021-08-09 11:49 (UTC)

Can confirm that @nfp0's issue happens on vanilla Arch as well. linux-headers is not listed as a dependency even though it should.

nfp0 commented on 2021-05-15 09:52 (UTC)

Install fails on a clean Manjaro install (even though it reports as successful) with the following message:

Install DKMS modules
==> Unable to install module hid-nintendo/3.1 for kernel 5.10.34-1-MANJARO: Missing kernel headers.
Transaction successfully finished.

It worked fine after I installed the kernel headers and reinstalled this package. Shouldn't the kernel headers be listed as a dependency? And also, shouldn't the installation fail in this case, instead of reporting as a success? It took me a long time to notice that my controller was not working because the installation failed and reported as successful.

Other than that, awesome driver! Works beautifully!

nicman23 commented on 2021-04-13 17:03 (UTC)


That1Calculator commented on 2021-04-13 15:34 (UTC)

Can we please get this updated to 3.1? It's been like 2 months.

ISSOtm commented on 2020-09-05 19:26 (UTC)

I tried building in the same directory that built the 2.0 release, and it errored: cp: will not overwrite just-created '/aur/hid-nintendo-dkms/pkg/hid-nintendo-dkms/usr/src/hid-nintendo-3.0/dkms.conf' with 'dkms-hid-nintendo-3.0/dkms.conf' (and 2 more similar ones)

I believe line 21 is to blame: replacing it with cp -r dkms-hid-nintendo-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/ fixed that problem for me.

Additionally, according to the red warning box on the wiki, overriding the name to include the package's name as well would be a better idea.

And finally, thanks, I can finally use my Pro Controller on my laptop! :)

nicman23 commented on 2020-06-10 19:33 (UTC)

@Celti mb it was from when i packaged it just for me. one it pulls the release tar.gz

Celti commented on 2020-06-10 05:32 (UTC) (edited on 2020-06-10 05:40 (UTC) by Celti)

Packages with unversioned git sources should have a -git suffix and a pkgver() function, and as previously mentioned packages with any git sources need git as a makedepend.

bscubed commented on 2020-05-31 02:57 (UTC)

@nicman23 as @D1SoveR mentioned, could you please update the PKGBUILD pkgrel? It's quite annoying constantly showing one package to update in my AUR helper.

D1SoveR commented on 2020-04-29 14:58 (UTC) (edited on 2020-04-29 14:59 (UTC) by D1SoveR)

Note on small discrepancy: .SRCINFO lists pkgrel as 2, whereas PKGBUILD lists it as 1. This leads to AUR helpers repeatedly marking the package for update as the built version looks like it's behind the one available in AUR.

ruy16109 commented on 2020-04-17 22:47 (UTC)

Since this package has a git source, it should have a make dependency for git which it currently doesn't.

Grimish commented on 2020-04-17 21:50 (UTC) (edited on 2020-04-17 21:51 (UTC) by Grimish)

Like previous comments stated Do your git clone; Edit the dkms.conf replace the two 'MAKE' & 'CLEAN' lines with:

MAKE="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src modules"

CLEAN="make -C $kernel_source_dir M+$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src clean"

Pacman the built package in and viola!

chrhasse commented on 2020-04-10 05:34 (UTC)

The included dkms.conf fails to compile the module the first time for me with a custom kernel. Make indicates a success, but dkms says it failed.

$ sudo dkms install hid-nintendo/1.0 -k 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f        

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f -C /usr/lib/modules/5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f/build M=/usr/src/hid-nintendo-1.0/src/ modules...
Error!  Build of hid-nintendo.ko failed for: 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/hid-nintendo/1.0/build/ for more information.

$ cat make.log 
DKMS make.log for hid-nintendo-1.0 for kernel 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f (x86_64)
Thu 09 Apr 2020 10:33:02 PM CDT
make: Entering directory '/usr/lib/modules/5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f/build'
  CC [M]  /usr/src/hid-nintendo-1.0/src//hid-nintendo.o
  MODPOST 1 modules
  CC [M]  /usr/src/hid-nintendo-1.0/src//hid-nintendo.mod.o
  LD [M]  /usr/src/hid-nintendo-1.0/src//hid-nintendo.ko
make: Leaving directory '/usr/lib/modules/5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f/build'

After that if I try to run sudo dkms install hid-nintendo/1.0 -k 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f again it installs properly. though if I run sudo dkms remove hid-nintendo/1.0 -k 5.6.0-1-amd-staging-drm-next-git-00192-g5ca28f3f536f it will fail again on the first attempt. Changing the included dkms.conf to

MAKE="make -C $kernel_source_dir M=$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src modules"
CLEAN="make -C $kernel_source_dir M+$dkms_tree/$PACKAGE_NAME/$PACKAGE_VERSION/build/src clean"

to match how it is in the git source fixes the issue entirely.