Argon ONE V3 with Batocera
Troubleshooting: The Raspberry Pi 5 shuts down, but the red LED remains on and restarting is only possible after disconnecting the power supply.
Result
The tested solution uses the I²C command 0x86 0x01, which is appropriate for the Argon ONE V3, during shutdown. The LED then turns off completely and the Pi can be started again with a short button press.
1. Affected configuration
| Component | Configuration |
|---|
| Computer | Raspberry Pi 5, 8 GB |
| Case | Argon ONE V3 |
| System | Batocera 43.1, aarch64 |
| Power supply | Official Raspberry Pi 27 W power supply |
| Storage | USB mass storage device |
2. Symptoms
· Batocera shuts down cleanly via the menu and the screen goes black.
· However, the status LED on the Argon case remains solid red.
· A short press of the power button does not start the Pi afterward.
· Restarting is only possible after disconnecting and reconnecting the power supply.
· A very long button press does switch the device off completely, but this is a forced emergency shutdown and should not be used during normal operation.
3. Diagnosis and cause
The Argon board was accessible via I²C. The test showed the device at address 0x1a:
i2cdetect -y 1
# Expected: entry 1a in row 10
However, the installed Batocera file /usr/bin/rpi-argonone still used the following command for a complete power-off:
bus.write_byte(address, 0xFF)
For the Argon ONE V3, the following register-based command worked instead in this configuration:
i2cset -y 1 0x1a 0x86 0x01
Important
Do not execute this command arbitrarily while the system is running. In this solution, it is invoked as a service action exclusively during Batocera’s orderly shutdown.
4. Disable previous attempts
Old services that invoke rpi-argonone halt must not remain active in parallel. On the tested system, the old service was disabled and stored outside the service directory:
batocera-services disable custom_service
mv /userdata/system/services/custom_service \
+ /userdata/system/custom_service.old
A previously created legacy file was also renamed:
mv /userdata/system/custom.sh \
+ /userdata/system/custom.sh.v3test-old
5. Create the corrected Batocera service
- Ensure that the service directory exists:
mkdir -p /userdata/system/services
2. Create the service file:
printf '%s\n' \
+'#!/bin/bash' \
+'case "$1" in' \
+' stop)' \
+' date > /userdata/system/argon-v3-shutdown.log' \
+' /usr/sbin/i2cset -y 1 0x1a 0x86 0x01 >> /userdata/system/argon-v3-shutdown.log 2>&1' \
+' echo "i2cset_status=$?" >> /userdata/system/argon-v3-shutdown.log' \
+' sync' \
+' sleep 2' \
+' ;;' \
+'esac' > /userdata/system/services/ArgonV3Shutdown
3. Check the syntax, enable and start the service:
chmod +x /userdata/system/services/ArgonV3Shutdown
bash -n /userdata/system/services/ArgonV3Shutdown && echo OK
batocera-services enable ArgonV3Shutdown
batocera-services start ArgonV3Shutdown
4. Verify that the service is enabled:
batocera-services list user
# Expected: ArgonV3Shutdown *
Why use a Batocera service?
User services under /userdata/system/services/ are invoked by Batocera at startup and during orderly shutdown with the arguments start and stop, respectively. The service persists on the writable userdata partition.
Translator’s note: Leading + signs in the command blocks are reproduced from the original PDF. They appear to be formatting artifacts and should be checked before executing the commands.
6. Functional test
- In Batocera, select Main Menu → Quit → Shutdown System.
- Do not press the case button during this process.
- Wait up to 20 seconds. The screen turns off, followed by the red LED, which goes out completely.
- Switch the Pi back on with a short press of the Argon button.
- After restarting, check the log:
cat /userdata/system/argon-v3-shutdown.log
Output from the successful test:
Wed Sep 23 02:19:52 CEST 2026
i2cset_status=0
Success criteria
LED completely off · short button press starts the Pi · i2cset_status=0 · no need to disconnect the power supply.
7. Safe operation
· Always shut down normally via the Batocera menu.
· Use a long press of the power button only for emergency shutdowns. It can abruptly cut the power supply and corrupt data during write operations.
· If Batocera exceptionally remains stuck with the red LED on, wait at least a few seconds after the system has fully shut down before disconnecting the power supply.
8. After a Batocera update
Batocera may fix V3 support in the future. After a major update, first check whether /usr/bin/rpi-argonone still contains only 0xFF or already includes the V3 command using 0x86:
grep -nE '0x86|0xFF|write_byte' /usr/bin/rpi-argonone
If Batocera later handles the V3 shutdown reliably on its own, first disable the additional service and test a controlled shutdown via the menu:
batocera-services disable ArgonV3Shutdown
mv /userdata/system/services/ArgonV3Shutdown \
+ /userdata/system/ArgonV3Shutdown.old
9. References
Batocera Wiki – Power devices: https://wiki.batocera.org/add_powerdevices_rpi_only
Batocera Wiki – Services: https://wiki.batocera.org/scripting_services_rules_examples
Batocera source code: https://github.com/batocera-linux/batocera.linux/blob/master/package/batocera/utils/rpigpioswitch/rpi-argonone.py
Argon40 forum: https://forum.argon40.com/t/power-switch-problems/2756