Version: 0.7.1 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3)
Compiler: Target: i486-linux-gnu
OS: Linux (i686) release 2.6.17-10-generic
If the computer has been hibernated (to disk) or suspended (to ram), it should reset the timer(s).
E.g. "Tiny Breaks" is every 15 minutes. If the computer gets suspended for 1 hour, the first tiny break should happen 15 minutes after resuming.
The same applies for "Big Breaks". If the computer has been hibernated for 8 hours, it should reset both the tiny and big break timers - if they are longer than that.
How should I figure out that you suspended/hibernated your computer?
If the last absolute time is "far smaller" than the current one.
E.g., normally the time bumps by 1sec everytime RSIBreak checks it, but then it would be e.g. 7260 (two hours and 1 minute).
SVN commit 875635 by toma:
Add detection of sudden jumps in time and reset the timers in that case. Can be replaced if HAL decides to emit a signal..
I would appreciate feedback if this actually works for you.
M +16 -0 rsitimer.cpp
M +1 -0 rsitimer.h
WebSVN link: http://websvn.kde.org/?view=rev&revision=875635