Disable the Linux screen blanking

Posted by S.Noman on Friday, March 5, 2010 |

If you want to disable X screen blanking (aka. disable the X screensaver) that comes up unexpectedly while you’re watching a movie in MPlayer, all you have to do is

setterm -powersave off -blank 0

To make the change permanent, add the following to your ~/.xinitrc file:

setterm -blank 0 -powersave off -powerdown 0

xset s off