2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
koreader/platform/cervantes/suspend.sh
Martín Fernández 1e69fae7bc [feat] Add support for BQ/Fnac devices (#4294)
Adds support for devices found in https://blog.bq.com/es/bq-ereaders-developers-program/. Tested on BQ Cervantes 4 (last BQ device from 2017).

It adds a new touch input event handler (discussed in #4275) which should work on other single touch devices (ie: Kobo Touch, Mini, Glo, Aura HD) but wasn't tested.

Includes base bump with: [feat] Add BQ/Fnac device support (https://github.com/koreader/koreader-base/pull/745)
2018-10-31 23:48:36 +01:00

16 lines
261 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