Command line application to get X11 idle time and to suspending OS via send-dbus. Ensure user have authority on org.freedesktop.upower.policy otherwise suspend won't work.
Author: Panji Kusuma epanji@gmail.com
Run these commands from source directory.
make build
sudo make install
Use watch for temporary activation.
watch -n 1 idle-suspend
Use crontab for permanent activation.
crontab -e
For user display :0.0, add this line and save it.
* * * * * env - DISPLAY=:0.0 /usr/bin/idle-suspend &> /dev/null
By default, countdown time before suspend is 300 seconds. But, we can optionally add seconds argument as we wish.
...idle-suspend 600 ...
Public Domain