Argon One PI4 v2 install on LibreElec REX

I share my experience with Argon One Button and Fan service on LibreElec 9.2.8 :slight_smile:

Argon ONE on LibreELEC 9.2.8

Install on LibreElec > settings > extensions module, with official repo, the libs required by Argon One python script (service) :

  • Script > Systems Tools
  • Script > RaspBerry Pi tools

Add GPIO conf in config.txt :

  • mount -o remount,rw /flash (makes the folder that the config.txt file is saved in editable)
  • nano /flash/config.txt
    Add in this file, save and quit (CTRL+O & CTRL+X) :
    dtoverlay=gpio-ir,gpio_pin=23
  • mount -o remount,r /flash

Finally use the β€œnot in manual” script to install Argon One Button and Fan service :

Best regards

1 Like

Recent troubleshot and fix with service not starting

The python environment context is not set in service :

nano /storage/.config/system.d/argononed.service

change this line :
ExecStart=/usr/bin/python /storage/.config/argononed.py

to :
ExecStart=/bin/sh -c ". /etc/profile; exec /usr/bin/python /storage/.config/argononed.py"

then reload services, start argononed :

systemctl daemon-reload
systemctl start argononed.service

control

systemctl status argononed.service

argononed.service - Argon One Fan and Button Service
     Loaded: loaded (/storage/.config/system.d/argononed.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2023-05-03 23:37:17 CEST; 28min ago
   Main PID: 4725 (python)
     CGroup: /system.slice/argononed.service
             └─4725 /usr/bin/python /storage/.config/argononed.py

May 03 23:37:17 LibreELECP4 systemd[1]: Started Argon One Fan and Button Service.