Skip to content

Feature addition: Keep PC awake #449

@todoterza

Description

@todoterza

The problem

Windows default power settings put the PC to sleep after a period of inactivity. When Pomotroid is used to time work that doesn't involve the PC — reading, writing, studying — the system may sleep mid-session, causing missed alerts and disrupted focus.

The solution

A new Power section in System settings with two toggles:

  • Keep System Awake — prevents the PC from sleeping while a timer is running
  • Keep Screen On — sub-option that also prevents the display from turning off

Both toggles activate only while the timer is running and release immediately on pause, reset, or completion.

Implementation:
Windows only. Uses SetThreadExecutionState (documented Win32 API, stable since Windows XP). No-op on other platforms — no behaviour change for macOS or Linux users.

The result:

Uninterrupted, focused, straightforward work for even more users of Pomotroid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions