tomighty-osx icon indicating copy to clipboard operation
tomighty-osx copied to clipboard

Screen lock implicitly pauses timer

Open alynn-coefficient opened this issue 1 year ago • 3 comments

Hello! When my screen is locked because I've left the machine (meeting, tea, whatever) the timer doesn't decrease, only continuing when the screen is once again unlocked. This throws me off my timings a bit, it would be grand if this could be either turned off or configurable.

alynn-coefficient avatar Aug 15 '24 09:08 alynn-coefficient

What is probably happening is your MacOS automatically sleeps after some time which is causing the timer to suspend. If you simply lock the screen the timer keeps running. I'm not an expert in MacOS programming but it seems to me there might not be a way to keep the timer running while the system sleeps.

There's an option called "Prevent automatic sleeping on power adapter when the display is off" under the Battery system settings, in case you want to try that.

Screenshot 2024-08-15 at 8 36 06 AM

ccidral avatar Aug 15 '24 11:08 ccidral

For instance if I start a 20 minute long break at 12:00 and my laptop were asleep from 12:02 to 12:18, I think it's still {reasonable, possible} for the timer to go off at 12:20 rather than 12:36, no?

alynn-coefficient avatar Aug 28 '24 10:08 alynn-coefficient

Got it, I agree, in that case the app should be able to correct the remaining time.

ccidral avatar Aug 28 '24 11:08 ccidral