Skip to content

Prevents linux from going to sleep if certain activity is detected

License

Notifications You must be signed in to change notification settings

carterscottm/stayawake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

stayawake

Linux power management only considers local keyboard/mouse activity when configured to suspend/hibernate. Cron runs this script every minute (or whatever interval you decide) and uses xdotool to perform small mouse movements if any SSH, Samba, or NFS activty is detected.

Please note that the script must be run as the user account normally logged onto the computer, as xdotool requires access to that users' desktop.

Example:

* * * * * scott /opt/scripts/stayawake/stayawake.sh > /dev/null 2>&1

About

Prevents linux from going to sleep if certain activity is detected

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages