Skip to content
X728 latest revision with RasPi 4 does not auto... | Geekworm's Forum

X728 latest revision with RasPi 4 does not auto-boot after a shutdown that uses GPIO 26


  • I have been fighting with this for about a month. 

    If i do a graceful shutdown and then external power comes back, it does not boot the board. 

    The jumper for AUTO_ON is set according to the documentation and I have used the refrence code. 

    the goal is for the device to power on and boot when external power is applied via the USB C port.  When external power is lost, it triggers a script that will cleanly shutdown the system. once power comes back it will boot and well you get the idea.  am i doing somthing wrong, or is there a firmware or something i should upgrade to? 

     



  • @top games I appreciate the detailed insights on the X728 issues! Have you considered experimenting with different GPIO configurations? It might help troubleshoot the auto-boot problem effectively. Keep up the great sharing!


  • Your setup logic makes sense, so I don’t think the goal is wrong — it’s more likely a configuration or power-state issue. Some boards distinguish between:

    Power loss (unexpected)

    Software shutdown (intentional)

    In certain cases, AUTO_ON only works after an unexpected power cut, not after a clean shutdown command. That could explain why it doesn’t reboot when power is restored.


  • yea from what i can figure out that if you do a graceful shutdown the "auto_on" doenst work. prob something to do with what state a register is being left in . I have tried different pulses and etc to no luck. Im not sure dont have that level of documentation. I reached out to support and they sent me the standard example code and i sent them my code and i have not had any response yet. 

    @orrybale  do you know of a situation where you initate a clean shutdown and the auto_on works? I have not found any.  I mean when you reconnect power the battery charge level lights come on. so its "seeing the power" but its not acting as I would expect.  My only work around so far is either, hit the big blue button every time to start it up, as shutdown works as expected. or i have to add another microcontroller to the mix to "hit the button for me"  something like a ARM 13 or even a ESP where on boot it pulses the pins tied to the power button then goes back to sleep. i would have to tie it to where ever the power goes when external power is applied.  i would rather not add more complexity and would rather just get the better answer.  if yall have any ideas what im missing please let me know. 

     

     


  • I ran into something similar with the X728 on a Raspberry Pi 4. In my case the issue was related to how the shutdown script interacted with the power management on GPIO 26. If the script fully powers off the board through the X728 controller, the AUTO_ON jumper sometimes won’t trigger a restart when power returns.You might want to double-check that the shutdown script from Geekworm is the latest version and confirm the AUTO_ON jumper is on the correct pins for your revision. Also try testing with a simple sudo shutdown -h now to see if it behaves differently than the GPIO-triggered script. That helped me narrow down whether the problem was hardware or the shutdown routine.


Please login to reply this topic!