#!/bin/sh
# configversion: 1

# This hook is called when the system becomes unlocked again

NETWORKRTCSCAN="/sys/module/8723cs/parameters/rtw_scan_interval_thr"
echo 16000 > "$NETWORKRTCSCAN"

# Start a periodic daemon (10s) "try to go to lock" after 120 seconds
# Resume tasks stop daemons
sxmo_daemons.sh start idle_locker sxmo_idle.sh -w \
	timeout 120 'sxmo_daemons.sh start periodic_deeper sxmo_run_periodically.sh 10 sxmo_screenlock_deeper.sh --idle' \
	resume 'sxmo_daemons.sh stop periodic_deeper'

sxmo_daemons.sh signal desktop_widget -12
