I've a HDMI display attached to a RasperryPi 4. After few minutes, first a blank screen is activated, then the display goes into standby.

I want to wakeup the display from standby (by a sensor via bash script) but don't interrupt the blank screen.

I know wakeup is possible with:

DISPLAY=:0.0 xset dpms force on

but is also interrupts the blank screen.

  • why do you want to do that? ... what problem are you trying to solve?
    – jsotola
    Commented Feb 26, 2021 at 19:14

1 Answer 1


Try using the CEC library and issue:

echo "on 0" | cec-client -s

To install:

sudo apt update
sudo apt full-upgrade
sudo apt install cec-utils

(Note I've followed the RPF guide using full-upgrade but see here for a discussion on upgrade vs full-upgrade)

  • Seems my display has no cec support: err 1 "autodetect FAILED".
    – cytrinox
    Commented Feb 26, 2021 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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