FEATURE 09 ยท INSOMNIA POWER OVERRIDES

Your machine stays awake, on your terms.

Prevent operating system sleep cycles during high-CPU compiles, long video exports, or background downloads without altering standard OS power plans.

The Uninterrupted Execution Problem

By default, operating systems trigger screen dimming and low-power system sleep after small periods of user inactivity, halting crucial background tasks like video exports or long compilations.

IF process_active("render.exe") TRUE
AND battery_level() > 20% TRUE
THEN assert_power_sleep_block() ACTIVE

Our battery safeguards actively monitor physical levels to prevent total laptop battery drainage when left unattended.

INTERACTIVE TEST CONSOLE

โ˜• How the Keep Awake Engine Works Under the Hood

Noyare bypasses system sleep interrupts natively by querying low-level kernel APIs directly:

  • Native Win32 Power Hook: Involves invoking SetThreadExecutionState with flags ES_SYSTEM_REQUIRED | ES_DISPLAY_REQUIRED | ES_CONTINUOUS, preventing the display and shell from entering sleep.
  • macOS Sleep Assertions: Communicates with IOPMAssertion APIs to request custom system overrides, holding continuous sleep blocks.
  • Local Watchdog Loops: Walks process execution lists asynchronously every 1.5s, asserting blocks safely without hogging resources or creating permanent operating system registry edits.