Hello,
I have LE 9.2.1 (RPi4.arm) running on a RPi4. I put it in a case with a power button (this one). I can start it with the push on the button and the "forced shutdown" is also working (press the button > 10s). What I cannot have is a graceful shutdown. Following the instructions with the case, I appended to /flash/config.txt :
Code
dtoverlay=gpio-poweroff,gpio_pin=18,active_low=0
dtoverlay=gpio-shutdown,gpio_pin=17,active_low=1,gpio_pull=up
Now, if I do a short press on the power button, the power options dialog is blinking on the screen.
According to this thread, I tried :
Code
LibreELEC:~ # cat /storage/.kodi/userdata/keymaps/keyboard.xml
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<global>
<keyboard>
<key id="61662">Shutdown</key>
</keyboard>
</global>
But it doesn't work. I can still see
Code
2020-05-11 22:51:50.944 T:3011641360 DEBUG: HandleKey: power (0xf0de) pressed, action is ActivateWindow(ShutdownMenu)
in the log.
How can I shut it down gracefully ? I also want to add that if I switch it off in Kodi, the power led on the case remains green (I still have to do a force shutdown to be able to boot it again).
Thanks !