Skip to content

Suspend the device when inactive for >20 min - #22

Open
david-caro wants to merge 2 commits into
dixonary:masterfrom
david-caro:suspend_when_inactive
Open

Suspend the device when inactive for >20 min#22
david-caro wants to merge 2 commits into
dixonary:masterfrom
david-caro:suspend_when_inactive

Conversation

@david-caro

Copy link
Copy Markdown

Very basic suspend checker that runs every 20 min, it does not take into
account the button presses though, only the click events.

It shows a small banner whenever it suspends to let the user know.

Comment thread main.cpp Outdated
QOverload<>::of(suspendIfInactive)
);
// check if we should suspend every 20 min
suspend_timer->start(120000);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Msissng an extra 0 :)

@david-caro
david-caro force-pushed the suspend_when_inactive branch from 4a101dc to 737e55b Compare July 20, 2020 06:53
This adds a simple text battery indicator that is refreshed every 10
minutes to keep track of the battery level of the device.

Signed-off-by: David Caro <david@dcaro.es>
Signed-off-by: David Caro <david@dcaro.es>
@david-caro
david-caro force-pushed the suspend_when_inactive branch from 737e55b to d548af4 Compare July 21, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant