Don't grab input devices on Kobo (#6705)

* Don't grab input devices on Kobo

(... as long as we're started via KFMon/NM.
... and MiniClock is not running ^^).

* Bump base

(https://github.com/koreader/koreader-base/pull/1197)
(https://github.com/koreader/koreader-base/pull/1199)
This commit is contained in:
NiLuJe
2020-09-24 05:05:59 +02:00
committed by GitHub
parent 5345728cc4
commit ba927fe4b5
3 changed files with 7 additions and 2 deletions

2
base

Submodule base updated: 2ef3125029...de01c8a37c

View File

@@ -137,6 +137,11 @@ if [ "${VIA_NICKEL}" = "true" ]; then
done
# Remove Nickel's FIFO to avoid udev & udhcpc scripts hanging on open() on it...
rm -f /tmp/nickel-hardware-status
# We don't need to grab input devices (unless MiniClock is running, in which case that neatly inhibits it while we run).
if [ ! -d "/tmp/MiniClock" ]; then
export KO_DONT_GRAB_INPUT="true"
fi
fi
# fallback for old fmon, KFMon and advboot users (-> if no args were passed to the script, start the FM)

View File

@@ -11,7 +11,7 @@ export LD_LIBRARY_PATH="/usr/local/Kobo"
cd /
unset OLDPWD
unset LC_ALL TESSDATA_PREFIX STARDICT_DATA_DIR EXT_FONT_DIR
unset KOREADER_DIR KO_NO_CBB
unset KOREADER_DIR KO_NO_CBB KO_DONT_GRAB_INPUT
# Ensures fmon will restart. Note that we don't have to worry about reaping this, nickel kills on-animator.sh on start.
(