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.88k stars 110 forks source link

xpadneo module doesn't seem to be loading #368

Closed Bucov closed 2 years ago

Bucov commented 2 years ago

Version of xpadneo

xpadneo-dmks 0.9.1-1

from here https://aur.archlinux.org/packages/xpadneo-dkms

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

I'm want to use xbox one s controller via bluetooth, but button mapping is wrong. After researching I found about this driver and that it is supposed to solve issues. Installed it via package manager, everything seems fine, but it doesn't seem to be loading into the system. (no vibration after connection is established)

modprobe xpadneo                                                                                                                                   127 ✘  3s  
modprobe: FATAL: Module xpadneo not found in directory /lib/modules/5.15.48-1-MANJARO
sudo modprobe hid_xpadneo                                                                                                                                   1 ✘ 
modprobe: FATAL: Module hid_xpadneo not found in directory /lib/modules/5.15.48-1-MANJARO
sudo modprobe hid-xpadneo                                                                                                                                   1 ✘ 
modprobe: FATAL: Module hid-xpadneo not found in directory /lib/modules/5.15.48-1-MANJARO
dkms status                                                                                                                                                 1 ✘ 
    ~                                                                                                                                                                ✔ 
sudo cat /etc/udev/rules.d/99-xpadneo.rules                                                                                                                 1 ✘ 
cat: /etc/udev/rules.d/99-xpadneo.rules: No such file or directory
sudo dmesg
usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  +0,001457] audit: type=1110 audit(1655555370.517:363): pid=22325 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_env,pam_fprintd acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  +0,001781] audit: type=1105 audit(1655555370.517:364): pid=22325 uid=1000 auid=1000 ses=4 msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
[  +3,940304] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +2,133981] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +1,919746] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +1,920218] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +2,133391] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +1,189209] input: Xbox Wireless Controller as /devices/virtual/misc/uhid/0005:045E:0B20.0008/input/input26
[  +0,000541] hid-generic 0005:045E:0B20.0008: input,hidraw1: BLUETOOTH HID v5.13 Gamepad [Xbox Wireless Controller] on f8:89:d2:c7:86:74
[  +0,729660] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +4,053311] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +1,919957] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +1,919988] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +2,133371] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state
[  +4,053356] rtw_8821ce 0000:03:00.0: firmware failed to leave lps state

Steps to Reproduce

Expected Behavior

Screenshots / GIFs / Videos

System Information

# uname -a
Linux milan-vostro153515 5.15.48-1-MANJARO #1 SMP PREEMPT Thu Jun 16 12:33:56 UTC 2022 x86_64 GNU/Linux
# xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)
 xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)                                                     1|0 ✔ 
zsh: correct 'xxd' to '_xxd' [nyae]? n
zsh: no matches found: /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor
4294967295 0
    ~  xxd -c20 -g1 /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor | tee >(cksum)                                                     1|0 ✔ 
zsh: correct 'xxd' to '_xxd' [nyae]? y
zsh: no matches found: /sys/module/hid_xpadneo/drivers/hid:xpadneo/0005:045E:*/report_descriptor
4294967295 0

Controller and Bluetooth Information

xpadneo-btmon.txt xpadneo-dmesg.txt

Additional Context

kakra commented 2 years ago

It looks like the AUR package installation failed somehow or is partially broken (similar issues have been reported to our Discord for the xone project), please ask AUR to diagnose and fix it. Also, they should bump the version to v0.9.3.

Bucov commented 2 years ago

Thanks, there are 2 of them https://aur.archlinux.org/packages/xpadneo-dkms-git https://aur.archlinux.org/packages/xpadneo-dkms

Tried both, but same problem. I'll try to build package from source to see if that fixes it.

DanielPower commented 2 years ago

I was running into the same problem. In my case it turns out the dkms module was failing to build/install because I didn't have linux-headers installed.

Make sure you have the correct -headers package installed for the kernel you're using (linux-headers, linux-lts-headers or linux-zen-headers). Then re-install xpadneo. That fixed it for me.

deathxxx123 commented 2 years ago

The AUR dkms packages are not working well. But the AUR git version is working good. But best way is still to install from github archive here.

kakra commented 2 years ago

I'd say this is completely an issue of the distribution, and the package maintainer needs to fix it. If the package is missing essential dependencies, then those need to be added by the maintainer. If the kernel does not properly provide the needed features (e.g., uhid built-in or autoloaded), then this needs to be addressed by the distribution kernel maintainers.

Thus, I'm closing this now.