Posts by danhans42

    Thanks for the help, now working perfectly..

    I put the following in keyboard.xml in the keymap folder...

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <keymap>
      <global>
        <keyboard>
          <key id="61662">Shutdown</key>
        </keyboard>
    </global>

    Now it shuts down. Also, with the config settings I placed in the earlier post, GPIO5 goes low once shutdown is complete.

    Works perfect. Thanks for all the help!

    It looks like all gpio-shutdown does is send the keystoke "KEY_POWER" to Kodi - which is what you are seeing with the shutdown menu. So it looks like the remapping is the best solution.

    gpio-poweroff doesn't seem to be implemented (yet).

    Wierd really, as its currently doing what I want it to (I have it set to pull GPIO5 high when its running, and low when shutdown is complete). Below is what I have in my config.txt

    Code
    #Overlay for GPIO Shutdown
    dtoverlay=gpio-shutdown,gpio_pin=26
    dtoverlay=gpio-poweroff,gpiopin=5,active_low=1

    I will give the keyboard mapping a go, and if that doesn't yield the desired result I will try the script you have linked above. I have an arduino handling this externally, so it will (eventually) shut down after the ignition key being off for 10 minutes - which is long enough for one of my fuel station visits.

    Thanks for the pointers so far. Very helpful. I will post back with my results.

    Cheers

    HI,

    Thanks for the replies. I thought I needed the poweroff overlay also, as this pin stays high whilst the RPi is running and then goes low on shutdown - I use this to switch power off once the RPI has shutdown.

    I will give the keyboard.xml modification a try and see if that works.


    Thanks for the help so far, this is the last niggle I need to sort before I can install it in the vehicle.

    Hi All,

    I am looking to use a Raspberry Pi3B+ in my car. I have designed and built a circuit that handles the power management and am using gpio-shutdown and gpio-poweroff dtoverlays, which seem to be doing what they are supposed to (they are now included in the LE9 test builds) , other than one thing...

    When I use the gpio that I have assigned to shutdown, I get the shutdown dialog come up. Usually this would be fine, but I want it to actually shutdown, not prompt to ask me to do it.

    I assume basically what I am wanting to do is to actually shutdown on a single keypress. is this something that can be done easily - Its probably more of a Kodi question rather than Libreelec but thought I would try here first.


    Thanks