LE 9 - Shutdown with power button - Intel Nuc

  • Hello, I updated to LibreElec 9 last week.

    I have it running on my Intel NUC and most of the time i shut it down by pressing the power button.

    With LibreElec 8 this works as expected, the mashine shuts down.


    With LE9 when i press the power button, kodi just opens the menu where you can select shutdown/restart.

    Is it possible to configurate this so the system shuts down when i press the button without prompting?


    The only thing i found is overriding the gui button with the shutdown command but when i press the button in the menu, i want the prompt.

    Also this seems a bit hackish...

  • Try this at /storage/.kodi/userdata/keymaps/keyboard.xml:

    Code
    <keymap>
        <global>
            <keyboard>
                <power>shutdown</power>
            </keyboard>
        </global>
    </keymap>
  • Try this at /storage/.kodi/userdata/keymaps/keyboard.xml:

    Code
    <keymap>
        <global>
            <keyboard>
                <power>shutdown</power>
            </keyboard>
        </global>
    </keymap>

    Hello, do this still work, because i do not have that file there? I have a PC with the Generic Legacy 12.0.1, and i want that solution as well. Take care/Thore

  • Yes, although IMHO that requires more effort. You need to use an app like Notepad++ which supports Linux file endings and connect to the LE device using SFTP (FTP over SSH) not FTPS (SSL secured FTP).

  • Thanks, that is what i use to do. But I wasn't sure if you could create a file that the system uses while it's running. But since it doesn't exist, it should be enough to restart the system for it to see it, right?

  • Superthanks, one last question. Is it possible to change "<power>shutdown</power>" --> "<power>reboot</power>" without quotes instead? Just wondering, because when it hangs and I'm not home, I want my wife to be able to just click the power button for it to come out of its mode and reboot. Because today, I get via a computer or mobile on my local network and SSH to take it out of its locked state. Best regards, Thore/Sweden

  • The default Estuary skin is probably the best optimised one.

    Hello again you supersupporter:) Do you have any idea why the reboot button work when kodi is up and running, but now when Kodi gets stuck it doesn't? However, rebooting via SSH works. Strange then reboot that I entered instead of shutdown should do the same thing as I do via SSH, right?

  • If you run "reboot" via SSH (at OS level) the system will be forcibly restarted if needed. If you send a reboot command via Kodi, it must be handled and passed to the OS. If Kod is in some kind of hung state that probably doesn't happen.

  • I don't know what button you're talking about, but you described Kodi as being stuck (sound like non-functional), and when Kodi is hung it probably doesn't process button presses /shrug