19

I'm using my raspberry pi displayed on a tv through HDMI. It boots up into the terminal and is fine, however, when I leave it for a few minutes, the display goes to sleep.

I'm using an application called conspy to control the console from another computer, but the display does not wake once I start typing (I can still ssh and everything else).

Is there a command that will wake the display or just prevent it from sleeping? I'm not using the GUI, just the console it boots into.

Edit: I sometimes use the standard video output as well, so a fix for either hdmi or video will be appreciated.

Will Cobb
  • 193
  • 1
  • 1
  • 5

2 Answers2

12

You could try

you@yourpi:~$ setterm -powersave off -blank

This should prevent the screen from sleeping for the current session. Put it in your .bashrc to make it permenant.

xereeto
  • 136
  • 1
  • 2
0

As per this thread, you can edit /boot/cmdline.txt, appending consoleblank=0.

This changes the kernel parameter. (This is also mentioned in the comments to the other answer, but these are explicit instructions on how to set it.)

Sparhawk
  • 693
  • 4
  • 18
  • 33