Kobo: Yet another attempt at working around the hangs on the latest NXP boards (#10771)

* Notification: Drop the fencing from #10083; it never actually helped, and had subtle side-effects we could do without.
* VirtualKeyBoard: Flash on close, otherwise, some of the fast refresh glitches may be burned into the working buffer until a flash. Making sure we flash ourselves prevent it from sticking around on the page ;).
* util: Move `writeToSysfs` to base (i.e., `ffi/util`), as we need it there (and it actually makes more sense there anyway ;p).
* Bump base for https://github.com/koreader/koreader-base/pull/1645, which is where the actual workaround (hopefully) lives.

Re #8414, #9806, #10558
This commit is contained in:
NiLuJe
2023-08-01 23:53:10 +02:00
committed by GitHub
parent 689d9e2976
commit 9c8e55b3e5
9 changed files with 51 additions and 59 deletions

View File

@@ -203,11 +203,8 @@ function Notification:onCloseWidget()
end
function Notification:onShow()
-- NOTE: We use the elusive "[ui]" mode solely for the sake of NTX boards flagged as unreliable,
-- in the hope that this will save them from an EPDC race that might make them horribly crash.
-- c.f., https://github.com/koreader/koreader/issues/9806#issuecomment-1416827447
UIManager:setDirty(self, function()
return "[ui]", self.frame.dimen
return "ui", self.frame.dimen
end)
if self.timeout then
UIManager:scheduleIn(self.timeout, function() UIManager:close(self) end)