Hi,
I've finally got some time to investigate my bluetooth gamepad problem so here is what I've found:
Basic problem description:
My generic bluetooth gamepads (Terios T
x and S
x) work over USB but do not work over bluetooth in LibreELEC (Amlogic MX2 and S905). I am able to connect them over bluetooth but Kodi doesn't get any input.
It used to be solved by adding the following udev rule in older LE versions:
SUBSYSTEM=="input", ATTRS{name}=="
bluetooth_name_of_your_device", KERNEL=="event*", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1"
Read more here:
https://forums.libretro.com/t/bluetooth-...input/9900
After adding the above udev rule I was finally able to get my gamepads to work over bluetooth (until I've recently updated LibreELEC).
In the current version the above solution no longer work and the Kodi does not get any input from the bluetooth gamepads again. I was able to narrow the problem down to LibreELEC git-d2c4924 (works) and git-59788e2 (doesn't work) so it seems the problem is in the 1st May Kodi update (
https://github.com/LibreELEC/LibreELEC.t...1b31013206).
Going through the Kodi github log between af4a548 (works) and 3a989ee (doesn't work) I've found PR #13176 (
https://github.com/xbmc/xbmc/pull/13176) which seems most likely to introduce the problem but it is just a first guess.
EDIT:
This is my device udev info from LE git-59788e2:
Code:
# udevadm info --name=input/event2
P: /devices/lm1/usb1/1-1/1-1.1/1-1.1:1.0/bluetooth/hci0/hci0:42/input4/event2
N: input/event2
E: DEVNAME=/dev/input/event2
E: DEVPATH=/devices/lm1/usb1/1-1/1-1.1/1-1.1:1.0/bluetooth/hci0/hci0:42/input4/event2
E: ID_BUS=usb
E: ID_INPUT=1
E: ID_INPUT_JOYSTICK=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_INPUT_MOUSE=1
E: ID_MODEL=a970
E: ID_MODEL_ENC=a970
E: ID_MODEL_ID=a970
E: ID_REVISION=1958
E: ID_SERIAL=0db0_a970
E: ID_TYPE=generic
E: ID_USB_DRIVER=btusb
E: ID_USB_INTERFACES=:e00101:
E: ID_USB_INTERFACE_NUM=00
E: ID_VENDOR=0db0
E: ID_VENDOR_ENC=0db0
E: ID_VENDOR_ID=0db0
E: LIBINPUT_DEVICE_GROUP=5/1949/402:00:13:d3:7d:1e:f3
E: MAJOR=13
E: MINOR=66
E: SUBSYSTEM=input
E: TAGS=:power-switch:
E: USEC_INITIALIZED=2273027659
I've noticed the new line with LIBINPUT_DEVICE_GROUP. It wasn't there in the previous versions.
EDIT2:
I should also note that these cheap gamepads usually have a keyboard and mouse emulation mode so they are a composite devices.