Why not to turn the screen off while you’re temporarily away from your computer?

Here is a simple script for Linux (only tested under Ubuntu) and Gnome, just to save a little energy when your workstation is not in use:

#!/bin/bash
gnome-screensaver-command --lock
sleep 5
xset dpms force off

This way your workstation will be locked having your screen standing by.