Commit Graph

4 Commits

Author SHA1 Message Date
zwim
6fdb83017b [plugin] AutoDim: reschedule on every tap (#9243)
This is a maintenance PR.
With scheduling the next autodim_check on every tap, we can keep the device longer in standby mode. So we have more power savings.

The long story: The current version works like that:
Let's say I set the idle-time to 3 min and I need 2.5 min to read a page.
Start at 0 min (next scheduled check is at/in 3 min)
Read and tap to turn page after 2.5 min (next scheduled check is at 3 min - in 0.5 min)
At 3 min there is a scheduled_check (wakeup) -> reschedule check in 3 min.
Read and tap to turn page after 2.5 min (no wakeup)
Then after 1 min there is a wakeup -> reschedule.
---> So I get an additional wakeup on every second page.

This PR solves the problem: During normal reading I don't get any wakeup during reading. (The only drawback is, that one function is unscheduled/scheduled on every tap, but that is no big deal).
2022-06-22 18:38:33 +02:00
zwim
83453dfd8f AutodDim: don't dim if frontlight is off (#9217) 2022-06-17 20:48:37 +02:00
zwim
def02846ec AutoDim: Don't update footer if not necessary (#9192) 2022-06-12 19:16:46 +02:00
zwim
84c7e33606 AutoDim: Allow to dim the frontlight on idle (#9028) 2022-06-01 16:22:42 +02:00