You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/device
NiLuJe 4264d915b1
Kobo: Refactor suspend in order to be able to catch input events sent during the 2s window of ntx madness (#12330)
I don't even remember how badly things broke (at least on old devices) without it, despite it making absolutely no sense at all (state-extended just flips a global that dictates whether some things get flagged as wakeup sources or not).

So, don't rock the boat too much: we don't remove it, but instead of using a sleep, we use a task deadline instead, which ensures we'll keep processing input events in the right order in the meantime. We'll already have neutered input by this point, so we'll only process power events anyway.

That means that the only iffy things are potentially *when* and *where* we have to potentially cancel that task. Resume makes sense, of course, and we log an info message to make the log flow clear; but we also do so in suspend... just in case. With a warning log because that probably indicates something fishy went on.

Also cleanup the comments while I'm there, and actually rewrite the wakeup_count stuff properly so it could actually theoretically be used if ntx kernels were actually reliable. Spoiler alert: they're not, this is still horribly broken on at least Mk < 7. Works just fine on a Forma, though, so, yay.

Fix #12325
1 month ago
..
android
cervantes
dummy
generic PowerD: Keep track of frontlight state change by interactive callers for suspend/resume purposes (#12283) 2 months ago
kindle
kobo Kobo: Refactor suspend in order to be able to catch input events sent during the 2s window of ntx madness (#12330) 1 month ago
pocketbook
remarkable
sdl SDL: Return true in NetworkMgr:isConnected on !hasWifiToggle platforms, (#12217) 2 months ago
sony-prstux
devicelistener.lua ReaderFooter: add page-turn item (#12249) 1 month ago
gesturedetector.lua
input.lua
key.lua
sysfs_light.lua
thirdparty.lua
wakeupmgr.lua