mirror of https://github.com/koreader/koreader
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.
86c35ad066
* Disable all non power management related input during suspend. (This prevents wonky touch events from being tripped when closing a sleep cover on an already-in-suspend device, among other things). * Kobo: Use our WakeupMgr instance, not the class. * WakupMgr: split `removeTask` in two: * `removeTask`, which *only* takes a queue index as input, and only removes a single task. Greatly simplifies the function (i.e., it's just a `table.remove`). * `removeTasks`, which takes an epoch or a cb ref, and removes *every* task that matches. * Both of these will also *always* re-schedule the next task (if any) on exit, since we can have multiple WakeupMgr tasks queued, but we can only have a single RTC wake alarm set ;). * `wakeupAction` now takes a `proximity` argument, which it passes on to its `validateWakeupAlarmByProximity` call, allowing call sites to avoir having to duplicate that call themselves when they want to use a custom proximity window. * `wakeupAction` now re-schedules the next task (if any) on exit. * Simplify `Kobo:checkUnexpectedWakeup`, by removing the duplicate `WakerupMgr:validateWakeupAlarmByProximity` call, now that we can pass a proximity window to `WakeuoMgr:wakeupAction`. * The various network activity timeouts are now halved when autostandby is enabled. * Autostandby: get rid of the dummy deadline_guard task, as it's no longer necessary since #9009. * UIManager: The previous change allows us to simplify `getNextTaskTimes` into a simpler `getNextTaskTime` variant, getting rid of a table & a loop. * ReaderFooter & ReaderHeader: Make sure we only perform a single refresh when exiting standby. * Kobo: Rewrite sysfs writes to use ANSI C via FFI instead of stdio via Lua, as it obscured some common error cases (e.g., EBUSY on /sys/power/state). * Kobo: Simplify `suspend`, now that we have sane error handling in sysfs writes. * Kobo.powerd: Change `isCharging` & `isAuxCharging` behavior to match the behavior of the NTX ioctl (i.e., Charging == Plugged-in). This has the added benefit of making the AutoSuspend checks behave sensibly in the "fully-charged but still plugged in" scenario (because being plugged in is enough to break PM on `!canPowerSaveWhileCharging` devices). * AutoSuspend: Disable our `AllowStandby` handler when auto standby is disabled, so as to not interfere with other modules using `UIManager:allowStandby` (fix #9038). * PowerD: Allow platforms to implement `isCharged`, indicating that the battery is full while still plugged in to a power source (battery icon becomes a power plug icon). * Kobo.powerd: Implement `isCharged`, and kill charging LEDs once battery is full. * Kindle.powerd: Implement `isCharged` on post-Wario devices. (`isCharging` is still true in that state, as it ought to). |
2 years ago | |
---|---|---|
.. | ||
container | 2 years ago | |
bboxwidget.lua | 2 years ago | |
bookmapwidget.lua | 2 years ago | |
bookstatuswidget.lua | 2 years ago | |
button.lua | 2 years ago | |
buttondialog.lua | 2 years ago | |
buttondialogtitle.lua | 2 years ago | |
buttonprogresswidget.lua | 2 years ago | |
buttontable.lua | 2 years ago | |
checkbutton.lua | 2 years ago | |
checkmark.lua | 2 years ago | |
closebutton.lua | 5 years ago | |
configdialog.lua | 2 years ago | |
confirmbox.lua | 2 years ago | |
datetimewidget.lua | 2 years ago | |
dictquicklookup.lua | 2 years ago | |
doublespinwidget.lua | 2 years ago | |
eventlistener.lua | 3 years ago | |
filechooser.lua | 2 years ago | |
fixedtextwidget.lua | 5 years ago | |
focusmanager.lua | 2 years ago | |
footnotewidget.lua | 2 years ago | |
frontlightwidget.lua | 2 years ago | |
horizontalgroup.lua | 2 years ago | |
horizontalscrollbar.lua | 2 years ago | |
horizontalspan.lua | 10 years ago | |
htmlboxwidget.lua | 2 years ago | |
iconbutton.lua | 2 years ago | |
iconwidget.lua | 3 years ago | |
imageviewer.lua | 2 years ago | |
imagewidget.lua | 2 years ago | |
infomessage.lua | 3 years ago | |
inputdialog.lua | 2 years ago | |
inputtext.lua | 2 years ago | |
keyboardlayoutdialog.lua | 2 years ago | |
keyvaluepage.lua | 2 years ago | |
linewidget.lua | 5 years ago | |
linkbox.lua | 3 years ago | |
listview.lua | 3 years ago | |
logindialog.lua | 2 years ago | |
menu.lua | 2 years ago | |
multiconfirmbox.lua | 2 years ago | |
multiinputdialog.lua | 2 years ago | |
naturallightwidget.lua | 2 years ago | |
networksetting.lua | 2 years ago | |
notification.lua | 3 years ago | |
numberpickerwidget.lua | 2 years ago | |
openwithdialog.lua | 2 years ago | |
overlapgroup.lua | 2 years ago | |
pagebrowserwidget.lua | 2 years ago | |
pathchooser.lua | 2 years ago | |
physicalkeyboard.lua | 5 years ago | |
progresswidget.lua | 2 years ago | |
qrmessage.lua | 3 years ago | |
qrwidget.lua | 4 years ago | |
radiobutton.lua | 3 years ago | |
radiobuttontable.lua | 2 years ago | |
radiobuttonwidget.lua | 2 years ago | |
radiomark.lua | 2 years ago | |
rectspan.lua | 10 years ago | |
screensaverwidget.lua | 2 years ago | |
screenshoter.lua | 2 years ago | |
scrollhtmlwidget.lua | 3 years ago | |
scrolltextwidget.lua | 3 years ago | |
skimtowidget.lua | 2 years ago | |
sortwidget.lua | 2 years ago | |
spinwidget.lua | 2 years ago | |
textboxwidget.lua | 2 years ago | |
textviewer.lua | 2 years ago | |
textwidget.lua | 2 years ago | |
titlebar.lua | 2 years ago | |
toggleswitch.lua | 2 years ago | |
touchmenu.lua | 2 years ago | |
trapwidget.lua | 3 years ago | |
verticalgroup.lua | 2 years ago | |
verticalscrollbar.lua | 4 years ago | |
verticalspan.lua | 10 years ago | |
virtualkeyboard.lua | 2 years ago | |
widget.lua | 8 years ago |