Bug 515552

Summary: Ktimer should have an option to stop a timer if the user is away
Product: [Applications] ktimer Reporter: kdmw.629
Component: generalAssignee: A. Spehr <zahl>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description kdmw.629 2026-02-05 14:31:48 UTC
SUMMARY
Sometimes with a timer running we have to step away. This leads to the computer entering sleep mode or the session getting locked. When that happens the Timer still keeps on running. In such circumstances there should be a flag available like, "Loop" and "Consecutive task", which will enable the Timer to be stopped.

STEPS TO REPRODUCE
1.  Launch KTimer application from the KDE Launcher or from the terminal
2. Click on the NEW button to add a new task. 
3. In the new Task give the duration as 10 or 15 or 30 minutes. Click on the 'Start A countdown" button to start the countdown.
4. Once the countdown has started, allow the computer to go to sleep or to be suspended or lock the session (Meta + L). Before doing this note the countdown timer value.
5. After 30 secs or 60 secs or 120 secs wake the computer up or log in back. 

OBSERVED RESULT
The countdown timer would have continued to decrease. 

EXPECTED RESULT
The countdown timer should have paused and then when the user logs back in or the computer is woken up then the countdown timer should resume. Not from the beginning but from when the computer was put into sleep or suspended or the session was locked.
There ought to be a flag which should control this. For example "Pause when computer is locked/suspended/or goes to sleep"

SOFTWARE/OS VERSIONS
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 6.5.5
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2

ADDITIONAL INFORMATION
This is not a bug but a feature enhancement request.