TS-7250-V3 Sleep mode

From Technologic Systems Manuals

This board implements a low power sleep mode using the onboard supervisory microcontroller. The microcontroller is able to power off the remainder of the board while only drawing about 55mW. This is effectively a shutdown/startup for Linux to startup/resume from this low power sleep.

The board can wake using a number of milliseconds are specified for a sleep. 1000ms minimum to 4294967295 (49.7 days) maximum. The sleep mode can be entered by calling 'silabs sleep 60000' to sleep for 60 seconds, but this typically should not be called directly. This would be equivalent to disconnecting power while booted which can cause data loss.

The Debian distribution uses systemd to manage shutdown. When systemd shuts down it will call all executables in the "/lib/systemd/system-shutdown/". Create a script with the name of "silabs-sleep" in said directory with these contents:

#!/bin/bash

silabs sleep 60000

And make it executable:

chmod a+x /lib/systemd/system-shutdown/silabs-sleep

Now the board will sleep immediately following a shutdown. For example:

shutdown -h now

The board will power off on shutdown, and 60 seconds later automatically power back up.