Posts by HellG

    Hi,

    did you solve the problem? I had a similar problem with a Xiaomi BT Gamepad and the problem are these lines in the log:

    Code
    2019-12-19 08:44:05.639 T:1790935936   ERROR: AddOnLog: Joystick Support: Feature "guide": <feature> tag is not a valid primitive
    2019-12-19 08:44:05.673 T:1790935936   DEBUG: AddOnLog: Joystick Support: Loaded device "Keyboard" with 1 controller profiles and 139 total features
    2019-12-19 08:44:05.712 T:1790935936   DEBUG: AddOnLog: Joystick Support: Loaded device "Mouse" with 1 controller profiles and 10 total features
    2019-12-19 08:44:05.713 T:1790935936   DEBUG: AddOnLog: Joystick Support: game.controller.mouse: Removing pointer from button map
    2019-12-19 08:44:05.742 T:1790935936   DEBUG: game.controller.default: Waiting for input for feature "a"
    2019-12-19 08:44:06.869 T:1927279488   DEBUG: libinput: event3  - debounce state: DEBOUNCE_STATE_IS_UP → DEBOUNCE_EVENT_OTHERBUTTON → DEBOUNCE_STATE_IS_UP
    2019-12-19 08:44:06.870 T:1927279488   DEBUG: libinput: event3  - debounce state: DEBOUNCE_STATE_IS_UP → DEBOUNCE_EVENT_PRESS → DEBOUNCE_STATE_DOWN_WAITING
    2019-12-19 08:44:06.894 T:1927279488   DEBUG: libinput: event3  - debounce state: DEBOUNCE_STATE_DOWN_WAITING → DEBOUNCE_EVENT_TIMEOUT → DEBOUNCE_STATE_IS_DOWN
    2019-12-19 08:44:06.982 T:1927279488   DEBUG: libinput: event3  - debounce state: DEBOUNCE_STATE_IS_DOWN → DEBOUNCE_EVENT_RELEASE → DEBOUNCE_STATE_RELEASE_WAITING
    2019-12-19 08:44:06.994 T:1927279488   DEBUG: libinput: event3  - debounce state: DEBOUNCE_STATE_RELEASE_WAITING → DEBOUNCE_EVENT_TIMEOUT_SHORT → DEBOUNCE_STATE_RELEASED

    As you can see the gamepad is registered as mouse and as keyboard (for me it was joystick and keyboard) and thus a mouse event and a keyboard event are emitted at the same time. libinput apparently can't handle this and thinks the button bounced and tries to debounce, which does not work. In my case I wrote a udev rule to disable the libinput registration of the keyboard:

    Code
    ACTION=="add", SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{DEVPATH}=="*2717:3144*",  ENV{LIBINPUT_IGNORE_DEVICE}="1"

    After that only the joystick was regognized and it works just fine. See Xiaomi bluetooth gamepad not working for further information.