rcaelers / workrave

Workrave is a program that assists in the recovery and prevention of Repetitive Strain Injury (RSI). The program frequently alerts you to take micro-pauses, rest breaks and restricts you to your daily limit.
https://www.workrave.org
GNU General Public License v3.0
1.6k stars 204 forks source link

Sleep and hibernation time doesn't count as a break (Windows 10) #540

Open MANNAZ-E opened 5 months ago

MANNAZ-E commented 5 months ago

Describe the bug When I leave my computer to take a break, I put the computer in standby. When resuming the computer, Workrave doesn't register that I have had a break. I am therefore prompted too soon about needing to take a break. (So if I place the computer in standby after 45 minutes of work and take a long break with the computer in standby, Workrave will ask me to take another break after 5 min of work).

To Reproduce 1: Set the rest break time for 15 seconds (to make testing faster) 2: Put the computer into sleep or hibernation. Wait more than 15 seconds. You have now had a rest break. 3: Wake up the computer. The rest break was not registered and the work timer continues as before the break. You will therefore be prompted too soon about needing to take another break.

Expected behavior When the computer resumes, Workrave notices that time has passed while the computer was in standby (more than the rest time interval) and registers a break, meaning that the work time timer is reset.

** Windows:

Additional context Outside of this, the program is brilliant and I love that you have built it. I use it for avoiding back pain from sitting down in too long stretches. Really hope this can be fixed, as I keep shutting off the program due to this bug.

patch-work commented 5 months ago

I confirm the problem on Fedora Linux 40, self-compiled workrave with default configuration.

https://github.com/rcaelers/workrave/issues/543