1

I have a raspberry pi running Debian. I want to set up a cron script so that the screen automatically goes into sleep mode (no power) at a given time and goes out at another time. The built-in screensaver is just blanking the screen, but it's still powered up, and in fact, there's a little lightening bolt in the upper-right hand corner even when the screen is "off".(1)

So what should I do? I've tried installing xscreensaver but it doesn't seem to power down the screen or put it in sleep mode. This should be a simple command line thing, but I can't find it.

(1) - Which I just discovered is a BAD THING --- What does the lightning bolt mean? --- but that's another matter

vy32
  • 131
  • 5

1 Answers1

2

This command puts it into standby now, suspend in 30 seconds, 60 seconds off:

xset dpms 0 30 60

This command will blank the display and put it in standby mode immediately:

xset dpms force standby
vy32
  • 131
  • 5