libreelec cannot powerdown from proxmox control pannel

  • Hi

    I install libreelec on a proxmox. It works great, I even have passthrough the IGD.

    But I found oOther virtual machines can be shut down from the console, libreelec cannot.

    Quote

    TASK ERROR: VM quit/powerdown failed - got timeout

    Are there any necessary components I should install?

    Thx

  • Hi C.Azrael - the problem is, that after pressing "shutdown" in Proxmox, the libreelec standby/shutdown menu

    is shown on your Display - if you confirm the shutdown by clicking "shutdown" in the menu, it succeeds in Proxmox.

    There is not much you can do about this.

    The qemu-guest-agent package does not exist for libreelec but could have helped here - as it signals the shutdown command directly to the VM.

    So just remember to turn off your VM through ssh with poweroff.

    Of course, rebooting libreelec from proxmox does not work either and only shows the Power Options Menu.

  • Power off via systemd-logind can be configured in /storage/.config/logind.conf.d

    This will only work on Generic Legacy where kodi doesn't grab the input device. On Gerneric with Kodi GBM logind won't see the power button as kodi has grabbed the input devices.

    Currently the best way to do it (which will work on all variants) is to create a simple /storage/.kodi/userdata/keymaps/keyboard.xml file with the following content:

    Code
    <keymap>
      <global>
        <keyboard>
          <power>ShutDown()</power>
        </keyboard>
      </global>
    </keymap>

    BTW: I've changed the PR I've linked and it won't fix that issue because it turned out to be very tricky - the change (and the keymap above) also affects USB / BT / Wireless / ... remotes that kodi sees as "keyboards" and thus kodi would shut down immediately if you (accidentally) hit the power button on such remotes (which can happen quite easily and may be fatal as often it's not possible to power up the PC / RPi / other devices via the remote again).

    so long,

    Hias

  • Next try, I found a rather easy way to fix this at least on GBM (i.e. all devices except Generic Legacy/X11)

    kodi: change remote power button behaviour to show the shutdown menu by HiassofT · Pull Request #8161 · LibreELEC/LibreELEC.tv
    Kodi's default power button handling is OK for typical HTPCs with window systems but it's the exact opposite of what users (and I) expect from a mediacenter…
    github.com

    Solution: let logind handle the system/case power buttons (performing a shutdown) and let kodi handle all other input devices which might have a power button on them as well (and show the shutdown menu).

    so long,

    Hias

  • Hi

    I install libreelec on a proxmox. It works great, I even have passthrough the IGD.

    But I found oOther virtual machines can be shut down from the console, libreelec cannot.

    Are there any necessary components I should install?

    Thx

    can you please tell me how you get it working and install on proxmox?

  • We don't support install in/on/via proxmox so there's probably something missing /shrug

    If only someone would just allow entware in a convenient way we would simply install qemu-ga package. Along with drivers

    But LibreELEC devs say: "We are open source ... But we will tell you what and how to do because we think some of you will use entware to install torrent client"

    No wonder CoreELEC forked.

  • Yes, the #1 use of entware on *ELEC distros is installing piracy tools. We work closely with Team Kodi and take a similarly firm stance on that kind of thing. It's our distro and our choice. If you disagree .. feel free to fork our codebase and run a distro. CE isn't the first fork of our codebase and won't be the last. Forks are an essential part of our ecosystem. We like forks :)

    If you want entware on LE you need to self-build an image with /opt added. Have a look at packages/sysutils/systemd/tmpfiles.d/z_01_openelec.conf for some prior art on adding directories.

    Build instructions https://wiki.libreelec.tv/development/build-basics

  • Yes, the #1 use of entware on *ELEC distros is installing piracy tools. We work closely with Team Kodi and take a similarly firm stance on that kind of thing. It's our distro and our choice. If you disagree .. feel free to fork our codebase and run a distro. CE isn't the first fork of our codebase and won't be the last. Forks are an essential part of our ecosystem. We like forks :)

    If you want entware on LE you need to self-build an image with /opt added. Have a look at packages/sysutils/systemd/tmpfiles.d/z_01_openelec.conf for some prior art on adding directories.

    Build instructions https://wiki.libreelec.tv/development/build-basics

    Thanks for the reply.

    Since I'm "just a user" It feels a bit overkill to fork just to add the /opt to the / . There is a much easier way to add it once in a while.

    I understand the "our distro and our choice". Just in this case, it just creates a little obstacle, not really preventing piracy tools on LE.

    Anyway, back to the original topic, unfortunately I was wrong to think that it is possible to install qemu-ga. This package is in the openwrt repos and not really compatible with entware it will take some work to install all the dependencies :/

    As a side note, general installation runs mostly fine in proxmox with GPU passthrough.