Solution 1:
Edit /etc/X11/xorg.conf file using the following command
sudo vi /etc/X11/xorg.conf
Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
EndSection
and add the following lines
Section “ServerFlags”
#other options can go here
Option “BlankTime” “0″
Option “StandbyTime” “0″
Option “SuspendTime” “0″
Option “OffTime” “0″
EndSection
Save and exit the file
Solution 2
Edit /etc/X11/xorg.conf file using the following command
sudo vi /etc/X11/xorg.conf
This effectively disables power management on your monitor Settings
Section “Monitor”
#other options can go here
Option “DPMS” “false”
EndSection
Save and exit the file and restart your machine
Solution 3
gconftool-2 --set /apps/gnome-screensaver/idle_activation_enabled --type=bool false
gconftool-2 --set /apps/gnome-power-manager/ac_sleep_display --type=int 0
Solution 4
gnome-screensaver-command –inhibit
Solution 5
gnome-screensaver-comand –poke
Solution 6
xset s off
xset -dpms
Solution 7
xset dpms 0 0 60
#60 is the seconds
References: