Posts: 6
Joined: Jun 2015
Reputation:
0
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...
Posts: 12
Joined: Mar 2015
Reputation:
0
niek
Junior Member
Posts: 12
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 ?
Posts: 128
Joined: Jan 2017
Reputation:
0
NiekN
Senior Member
Posts: 128
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 ..
Posts: 128
Joined: Jan 2017
Reputation:
0
NiekN
Senior Member
Posts: 128
2019-09-06, 08:41
(This post was last modified: 2019-09-06, 08:43 by NiekN.)
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
Posts: 4,498
Joined: Jan 2011
Reputation:
150
DaVu
Team-Kodi Member
Posts: 4,498
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
Posts: 4,498
Joined: Jan 2011
Reputation:
150
DaVu
Team-Kodi Member
Posts: 4,498
after a reboot, are you able to shutdown kodi via the power button?
Posts: 4,498
Joined: Jan 2011
Reputation:
150
DaVu
Team-Kodi Member
Posts: 4,498
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