Skip to content

daemon: Reevaluate polling timeout after resume

Benjamin Berg requested to merge benzea/fix-polling-after-resume into master

When polling is resumed the timeout needs to be reevaluated. This requires running the polling handler once (in the next mainloop iteration).

Set the ready time to zero to ensure this is happening. Without this, we would be stuck without actually polling until we get a uevent from the kernel on one of the power supplies.

Fixes: #198 (closed)

NOTE: This needs to be backported into a to-be-defined branch (pre battery split refactoring)

Merge request reports