VIM3 Android Power Suspend by Voltage Level / GPIO?

@nemiro Your real need is to light up the car, wake up the machine, turn off the car, and put the machine into sleep, right?

The car has a 12 volt control lead called acc. You need to design a small board to convert this lead to a GPIO port. Of course, there may be such a small board in the market. You can read the GPIO port status to determine whether you need to wake up or sleep. As for the current state of the machine, it can be judged by reading the brightness of the screen backlight: 0 is the sleep state, and greater than 1 is the wake-up state.

cat /sys/class/backlight/aml-bl/brightness