From 23efabb913b5bed91c978fafd0bdbc30d7920ca0 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Sat, 19 Sep 2020 19:05:35 +0200 Subject: [PATCH] [PB] Fix WAIT_FOR_UPDATE_COMPLETE ioctl (#6669) * Fix WAIT_FOR_COMPLETE ioctl (fix #6000) * Prevent a promotion to a flashing on fg/bg toggle * Bump base for the matching PB updates (https://github.com/koreader/koreader-base/pull/1188) --- base | 2 +- frontend/device/pocketbook/device.lua | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/base b/base index 50a965c28..7c380d059 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit 50a965c28fd5ea2100257aa9ce2e62c9c301155c +Subproject commit 7c380d0590ce51795513c3fc12bc6f36a2d9a131 diff --git a/frontend/device/pocketbook/device.lua b/frontend/device/pocketbook/device.lua index 84c76061e..c80baba2d 100644 --- a/frontend/device/pocketbook/device.lua +++ b/frontend/device/pocketbook/device.lua @@ -36,13 +36,15 @@ local PocketBook = Generic:new{ -- all devices that have warmth lights use inkview api hasNaturalLightApi = yes, + + -- Apparently, HW inversion is a pipedream on PB (#6669) + canHWInvert = no, } -- Make sure the C BB cannot be used on devices with a 24bpp fb function PocketBook:blacklistCBB() -- As well as on those than can't do HW inversion, as otherwise NightMode would be ineffective. - --- @fixme Either relax the HWInvert check, or actually enable HWInvert on PB if it's safe and it works, - -- as, currently, no PB device is marked as canHWInvert, so, the C BB is essentially *always* blacklisted. + --- @note: Since HWInvert is a no-go on PB, the C BB is essentially *always* blacklisted. if not self:canUseCBB() or not self:canHWInvert() then logger.info("Blacklisting the C BB on this device") if ffi.os == "Windows" then @@ -104,7 +106,7 @@ function PocketBook:init() end elseif ev.code == C.EVT_FOREGROUND or ev.code == C.EVT_SHOW then tryOpenBook() - ui:setDirty('all', 'partial') + ui:setDirty('all', 'ui') if quasiSuspended then quasiSuspended = false return "Resume"