-
Notifications
You must be signed in to change notification settings - Fork 501
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
Unable to use gamepad features for Adafruit Feather nrf52832 #723
Comments
can you post the log from the nrf52 side with debug level = 2 |
|
thanks for the log, I don't see any issue on device side. Could do you detail on your linux machine (distro and version) and how do you test the gamepad. Last time I tried, it works just fine with ubuntu 20.04 using an app called |
Testing was done with an application called jstest-gtk, which recognizes my Xbox and Playstation controllers without issue but fails to see my custom gamepad. It is the same story with a website called gamepad-tester. I also tested it on one of my Steam games (Crawl) and it doesn't work there either. I can't seem to find the antmicro you're talking about, could you provide a link? |
my terminal output has less error than yours, kernel does complain a missing GAP attribute, but it does not affect the functionality at all. Follow is my uname and bluez version, maybe update your software if older. Let me know if you want to have any extra info for troubleshooting. $ uname -a
Linux 5.14.0-1031-oem #34-Ubuntu SMP Fri Mar 25 08:21:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ apt list bluez
bluez/focal-updates,focal-security,now 5.53-0ubuntu3.5 amd64 [installed]
$ sudo systemctl status bluetoot
bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-03-29 22:24:07 +07; 4min 21s ago
Docs: man:bluetoothd(8)
Main PID: 9194 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 38383)
Memory: 1.2M
CGroup: /system.slice/bluetooth.service
└─9194 /usr/lib/bluetooth/bluetoothd
bluetoothd[9194]: Starting SDP server
bluetoothd[9194]: Bluetooth management interface 1.21 initialized
bluetoothd[9194]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSink/sbc
bluetoothd[9194]: Endpoint registered: sender=:1.53 path=/MediaEndpoint/A2DPSource/sbc
bluetoothd[9194]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[9194]: Failed to set mode: Blocked through rfkill (0x12)
bluetoothd[9194]: No cache for D5:08:BD:1E:94:58
bluetoothd[9194]: GAP attribute not found
bluetoothd[9194]: gap-profile profile accept failed for D5:08:BD:1E:94:58
bluetoothd[9194]: input-hog profile accept failed for D5:08:BD:1E:94:58 |
I actually have a later version of bluez, see here:
Can you check that it still works on bluez 5.60? Bluez is tied to the Pop-desktop so I can't easily downgrade it, and I'd prefer not to mess with my kernel since doing so in the past has broken things like my wifi and graphics. Please check on your end that the gamepad still properly registers with bluez=5.60 |
Unfortunately, I wouldn't want to upgrade my bluez stack either, especially the next LTS is about to dropped (I may go with Fedora 36 though). I will test again with the new OS later on. Meanwhile, maybe you could try to install 'AntiMicro' to test. |
Operating System
Linux
IDE version
1.18.19
Board
Adafruit Feather nrf52832
BSP version
Github latest
Sketch
https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/examples/Peripheral/blehid_gamepad/blehid_gamepad.ino
What happened ?
I am able to successfully connect over Bluetooth to my board, however, it is classified as type "Unknown" and none of the gamepad features, like the joystick or buttons, register. The same code works fine on Windows.
How to reproduce ?
Debug Log
I suspect it is something to do with a faulty device descriptor. See below:
Screenshots
https://i.imgur.com/XnU79nS.png
https://i.imgur.com/TYw3PZ1.png
https://i.imgur.com/GXWnf3O.png
The text was updated successfully, but these errors were encountered: