Argon One v2 power button not working properly

Hi, I am using Raspberry pi4 + Argon One v2 + libreELEC to setup my Video system.Everything works fine but the physical button which provide by Argon One. When system is plug with power line, single short press the button can boot up the Kodi system correctly. But after shutdown the Kodi by Shutdown in Kodi, I can not boot up the system any more. I must unplug the power line off or press power button for 5 seconds to boot up the Kodi again. I observed that after shuting down by Kodi, the Raspberry 's red power light is always on. Any suggestions will help. THX.

What happens when you unplug all of the USB devices?

The power button capabilities are usually configured by an additional shell script you need to install.

I think one exists for libre.

The only USB device is my wireless keyboard (except USB-C powerline). You mean I should unplug the wireless keyboard?

I followed the franzs’s instruction in https://forum.argon40.com/t/libreelec-10-0-2-install-of-argon-one-v2-software/803/8

I think you’re seeing same thing some of us has faced before, unfortunately there’s not much support on it: Issue with Argon One M2 after soft shutdown and power cut - #3 by GazMan

If you happen to find a solution please share it. So far the only option I found is same you mention: unplug and replug.

Thank you for reply. I’m afraid I can not provide further solutions because I’m newbee to these Raspberry things.

I noticed the same on a Argon One v1 case with a Raspberry 4b running Retropie 4.8 today.

But for me this only happened after i had uninstalled the “old” scripts which i had installed around 1-2 years ago (without IR/Argon One V2 support) and installed the most recent version via:

curl https://download.argon40.com/argon1.sh | bash

To clarify: No other changes have been made to the system in between.

What i noticed is that the new version of the scripts installed another library (python3-libgpiod/libgpiod2) so it seems something must have been changed in the way the buttons are triggering the shutdown and the new way seems to not work fully / for every case.

This is what is working for me on my Argon One V1 (there seems to be a user who is archiving some the Argon scripts including older versions / previous variants like the one downloaded below at GitHub - okunze/Argon40-ArgonOne-Script: Script for the Argon ONE (V2) Pi 4 Raspberry Pi Case):

argonone-uninstall
cd /tmp
wget https://raw.githubusercontent.com/okunze/Argon40-ArgonOne-Script/f62ae2f6ce7807062d40642bc5aea618adde5c86/argon1.sh
bash argon1.sh

plus:

$ rpi-eeprom-config
BOOT_UART=0
WAKE_ON_GPIO=1
POWER_OFF_ON_HALT=1

Afterwards the shutdown button as well as a plain shutdown -h now is working again for me and the whole system powers off without being stuck in that “red light shows up but system can’t be started anymore” state.