X728 V2.5 - AUTO ON does not work after GPIO26 ... | Geekworm's Forum

X728 V2.5 - AUTO ON does not work after GPIO26 / x728off shutdown


  • Hello Geekworm Support,

    I have an X728 V2.5 with a Raspberry Pi 4. I found a repeatable problem with AUTO ON after a software shutdown.

    My configuration

    • Raspberry Pi 4

    • Raspberry Pi OS Trixie

    • X728 V2.5

    • AON jumper installed

    • CHG_EN jumper installed

    • Two Samsung INR18650-35E batteries

    The UPS works very well during a power failure. I tested it on battery for almost 6 hours. The safe low-battery shutdown also works correctly.

    Test 1 - Blue button

    I use the blue button on the X728 for a safe shutdown.

    • Blue button

    • Raspberry Pi shuts down

    • X728 shuts down

    • Remove external 5V

    • Apply external 5V again

    • Raspberry Pi starts automatically

    Result: AUTO ON works correctly.

    Test 2 - GPIO26 / x728off

    I use the documented command:

    x728off

    On my system this command is an alias for:

    sudo /usr/local/bin/xSoft.sh 0 26

    • x728off

    • Raspberry Pi shuts down

    • X728 shuts down

    • Remove external 5V

    • Apply external 5V again

    • Battery LEDs turn on / charging starts

    • Raspberry Pi does NOT start

    I must press the blue button to start the Raspberry Pi. I repeated this test several times with the same result.

    Test 3 - GPIO26 INPUT workaround

    I also tested the solution described in the Geekworm community forum:

    • GPIO26 HIGH

    • wait

    • GPIO26 LOW

    • wait

    • GPIO26 INPUT

    • Linux shutdown

    I tested this with the RPi.GPIO-compatible library on Raspberry Pi OS Trixie. The Raspberry Pi shuts down correctly, but AUTO ON still does not work. I repeated this test.

    Important difference

    Blue button safe shutdown -> AUTO ON works

    GPIO26 / x728off shutdown -> AUTO ON does not work

    So the AON jumper and the AUTO ON hardware function are working. It appears that the X728 is left in a different power state after the GPIO26 software shutdown.

    Questions

    1. Is this a known problem with X728 V2.5?

    2. Is there a newer xSoft.sh for X728 V2.5?

    3. Is there a different GPIO26 sequence that keeps AUTO ON working?

    4. Is there a firmware update for the X728 power controller?

    5. What is the correct method for a long power failure: battery becomes low -> Raspberry Pi safely shuts down -> external 5V returns later -> Raspberry Pi must automatically start?

    I can provide my scripts, logs and additional test results if needed.

    Thank you.

    Best regards,
    Arnold



  • This behavior is a known design limitation with how the X728 MCU tracks system state.

    The onboard MCU's AON (Auto Power-On) logic evaluates state transitions. When the blue button is pressed, the MCU registers an explicit user-initiated hardware power off, enabling AON to boot the board as soon as main power applies.

    When you issue x728off (pulling GPIO26 HIGH/LOW), the MCU cuts the main 5V rail to the Pi and enters a latched software-shutdown power-off state. In this state, the MCU expects the system to stay off until triggered manually (via the button/switch interface), causing it to ignore incoming line voltage changes.

    1. Is this a known problem with X728 V2.5?

    Yes. The X728 MCU's state machine treats GPIO-driven shutdowns differently than onboard button events. Once the MCU processes a shutdown signal over GPIO26, it remains in a latched software-off state. Applying power while in this state charges the batteries, but the MCU will not trigger the boot rail automatically.

    2. Is there a newer xSoft.sh for X728 V2.5?

    No. The official Geekworm repository still uses the standard xSoft.sh / x728off scripts. Geekworm handles all power control logic within the onboard MCU microcode, meaning script updates cannot change how the MCU interprets the GPIO26 pulse.

    3. Is there a different GPIO26 sequence that keeps AUTO ON working?

    No. Setting GPIO26 to INPUT or modifying pulse timing only alters the signal sent before OS shutdown. Once GPIO26 triggers the shutdown routine, the X728 hardware enters its latched software-off state regardless of pin state cleanup.

    4. Is there a firmware update for the X728 power controller?

    No. The MCU on the X728 board is pre-programmed and does not support user firmware flashing or field updates.

    5. Correct Method for Long Power Failures (Auto-Recovery)

    For unattended systems, do not execute x728off or sudo /usr/local/bin/xSoft.sh 0 26 on low battery.

    The correct configuration relies on the ASD (Auto Shutdown) hardware/software routine alongside the AON jumper:

    1. Keep the AON jumper installed.

    2. Keep the ASD jumper installed (ensure battery voltage is above 3.0V when bridging).

    3. Use OS-only shutdown (sudo shutdown -h now) when low battery is detected via Python monitoring (e.g., monitoring I2C Fuel Gauge / PLD pin).

      • When Linux halts gracefully (sudo shutdown -h now), it stops the CPU while the X728 power rail remains active, supplying standby power to the Pi.

      • Once the battery drains down to ~3.0V, the hardware ASD feature cuts main battery power to prevent over-discharge.

      • Because power was terminated via low-voltage threshold (rather than a software GPIO26 latch), the X728 enters a clear power-loss state.

      • When external 5V returns, the AON jumper triggers an immediate, automatic start.


  • Hi Bullseye,

    First of all, thank you for the clear and useful information. It explains our test results very well.

    I would like to test the solution you suggested next weekend.

    For your information, my X728 is powered through the DC jack using an industrial Mean Well 5 V 10 Amps power supply.

    I have one more question about the low-battery shutdown:

    With my setup, I plan to perform a safe Linux shutdown when the battery voltage goes below 3.15 V. This means there can be a period between the Raspberry Pi shutting down and the X728 itself reaching its hardware battery cutoff.

    Do you have any information about this?

    At what battery voltage does the X728 actually switch off the battery output / enter the real power-off state?

    I would also like to know, if available, approximately how long this normally takes after the Raspberry Pi has shut down.

    I plan to measure this during my test next weekend, but any information about the X728 hardware cutoff voltage would be very helpful.

    Thank you again for your help.

    Best regards,
    Arnold


Please login to reply to this topic!