Skip to content

Lightweight Windows utility to prevent screen locking

Notifications You must be signed in to change notification settings

Great-Projects/NoSleep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoSleep windows utility

13 July 2016

NoSleep utility prevents Windows OS from automatically going into ScreenSaver / Sleep / ScreenLock modes. It's meant for those cases where user cannot change settings (due to corporate-enforced policy, for example). Inspired by Linux Caffeine.

Usage

Download NoSleep.exe from "Compiled binary" folder. Then just run and forget. You can also add shortcut to NoSleep to your StartUp items for NoSleep to start on user login. While active NoSleep will sit in Windows tray and prevent Windows from blocking.

If you wish to stop it - close the program - right-click tray icon and select "Close".

Requirements

.NET 4.0 (client profile)

How it works

NoSleep works through calling to SetThreadExecutionState resetting display/idle Windows timers every 10 seconds. Should use no CPU and around 6-7 MBs of RAM. Icons are taking up 166 KB in compiled binary, the rest is the code (~10 KB).

Icon

Icon was taken from http://www.iconarchive.com/show/food-icons-by-martin-berube/coffee-icon.html. Icon is disributed as freeware.

Artist: Martin Berube (thanks, Martin!)

License

Completely free, use as you will. No liability.

About

Lightweight Windows utility to prevent screen locking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%