Module powerdown

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: halt
  • GRACEFUL_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-trigger
  • IMMEDIATE_REBOOT: echo b > /proc/sysrq-trigger

Structs§

Mode

Functions§

power_downNon-ag35
Power down the system.