Skip to content

Program to turn off the display automatically after a period of inactivity and turn it on when an key/mouse event was triggered.

License

Notifications You must be signed in to change notification settings

Skywalker-11/ass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic screen shutdown (ass)

This Program turns off the display automatically after a period of inactivity and turns it on again when an key/mouse event was triggered.

In the bin/ folder exists a precompiled version for the RaspberryPi with Raspbian.

##Requirements:

On a RaspberryPi this should work out of the box with the precompiled version (tested with RaspberryPi 2 and B+).

##Build Just do a make all in the root folder

##Usage ass [options] The following options are available:

Options Desription
-h shows the help
-t <timeout> sets the timeout in seconds (default is 30)
-v enables verbose messages

If you only use the console and no XServer you will receive sudo: xrefresh: command not found when the screen is turned back on. You could ignore that.

##Examples This command will turn the screen off after 300 seconds of inactivity (no key pressed and mouse not moved). If you then press a key or move the mouse it will turn on again. $ ./ass -t 300

To start the program in the background use: ```$ ./ass -t 300 &``

##Notice If you want to trigger something else than a display shutdown after the timeout (eg. logoff the current user) you can do that with the program too. You just have to change the value of SCREEN_OFF in the source file and build it.You could also use other input files by changing MOUSEFILE or KEYBOARDFILE.

About

Program to turn off the display automatically after a period of inactivity and turn it on when an key/mouse event was triggered.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published