Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-08-25 09:48:18

Timer switch

  • The device must have an RTC chip \t* RK808 \t* HYM8563
  • Equipment is always powered

You can directly use cat and echo to operate the interface under /sys/class/rtc/rtc0.

Set boot time

For example, set it to boot after 120 seconds

# Turn on regularly after 120 seconds 
echo +120 >  /sys/class/rtc/rtc0/wakealarm
# View boot time 
cat /sys/class/rtc/rtc0/wakealarm
# Shut down 
reboot -p

On this page