From 221b71062a9c0d330b3b8d9ff5f54402d4a4be64 Mon Sep 17 00:00:00 2001 From: raisjn <70462544+raisjnn@users.noreply.github.com> Date: Mon, 21 Sep 2020 12:42:22 -0700 Subject: [PATCH] reMarkable: add environment variable to tell koreader.sh to not set bpp (#6685) * reMarkable: add environment variable to tell koreader.sh to not set bpp --- platform/remarkable/koreader.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/remarkable/koreader.sh b/platform/remarkable/koreader.sh index 8c727fbb5..0e2e95b02 100755 --- a/platform/remarkable/koreader.sh +++ b/platform/remarkable/koreader.sh @@ -96,6 +96,10 @@ esac # The actual swap is done in a function, because we can disable it in the Developer settings, and we want to honor it on restart. ko_do_fbdepth() { + if [ -n "${KO_DONT_SET_DEPTH}" ]; then + return + fi + # Check if the swap has been disabled... if grep -q '\["dev_startup_no_fbdepth"\] = true' 'settings.reader.lua' 2>/dev/null; then # Swap back to the original bitdepth (in case this was a restart)