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

udev: RetroArch on Linux (including Lakka) gives the Vendor ID and Product ID of the Bluetooth dongle, not the Bluetooth gamepad! #3903

Closed
paalfe opened this issue Oct 30, 2016 · 3 comments

Comments

@paalfe
Copy link

paalfe commented Oct 30, 2016

"RetroArch on Linux (including Lakka) > Main Menu > Information > System Information > Port #? device VID/PID" and "RetroArch on Linux (including Lakka) > Settings > Input User ? Binds > User ? Save Autoconfig" gives the Vendor ID and Product ID of the Bluetooth dongle, not the Bluetooth gamepad!

"tail -f /var/log/syslog" and "dmesg" gives the correct Vendor ID and Product ID in HEX, that has to be converted to Decimal.


Example:

$ tail -f /var/log/syslog
kernel: [27290.888768] input: 8Bitdo SNES30 GamePad as /devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/bluetooth/hci0/hci0:256/0005:2820:0009.002D/input/input59
kernel: [27290.888998] hid-generic 0005:2820:0009.002D: input,hidraw3: BLUETOOTH HID v1.00 Gamepad [8Bitdo SNES30 GamePad] on 28:b2:bd:78:cb:42

$ dmesg
[27290.888768] input: 8Bitdo SNES30 GamePad as /devices/pci0000:00/0000:00:14.0/usb3/3-9/3-9:1.0/bluetooth/hci0/hci0:256/0005:2820:0009.002D/input/input59
[27290.888998] hid-generic 0005:2820:0009.002D: input,hidraw3: BLUETOOTH HID v1.00 Gamepad [8Bitdo SNES30 GamePad] on 28:b2:bd:78:cb:42

Hex vid:pid = 2820:0009 -> Decimal vid:pid = 10272:9


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@paalfe paalfe changed the title udev: RetroArch on Linux (including Lakka) gives the Vendor ID and Product ID of the Bluetooth dongle, not the Bluetooth controller! udev: RetroArch on Linux (including Lakka) gives the Vendor ID and Product ID of the Bluetooth dongle, not the Bluetooth gamepad! Oct 30, 2016
@u1735067
Copy link

u1735067 commented Oct 6, 2017

This might be a solution:

For https://github.com/libretro/RetroArch/blob/master/input/drivers_joypad/udev_joypad.c#L138.

I'd have made a PR myself, but I don't know udev very well (especially the parent part, not sure you want the parent for the BT input device, the correct product attribute seems on the input device itself) and I don't have the environment to make tests.

@orbea
Copy link
Contributor

orbea commented Jan 11, 2019

Closing in favor of the older issue. #2961

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

No branches or pull requests

3 participants