Closed direc85 closed 3 years ago
This seems to be the API of choice in this case, according to https://forum.sailfishos.org/t/qml-timers-longer-than-10-minutes/
But, it's of course QML, not Qt.
I found this thread over at TJC: https://together.jolla.com/question/175209/sudo-make-me-a-sandwich/
I'm currently experimenting with keepalive-tool
, because that is the laziest possible solution. If it doesn't blow up battery consumption, I just might go with it... (Most likely it's not Jolla Store viable approach, but hey, I'm using a root service, so... :grin:)
Well, the solution was studying https://git.sailfishos.org/mer-core/nemo-keepalive/ and switching from QTimer to BackgroundActivity.
Fixed in 5627c5f, released in 08b577f.
The daemon uses QTimer to trigger re-reading the battery, charger et. al. files. This works like a clock (ha) when the device is in use. When the screen is locked - and the device in a low power state - the intervals can be delayed / skipped altogether. This needs to be fixed.