2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
koreader/platform/cervantes/suspend.sh

15 lines
260 B
Bash
Executable File

#! /bin/sh
# De-activate the touch screen.
echo 1 >/sys/power/state-extended
# Prevent the following error on the last line:
# *write error: Operation not permitted*.
sleep 2
# Synchronize the file system.
sync
# Suspend to RAM.
echo mem >/sys/power/state