Xiaomi Remote - how to change function of buttons ?

  • Hello,

    I have Raspberry Pi 3 and Xiaomi Bluetooth remote.

    vfzwoof.jpg

    It works fine, but the default keymap does not suit me, how can I change the function of some buttons ?



    Edited once, last by trent (February 2, 2019 at 3:43 PM).

  • Okay, I eventually figured it out.

    First I have to run this (I don't know what it is or why I need to run it .... )

    Code
    curl -sL http://wrxtasy.libreelec.tv/LE-Xiaomi/xbt.sh | bash -

    Then I have to create and edit the xiaomibtremote.evmap file

    Code
    nano .config/xiaomibtremote.evmap

    My file looks like this:

    Code
    KEY_POWER   = KEY_MENU
    KEY_HOME    = KEY_PLAYPAUSE
    KEY_BACK    = KEY_EXIT
    KEY_F5      = KEY_INFO

    I am not sure if this will be my final configuration but it suits my using pattern better than the default configuration.