Bug 455928 - Reset timer after suspend/resume
Summary: Reset timer after suspend/resume
Status: RESOLVED FIXED
Alias: None
Product: rsibreak
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-25 17:19 UTC by Ardith Metz
Modified: 2022-08-05 21:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ardith Metz 2022-06-25 17:19:29 UTC
SUMMARY
***
Currently RSIBreak doesn't reset its timer after suspend/resume periods which makes it out of sync with real time that passed since last break. 
***


STEPS TO REPRODUCE
1. Set break for 60 min
2. Work on machine for 45 min
3. Suspend machine for 2 hours. Go for jogging
4. Resume machine.

OBSERVED RESULT
RSIBreak will ask for break  15 min. If you skip it then it will ask again after 60 min which makes total interval 75 min without a break.

EXPECTED RESULT
RSIBreak should reset its timer and ask for break after 60min.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95
Qt Version: 5.15.5

ADDITIONAL INFORMATION
RSIBreak 0.12.15
Comment 1 Bug Janitor Service 2022-08-04 23:16:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/rsibreak/-/merge_requests/19
Comment 2 Albert Astals Cid 2022-08-05 21:40:59 UTC
Git commit d01cfad3f237d3c1e708af303645f4d392766bd8 by Albert Astals Cid.
Committed on 05/08/2022 at 21:40.
Pushed by aacid into branch 'master'.

reset timers on hibernation detection

M  +4    -0    src/rsitimer.cpp

https://invent.kde.org/utilities/rsibreak/commit/d01cfad3f237d3c1e708af303645f4d392766bd8