Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xpadneo does not disable microsoft driver? #72

Closed
He-Ro opened this issue Jan 5, 2019 · 2 comments
Closed

xpadneo does not disable microsoft driver? #72

He-Ro opened this issue Jan 5, 2019 · 2 comments

Comments

@He-Ro
Copy link

He-Ro commented Jan 5, 2019

Describe the bug
Error messages with UDEV rule in journalctl logs like the following:
Jan 05 17:10:59 archy systemd-udevd[8862]: Process '/bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/hid-generic/unbind'' failed with exit code 1.

To Reproduce
Steps to reproduce the behavior:

  • Be on Arch with kernel Linux archy 4.20.0-arch1-1-ARCH
  • Install xpadneo from AUR https://aur.archlinux.org/packages/xpadneo-dkms-git/ (with the patch noted in the comments for the version)
  • Pair and trust the XBox One S controller
  • Turn it off, have Bluetooth enabled
  • Have journalctl -f open to see log messages
  • Turn on the controller
    Expected behavior
    The controller connects and xpadneo driver is used, thus the controller rumbles.

Actual Behavior
The controller connects, but it does not rumble.
In the terminal with journalctl the following lines appear:

Jan 05 17:26:44 archy kernel: microsoft 0005:045E:02FD.0007: unknown main item tag 0x0                                                            
Jan 05 17:26:44 archy kernel: input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045
E:02FD.0007/input/input32                                                                                                                         
Jan 05 17:26:44 archy kernel: microsoft 0005:045E:02FD.0007: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:b
f:ff                                                                                                                                               
Jan 05 17:26:44 archy systemd-udevd[20574]: Process '/bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/hid-generic/unbind'' failed with
 exit code 1.                                                                                                                                      
Jan 05 17:26:44 archy systemd-udevd[20574]: Process '/bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/xpadneo/bind'' failed with exit 
code 1.                                                                                                                                            
Jan 05 17:26:44 archy systemd-udevd[20574]: Process '/bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/hid-microsoft/unbind'' failed wi
th exit code 1.
Jan 05 17:26:44 archy systemd-udevd[20574]: Process '/bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/xpadneo/bind'' failed with exit 
code 1.

It seems like the hid-microsoft and hid-generic drivers are not disabled correctly.

System information
Please enable debugging output (https://atar-axis.github.io/xpadneo/index.html#debugging)
and add at least the following outputs

  • uname -a: Linux archy 4.20.0-arch1-1-ARCH #1 SMP PREEMPT Mon Dec 24 03:00:40 UTC 2018 x86_64 GNU/Linux
  • dmesg
[  +0,023701] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  +0,000005] Bluetooth: BNEP filters: protocol multicast
[  +0,000009] Bluetooth: BNEP socket layer initialized
[  +0,219652] audit: type=1130 audit(1546704242.697:90): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ +30,060793] audit: type=1131 audit(1546704272.757:91): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  +6,000377] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[  +0,000012] Bluetooth: HIDP socket layer initialized
[  +0,001744] hid-generic 0005:045E:02FD.0003: unknown main item tag 0x0
[  +0,000280] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0003/input/input26
[  +0,000309] input: Xbox Wireless Controller Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0003/input/input27
[  +0,000304] hid-generic 0005:045E:02FD.0003: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:bf:ff
[  +0,146078] microsoft 0005:045E:02FD.0003: unknown main item tag 0x0
[  +0,000245] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0003/input/input28
[  +0,000282] microsoft 0005:045E:02FD.0003: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:bf:ff
[  +0,006033] xpadneo: hello there!
[Jan 5 17:10] microsoft 0005:045E:02FD.0004: unknown main item tag 0x0
[  +0,000231] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0004/input/input29
[  +0,000389] microsoft 0005:045E:02FD.0004: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:bf:ff
[Jan 5 17:14] microsoft 0005:045E:02FD.0005: unknown main item tag 0x0
[  +0,000214] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0005/input/input30
[  +0,000289] microsoft 0005:045E:02FD.0005: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:bf:ff
[Jan 5 17:25] microsoft 0005:045E:02FD.0006: unknown main item tag 0x0
[  +0,000233] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0006/input/input31
[  +0,001628] microsoft 0005:045E:02FD.0006: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:bf:ff
[Jan 5 17:26] microsoft 0005:045E:02FD.0007: unknown main item tag 0x0
[  +0,000217] input: Xbox Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:045E:02FD.0007/input/input32
[  +0,000271] microsoft 0005:045E:02FD.0007: input,hidraw2: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on f0:d5:bf:2b:bf:ff
  • sudo find "/sys/kernel/debug/hid/" -name "0005:045E:*" -exec sh -c 'echo "{}" && head -1 "{}/rdesc" | tee /dev/tty | cksum && echo' \;
/sys/kernel/debug/hid/0005:045E:02FD.0007
05 01 09 05 a1 01 85 01 09 01 a1 00 09 30 09 31 15 00 27 ff ff 00 00 95 02 75 10 81 02 c0 09 01 a1 00 09 32 09 35 15 00 27 ff ff 00 00 95 02 75 10 81 02 c0 05 02 09 c5 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 02 09 c4 15 00 26 ff 03 95 01 75 0a 81 02 15 00 25 00 75 06 95 01 81 03 05 01 09 39 15 01 25 08 35 00 46 3b 01 66 14 00 75 04 95 01 81 42 75 04 95 01 15 00 25 00 35 00 45 00 65 00 81 03 05 09 19 01 29 0f 15 00 25 01 75 01 95 0f 81 02 15 00 25 00 75 01 95 01 81 03 05 0c 0a 24 02 15 00 25 01 95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 05 0c 09 01 85 02 a1 01 05 0c 0a 23 02 15 00 25 01 95 01 75 01 81 02 15 00 25 00 75 07 95 01 81 03 c0 05 0f 09 21 85 03 a1 02 09 97 15 00 25 01 75 04 95 01 91 02 15 00 25 00 75 04 95 01 91 03 09 70 15 00 25 64 75 08 95 04 91 02 09 50 66 01 10 55 0e 15 00 26 ff 00 75 08 95 01 91 02 09 a7 15 00 26 ff 00 75 08 95 01 91 02 65 00 55 00 09 7c 15 00 26 ff 00 75 08 95 01 91 02 c0 85 04 05 06 09 20 15 00 26 ff 00 75 08 95 01 81 02 c0 00 
2579218694 1006

Please let me know if something is unclear or any more information is needed.
I just recently got the controllers and thus do not know if it worked before Kernel version 4.20

@He-Ro
Copy link
Author

He-Ro commented Jan 5, 2019

FYI I just tried the commands out myself:

sudo /bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/hid-generic/unbind'                                                                                                                                   
sudo /bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/xpadneo/bind'                                                                                                                                           
sudo /bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/hid-microsoft/unbind'
sudo /bin/bash -c 'echo 0005:045E:02FD.0007 > /sys/bus/hid/drivers/xpadneo/bind'

and the third command is incorrect, because on my system the directory of the microsoft driver is called just microsoft and not hid-microsoft, so the command sudo /bin/bash -c 'echo "0005:045E:02FD.0007" > /sys/bus/hid/drivers/xpadneo/bind' succeeded.

@atar-axis
Copy link
Owner

atar-axis commented Jan 5, 2019

that's exactly what I wanted to ask for 😁 I wrote this rule an hour ago, thank you for pointing out 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants