Skip to content

Instantly share code, notes, and snippets.

@lee2sman
Created July 22, 2017 02:15
Show Gist options
  • Save lee2sman/302d985ad0d2fc5fc683d1d951594047 to your computer and use it in GitHub Desktop.
Save lee2sman/302d985ad0d2fc5fc683d1d951594047 to your computer and use it in GitHub Desktop.
Use to keep ChipOS from going to sleep
# Forces ChipOS to stay on (no sleep)
# Particularly useful when running Piratebox to keep from turning off when screen sleeps
# Don't forget to sudo chmod +x nosleep.sh
# to run at startup, add this to end of .bashrc
# path/to/nosleep.sh &
# might need to force terminal at start instead of gui
export XAUTHORITY=/home/chip/.Xauthority
export DISPLAY=:0
xset s off
xset -dpms
xset s noblank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment