-
Notifications
You must be signed in to change notification settings - Fork 113
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
connection to driver xpadneo on raspberry fails with error -22 or only hid-generic is started #100
Comments
I tried to reproduce the error: Then i get the error: After turning the controller off/on i get again: so its reproducible ... time to go to bed anyway ... |
Hey! Do you get the Looks like the udev rule does not work on your machine, once again... Give me a Minute to add instructions here |
Please upload this log, one time without xpadneo installed, the other one with :) |
Note: It may be possible to simplify the whole udev-rule monster
@gordongnarf: If you want, you can give this a try too, but it would be great if you could send me the log anyway. |
Hi, thanks for the quick reply! [Mai 6 23:03] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 /tmp/xpadneolog1 monitor will print the received events for: KERNEL[8894.393686] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11 (bluetooth) UDEV [8894.401583] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11 (bluetooth) KERNEL[8903.190409] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11 (bluetooth) UDEV [8903.196005] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:11 (bluetooth) KERNEL[8939.224732] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) UDEV [8939.232688] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) KERNEL[8939.356464] add /module/hidp (module) KERNEL[8939.362411] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001 (hid) UDEV [8939.362873] add /module/hidp (module) UDEV [8939.371811] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001 (hid) now remove device from bluetooth, install your driver again, reboot, udevadm monitor -p > /tmp/xpadneo_log3 and connect controller again: dmesg (your driver was not used): and the log from udevadm monitor: monitor will print the received events for: KERNEL[211.263611] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) UDEV [211.272022] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) KERNEL[221.200446] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) UDEV [221.206220] remove /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) KERNEL[258.167536] add /module/hidp (module) UDEV [258.174285] add /module/hidp (module) KERNEL[258.264753] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) UDEV [258.272876] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12 (bluetooth) KERNEL[258.564354] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001 (hid) KERNEL[258.572575] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/input/input0 (input) KERNEL[258.573320] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/hidraw/hidraw0 (hidraw) KERNEL[258.611619] add /module/ff_memless (module) KERNEL[258.616854] add /module/hid_xpadneo (module) KERNEL[258.617210] add /bus/hid/drivers/xpadneo (drivers) UDEV [258.617702] add /module/ff_memless (module) UDEV [258.624246] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001 (hid) UDEV [258.625913] add /bus/hid/drivers/xpadneo (drivers) UDEV [258.628245] add /module/hid_xpadneo (module) UDEV [258.634970] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/hidraw/hidraw0 (hidraw) KERNEL[258.651879] add /module/joydev (module) KERNEL[258.652290] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/input/input0/js0 (input) UDEV [258.655865] add /module/joydev (module) KERNEL[258.657285] add /module/evdev (module) UDEV [258.657795] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/input/input0 (input) KERNEL[258.658486] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/input/input0/event0 (input) UDEV [258.659783] add /module/evdev (module) KERNEL[258.703611] change /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/power_supply/hid-9c:aa:1b:e7:fc:a2-battery (power_supply) UDEV [258.803290] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/input/input0/js0 (input) UDEV [258.804893] change /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/power_supply/hid-9c:aa:1b:e7:fc:a2-battery (power_supply) UDEV [258.911701] add /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/input/input0/event0 (input) UDEV [259.983524] change /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0001/power_supply/hid-9c:aa:1b:e7:fc:a2-battery (power_supply) hope you can read the matrix without decoder ;-) |
Thanks! I will take a look later, have you tried the instructions above too? Would be interesting too :) The other problem, the |
did what you wrote above and i got my rumble :-) see dmesg below [Mai 6 23:47] hid-generic 0005:045E:02FD.0003: unknown main item tag 0x0 |
that's good to hear, it also works on my local machine. But I will have to wait for some others to report back first, if it works for them too then I will merge it into the master 😁 Thanks for testing and reporting the issue! I will close it for now, if you face other - related - problems then we can reopen it ;) |
Hi,
would it be asked too much if I ask you for help to bring to work a python
script, that makes the controller Rumble?
Fftest works fine - so it should be possible at least.
In the net I can find the evdev documentation example - no error but also
no Rumble .
Then there is an old example class that also does not work for me - error.
I tried to understand the c-code of Fftest and transfer it to python - no
success.
I can provide more information.
I guess a running python-Rumble example would be interesting for many
people...
The information : which data must be transferred, would also be big help.
Thomas
Florian Dollinger <[email protected]> schrieb am Mo., 6. Mai 2019,
23:54:
… Closed #100 <#100>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#100 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AL7Y4XB5467C5WZUUCDCS2TPUCSKFANCNFSM4HK4IJDQ>
.
|
Hey Thomas, I am not a well trained python programmer, but I am sure we will find a solution - just open a new issue please ;) |
I have been trying for days to make my controllers use Xpadneo on connection ( Connecting with vibration ) and I have not been able. The only thing that worked for me is using that methode:
ACTION=="add",
I am using a Raspberry Pi 3 B+ and did a fresh install of Retropie. Did a full system update. Uninstalled Xpad. Then I installed Xpadneo. |
@flagoss: Thank you for reporting that! I will Change that in master today |
Thank you... I will try that a try tonight |
Describe the bug
I try to connect the xbox controller to my raspberry pi 3.
For me it does work with the hid-generic, since i only want to read out buttons and analog sticks with "python evdev"
In order to be able to "rumble" the controller i would like to use the xpadneo driver.
After installation of the xpadneo driver i either get:
[ +0,163060] hid-generic 0005:045E:02FD.0001: unknown main item tag 0x0
[ +0,000071] hid-generic 0005:045E:02FD.0001: unbalanced collection at end of report description
[ +0,000095] hid-generic: probe of 0005:045E:02FD.0001 failed with error -22
[ +0,052215] hid_xpadneo: loading out-of-tree module taints kernel.
[ +0,000973] xpadneo: hello there!
[ +0,002379] xpadneo 0005:045E:02FD.0001: unknown main item tag 0x0
[ +0,000078] xpadneo 0005:045E:02FD.0001: unbalanced collection at end of report description
[ +0,000054] xpadneo 0005:045E:02FD.0001: parse failed
[ +0,000051] xpadneo: probe of 0005:045E:02FD.0001 failed with error -22
with the above situation i do not get any files in /dev/input
or (after turning the controller off/on) the xpadneo driver does not start at all:
[Mai 5 23:33] hid-generic 0005:045E:02FD.0002: unknown main item tag 0x0
[ +0,000512] input: Xbox Wireless Controller as /devices/platform/soc/3f201000.serial/tty/ttyAMA0/hci0/hci0:12/0005:045E:02FD.0002/input/input0
[ +0,010544] hid-generic 0005:045E:02FD.0002: input,hidraw0: BLUETOOTH HID v9.03 Gamepad [Xbox Wireless Controller] on b8:27:eb:73:c7:4f
but i do have files in /dev/input/:
pi@raspberrypi:~ $ ls /dev/input/
event0 js0
With python i read out event0 with evdev and everything is fine - except the fact, that it does not rumble :-(
To Reproduce
I tried two time to:
remove the device from bluetoothctl
uninstall xpadneo
reboot
install xpadneo
reboot
Install current FW with Win10 (was no update necessary, but something was done to the device)
bluetoothctl scan on, pair mac, trust mac, connect mac
after the FW-update with Windows i could not connect to the device anymore (connect and immediate unconnect). So i uninstalled the xpadneo and tried again, still no connect. Reboot, remove from bluetoothctl, etc. Finally it connected again, but i got the error -22 (see above).
The whole procedure seems to be critical, depending on not so clear steps.
Expected behavior
A rumble and a stable connect :-)
Screenshots/Gifs
System information
uname -a
:Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
dmesg
see above
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.0002
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
The text was updated successfully, but these errors were encountered: