Module powerdown
Expand description
See: <ql_powerdown.h>
The implementation runs commands to perform the power down operation.
The first command is always
echo "quectel_powerdown" > /sys/power/wake_lock.
Then, depending on the mode, it will run a different command:
GRACEFUL:haltGRACEFUL_REBOOT:reboot
For the immediate modes, it will always run
echo 1 > /sys/devices/7980000.nand/write_forbidden, followed by:
IMMEDIATE:echo o > /proc/sysrq-triggerIMMEDIATE_REBOOT:echo b > /proc/sysrq-trigger
Structs§
Functions§
- power_
down ⚠Non- ag35 - Power down the system.