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 | |
---|---|---|
.. | ||
autofrontlight_spec.lua | 4 years ago | |
autosuspend_spec.lua | 4 years ago | |
background_runner_spec.lua | 4 years ago | |
background_task_plugin_spec.lua | 4 years ago | |
batterystat_spec.lua | 5 years ago | |
benchmark.lua | 7 years ago | |
cache_spec.lua | 3 years ago | |
commonrequire.lua | 3 years ago | |
dbg_spec.lua | 7 years ago | |
defaults_spec.lua | 3 years ago | |
depgraph_spec.lua | 4 years ago | |
device_spec.lua | 3 years ago | |
docsettings_spec.lua | 5 years ago | |
document_registry_spec.lua | 4 years ago | |
document_spec.lua | 3 years ago | |
eink_optimization_spec.lua | 6 years ago | |
exporter_plugin_main_spec.lua | 3 years ago | |
filemanager_spec.lua | 3 years ago | |
filemanagerconverter_spec.lua | 4 years ago | |
focusmanager_spec.lua | 3 years ago | |
font_spec.lua | 9 years ago | |
frontlight_spec.lua | 6 years ago | |
gesturedetector_spec.lua | 4 years ago | |
gesturerange_spec.lua | 8 years ago | |
gettext_spec.lua | 5 years ago | |
hook_container_spec.lua | 7 years ago | |
httpclient_spec.lua | 7 years ago | |
imagewidget_spec.lua | 4 years ago | |
input_spec.lua | 3 years ago | |
inputtext_spec.lua | 7 years ago | |
koptinterface_spec.lua | 3 years ago | |
kosync_spec.lua | 5 years ago | |
luadata_spec.lua | 4 years ago | |
luasettings_spec.lua | 4 years ago | |
menu_table_screen_color_spec.lua | 5 years ago | |
menusorter_spec.lua | 4 years ago | |
mock_time.lua | 3 years ago | |
mock_time_spec.lua | 7 years ago | |
network_manager_spec.lua | 6 years ago | |
networksetting_spec.lua | 4 years ago | |
nickel_conf_spec.lua | 5 years ago | |
opds_spec.lua | 3 years ago | |
optmath_spec.lua | 3 years ago | |
persist_spec.lua | 3 years ago | |
quickstart_spec.lua | 8 years ago | |
random_spec.lua | 8 years ago | |
readerbookmark_spec.lua | 3 years ago | |
readerdictionary_spec.lua | 3 years ago | |
readerfooter_spec.lua | 3 years ago | |
readerhighlight_spec.lua | 3 years ago | |
readerlink_spec.lua | 3 years ago | |
readerpaging_spec.lua | 3 years ago | |
readerrolling_spec.lua | 3 years ago | |
readersearch_spec.lua | 4 years ago | |
readertoc_spec.lua | 4 years ago | |
readerui_spec.lua | 3 years ago | |
readerview_spec.lua | 3 years ago | |
readhistory_spec.lua | 4 years ago | |
screenshoter_spec.lua | 3 years ago | |
size_spec.lua | 7 years ago | |
spore_spec.lua | 8 years ago | |
switch_plugin_spec.lua | 7 years ago | |
textboxwidget_spec.lua | 5 years ago | |
timeval_spec.lua | 4 years ago | |
toggleswitch_spec.lua | 5 years ago | |
touch_probe_spec.lua | 7 years ago | |
translator_spec.lua | 6 years ago | |
uimanager_bench.lua | 7 years ago | |
uimanager_spec.lua | 3 years ago | |
util_spec.lua | 3 years ago | |
version_spec.lua | 3 years ago | |
wakeupmgr_spec.lua | 2 years ago | |
widget_inputcontainer_spec.lua | 4 years ago | |
widget_menu_spec.lua | 4 years ago | |
widget_progresswidget_spec.lua | 7 years ago | |
wikipedia_spec.lua | 7 years ago |