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

  • 1
    Possible duplicate of Power TV on/off – Dmitry Grigoryev Jul 3 at 12:14
  • I'll give it a try tonight and let you know if it is a duplicate, @DmitryGrigoryev. Thanks. – vy32 Jul 3 at 12:44
  • Also check out this one – Dmitry Grigoryev Jul 3 at 12:59
  • Interestingly, it was the question that had the answer, not the answer. It's also not clear, so I will just answer it here. – vy32 Jul 4 at 2:05
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.