Page 1 of 1

Is actual shutdown even possible?

Posted: 2026-04-05 2:57
by tomcatmwi
Hi! The

Code: Select all

poweroff
command seems to only power cycle a Luckfox Pico 2B Mini, and not shut it down. It comes back again immediately, unless the USB cable is disconnected. There is no

Code: Select all

shutdown
command.
Is it possible to power it off properly?
If there is no such command, can it be done by C++ code? Like:

Code: Select all

#include <unistd.h>
#include <sys/reboot.h>

sync();
reboot(RB_POWER_OFF);

Re: Is actual shutdown even possible?

Posted: 2026-04-07 1:08
by Crocodile
Hello! If you need to shut down the system, you can use the "halt" command.

Re: Is actual shutdown even possible?

Posted: 2026-04-07 16:58
by tomcatmwi
Thank you!