Bluetooth/Controller Input Debugging on RPi 3

  • Hi,

    I have a Rpi3 and control it with a bluetooth controller. The controller unfortunately has some unwanted behavior: To turn it off, I need to push the menu button for 2 seconds. This sends a last menu command before turning off, so I am stuck in the menu when I just want to watch a movie...

    So I assume this is what happens (correct me, if my assumptions are wrong):

    - Bluetooth works by sending "button_push" and "button_release" events

    - Libreelec acts on "button_push" instead of "button_release"

    - The controller sends one last "button_push" and no "button_release" (hopefully...)

    To confirm this I would like to have some kind of bluetooth or controller input debugging where I can see the incoming events.

    Then ultimately I want to change the behavior (at least from the menu button) from "button_push" to "button_release"

    Does this sound reasonable, and how would I do this?

  • You can either enable Kodi debug logging and it will record all input events or you can stop kodi and use evtest to show the input events in a ssh session