atar-axis / xpadneo

Advanced Linux Driver for Xbox One Wireless Controller (shipped with Xbox One S)
https://atar-axis.github.io/xpadneo/
GNU General Public License v3.0
1.87k stars 110 forks source link

missing kernel headers when installing from AUR #409

Closed rmullin7286 closed 4 months ago

rmullin7286 commented 1 year ago

Version of xpadneo

0.9.5

Controller Model

Connection mode

Installed Software

Protocol Information

Please help us identify at which layer the problem can be found if you want to report mapping errors or if the controller fails to be detected:

Please describe how it is failing below in the next sections.

Severity / Impact

Describe the Bug

When installing the driver using yay -S xpadneo-dkms from the AUR, The following error message is printed

(1/1) checking keys in keyring                                                                                                  [##############################################################################] 100%
(1/1) checking package integrity                                                                                                [##############################################################################] 100%
(1/1) loading package files                                                                                                     [##############################################################################] 100%
(1/1) checking for file conflicts                                                                                               [##############################################################################] 100%
(1/1) checking available disk space                                                                                             [##############################################################################] 100%
:: Processing package changes...
(1/1) installing xpadneo-dkms                                                                                                   [##############################################################################] 100%
:: Running post-transaction hooks...
(1/3) Reloading device manager configuration...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Install DKMS modules
==> ERROR: Missing sbin kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing var kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing lost+found kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing usr kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing srv kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing run kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing boot kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing home kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing tmp kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing lib64 kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing mnt kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing etc kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing root kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing dev kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing proc kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing lib kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing sys kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing opt kernel headers for module hid-xpadneo/0.9.5.
==> ERROR: Missing bin kernel headers for module hid-xpadneo/0.9.5.

Steps to Reproduce

On an arch linux install, run yay -S xpadneo-dkms

Expected Behavior

No error messages on install

System Information

# uname -a
Linux ryan-arch 6.1.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Feb 2023 20:06:08 +0000 x86_64 GNU/Linux
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)
4294967295 0

Controller and Bluetooth Information

N/A, issue is about installation

Additional Context

It appears this issue was also reported by another user on the AUR in January: https://aur.archlinux.org/packages/xpadneo-dkms

rmullin7286 commented 1 year ago

Turns out installing linux-headers beforehand resolved the issue. Closing.

kakra commented 1 year ago

Thanks. We should add that to the documentation, re-opened.

TiagodePAlves commented 1 year ago

I've updated the PKGBUILD on AUR with a warning pointing to the Arch Wiki on DKMS if the Linux headers can't be found for the current running kernel (uname -r). The warning will probably trigger if the package is installed or updated after a kernel update, but before the computer reboots, so it isn't fail-proof. Hope it helps to avoid these errors in the future, though.

CaptainCoward commented 8 months ago

Don't know if this info is even needed. But i just ran into the same issue when installing via pamac (manjaro) installation went through.. so i thought it should work. Controller paired just fine.. but no input was detected afterwards. After installing headers first and then xpadneo it worked.

kakra commented 4 months ago

I just verified this: Our README already points out that Arch requires linux-headers to be installed. It seems to be a general special behavior of distributions that DKMS packages do not automatically depend on the required kernel headers.

Arch documents this in its wiki, and we document the kernel header dependencies. Closing.