Shutdown with Power button in Kodi 18
#1
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...
Reply
#2
Got my answer in the LibreElec Forum:
https://forum.libreelec.tv/thread/14495-...post110597
Reply
#3
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 ?
Reply
#4
(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
Need help programming a Streamzap remote?
Reply
#5
@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
Reply
#6
(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.
Need help programming a Streamzap remote?
Reply
#7
@graysky 

ok i will try
Reply
#8
(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:

https://forum.kodi.tv/showthread.php?tid...pid2786505
Reply
#9
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 ..
Reply
#10
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
Reply
#11
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
Reply
#12
@DaVu

i added the compleet line , but nothing happends 
i access  librelec by using putty (ssh)
Reply
#13
after a reboot, are you able to shutdown kodi via the power button?
Reply
#14
(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
Reply
#15
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
Reply

Logout Mark Read Team Forum Stats Members Help
Shutdown with Power button in Kodi 180