From f85c10e3b9f29f8368b8f17ab69ce67f8b165039 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sun, 6 Sep 2015 16:23:46 +0200 Subject: [PATCH] Minor tweak to exit behavior on legacy devices. Properly refresh the screen when exiting with the framework running. The lua code to handle that is called while cvm is SIGSTOPP'ed, so it doesn't help. --- platform/kindle/koreader.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/kindle/koreader.sh b/platform/kindle/koreader.sh index 2c8c52990..3060ad6bf 100755 --- a/platform/kindle/koreader.sh +++ b/platform/kindle/koreader.sh @@ -235,6 +235,9 @@ fi if [ "${STOP_FRAMEWORK}" == "no" -a "${INIT_TYPE}" == "sysv" ] ; then logmsg "Resuming cvm . . ." killall -cont cvm + # We need to handle the screen refresh ourselves, frontend/device/kindle/device.lua's Kindle3.exit is called before we resume cvm ;). + echo 'send 139' > /proc/keypad + echo 'send 139' > /proc/keypad fi # Restart framework (if need be)