LE12 - PS3 BD Remote re-configure mapping

  • Hello @ll,

    since a long time I'm using LE11 on my NUC which is working good, and I want to change to LE12.
    But there's a small problem with my PS3 BD Remote, where not all buttons are working like "normal".

    I created for comparison two log-files.

    LE11 -> Working
    Button pressing from line 1050

    LE12 -> Not working
    Button pressing from line 1309

    What I'm wondering. In LE11 LIRC is used and in LE12 I don't see something like LIRC in the log files?!
    Don't wonder, LE12 is installed on a RPi4, but same behabiour on my NUC.

    Is there a possibility to re-map the buttons from my PS3 BD Remote?


    Thanks and best regards,
    Dominik

  • Go to Best Answer
  • Today I did some more test with LE12 and I'm more and more confused.

    I stopped kodi from ssh terminal (systemctl stop kodi) and started a libinput logging with "libinput debug-events --show-keycodes"
    Here I see the buttons from my Sony BD Remote as I would expect

    But if I start Kodi it seems that another mapping is automatically taken.

    Most of the buttons are working, but the (for me) important Menu button is not working (the part after left, right should be the menu button)

    I tried to create a keymap xml with different entries, but nothing worked.

    Code
            <keyboard>
                   <key id="0xf081">KEY_UP</key>
                   <key id="0xf080">KEY_DOWN</key>
           </keyboard>
    Code
            <keyboard>
                   <key id="f081">KEY_UP</key>
                   <key id="f080">KEY_DOWN</key>
           </keyboard>

    Maybe someone has an idea how to solve?

  • Have you tried mapping with the Keymap Editor addon?

    When doing my own mapping on my tv remote I made the mistake of using the wrong keyname -- I used <remote> instead of <keyboard>. The keymap editor helped me find that problem.

    Take a look at keynames at Keymap if you haven't already. It might not be <keyboard>.

    You can use the keymap editor addon just to help find the right syntax, then use it to roll your own version as you like without needing the addon.

  • Yes, I tried also with the Keymap Editor, but more/less same error.

    If I configure some actions with buttons I get everytime the same key id, but I pressed different buttons on remote.

    Code
    <keymap><global><keyboard>
           <key id="16839168">audionextlanguage</key>
           <key id="16839168">nextsubtitle</key>
           <key id="16839168">menu</key>
    </keyboard></global></keymap>

    If I test again with the ev-test like mentioned before I see the different buttons.

    In my mind main problem is, that the remote is not correct recognized (as keyboard as I see in the logs).
    Is there a possbility to see some logs from LibreElec Bluetooth connection? I think there is the main problem?

  • See https://github.com/LibreELEC/LibreELEC.tv/pull/9587

    You can replicate this locally by creating /storage/.config/udev.rules.d/98-eventlircd.rules with the same content as the PR.

    I'm interested in testing/feedback a) to get this merged for LE13, b) potentially to backport for LE12.2.


    Thanks for the link to that Pull Request.
    After creating the file with complete content from https://github.com/Dashinginthe90…ventlircd.rules it is now working.

    Absolut great and many, many thanks for it :)