Disable Sleep mode in Linux

Disable sleep mode by using below command .

# sh -c 'setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1'

You can write above command in file and run this on startup

#vim /root/sleepmode.sh
/bin/sh -c 'setterm -blank 0 -powersave off -powerdown 0 < /dev/console > /dev/console 2>&1'


#vim /etc/rc.local  (add in bottom )
/bin/sh  /root/sleepmode.sh