Bug 455928

Summary: Reset timer after suspend/resume
Product: [Applications] rsibreak Reporter: Ardith Metz <itgvkxsd>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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