2
0
mirror of https://github.com/koreader/koreader synced 2024-11-06 09:20:32 +00:00
koreader/platform/sony-prstux/suspend.sh

16 lines
305 B
Bash
Raw Normal View History

#!/bin/bash
set -x
# disable WiFi
./set-wifi.sh off
2019-02-08 22:13:39 +00:00
# enter sleep, disabling all devices except CPU
echo mem >/sys/power/state
# set minimum CPU frequency during sleep
echo powersave >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
# wait for sleep to complete
cat /sys/power/wait_for_fb_sleep