[x86-64] No shutdown when pressing power button

  • Hi there!

    I'm running LibreElec 12.2.1 on an Intel n100.

    I'm pretty sure that back on 12.0 I could simply press the power button on the computer and have LibreElec shutdown and power off. Not any more: Now pressing the button pops up LibreElec's shutdown dialog.

    Any idea how to get the old behaviour back?

    Thanks!

  • To shutdown instantly, create this /storage/.kodi/userdata/keymaps/keyboard.xml:

    Code
    <keymap>
        <global>
            <keyboard>
                <power>shutdown</power>
            </keyboard>
        </global>
    </keymap>
  • Thanks, but I actually want to get the shutdown dialog when pressing the power button on my remote control. I just want to power-off when pressing the power-button on the computer.

  • Ah, thanks, this does work!

    I'm not quite sure how, though. See, I have other configs in my keyboard.xml that do work for the buttons on my remote, so I assumed the <power> would apply similarly to the remote's button, not the computer power-button:

    Should I move all those - besides the newly added <power> - to remote.xml instead?

  • The key-configs don't work when moving it all into remote.xml. Turns out, my remote is actually a keyboard. :)

    Which in hindsight is obvious, because a) it did work when in keyboard.xml and b) it's an "airmouse", Rii mini i25, that has a keyboard when flipped over. Obviously it's a keyboard, sorry for misleading you by calling it "remote", which in my mind it is when looking at it, ofc. :)

    Thanks again.