Kodi Community Forum

Full Version: Shutdown with Power button in Kodi 18
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am using LibreElec 9 (so this could be a Libreelec problem), but i guess this is kodi.
Basically i have LibreElec running on my Intel NUC and most of the time i shut it down by pressing the power button.
With Kodi 17 (LibreElec 8) this works as expected, the mashine shuts down.

With 18 / 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...
Got my answer in the LibreElec Forum:
https://forum.libreelec.tv/thread/14495-...post110597
Hi 
i also have this issue , but a little but different at LE 9.0.1
When i press the powerbutton on the remote, to shutdown kodi .  it shows the menus popup, but directly after that it  goes to a sleep mode
i what it just like LE8, just show the menue (sleepmode is not handy for me)   

is there a way to edit that ?
(2019-09-02, 22:29)niek Wrote: [ -> ]Hi 
i also have this issue , but a little but different at LE 9.0.1
When i press the powerbutton on the remote, to shutdown kodi .  it shows the menus popup, but directly after that it  goes to a sleep mode
i what it just like LE8, just show the menue (sleepmode is not handy for me)   

is there a way to edit that ?

https://github.com/graysky2/streamzap/bl...te.xml#L55
@graysky 
thx for you answer 

i use a Add-on:Keymap Editor and i also try 
https://forum.libreelec.tv/thread/14495-...post110597

but it is not working on my device after i a reboot 
i run LE9.0.0.1 on a generic PC
(2019-09-03, 08:03)NiekN Wrote: [ -> ]@graysky 
thx for you answer 

i use a Add-on:Keymap Editor and i also try 
https://forum.libreelec.tv/thread/14495-...post110597

but it is not working on my device after i a reboot 
i run LE9.0.0.1 on a generic PC
LE uses an overlayfs mount as I recall so you might need to verify which partition allows you to save user-modified files.  I do not know.
@graysky 

ok i will try
(2019-02-07, 12:55)Masternooob Wrote: [ -> ]I am using LibreElec 9 (so this could be a Libreelec problem), but i guess this is kodi.
Basically i have LibreElec running on my Intel NUC and most of the time i shut it down by pressing the power button.
With Kodi 17 (LibreElec 8) this works as expected, the mashine shuts down.

With 18 / 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...

This was a change made in LibreElec 9. You can revert back to NUC Powerbutton = Off by running this:

2786505 (post)
I did some tests, but even when i reroute the power button with the xml file(which works for other keys) . When i press the powerbutton to switch off the system , LE9 is still popping-up with a menu where you can select shutdown/restart, and directly after that (without any extra command from me) it is going into sleep mode ..
i see also some people with a NUC have problems with it ,  but i do not understand this command /code?

sed 's/HandlePowerKey=.*/HandlePowerKey=poweroff/' /etc/systemd/logind.conf > /storage/.config/logind.conf.d/logind.conf
No need to undestand that command (explaining that while you don't know 'sed' at all would take hours and walls of text).

login via ssh and simply run that command
@DaVu

i added the compleet line , but nothing happends 
i access  librelec by using putty (ssh)
after a reboot, are you able to shutdown kodi via the power button?
(2019-09-12, 06:20)DaVu Wrote: [ -> ]after a reboot, are you able to shutdown kodi via the power button?

i did a reboot , and when using the powerbutton on the remote( when system is online) ,  a pop-up window appears(with shutdown , reboot etc ) and directly after that the system is going in sleep mode 
exactly  the same what i had before
Sorry, my bad. I thought we where talking about the physical button on the NUC

Could I please see the kodi.log when you try to hit the power button on your remote

and also the xml file you are using (including its name and its locationon LE)

thanks
Pages: 1 2