I recently switched from Raspbian buster to DietPi bookworm on an RPi connected to TV
Under buster, the following was my go to command for display blanking
vcgencmd display_power 0
In bookworm, the above command works only if I use the fkms driver (vc4-fkms-v3d)
If I switch to kms driver(vc4-kms-v3d), the command no longer works. (might be the same case with bullseye too from what I have read)
I have come across a few options while searching for alternatives to vcgencmd. I am listing them below in case anyone finds it useful. (specifically systems with no desktop environment)
-
Using
kmsblankcommandkmsblankcommand blanks the display and waits for to be pressed. Once is pressed, the command quits, and the display comes back onkmsblankis part of kms+±utils package and can be installed as:sudo apt install kms++-utils -
If you are using kodi, there are a couple of ways to blank the screen
• Under Settings → System → Power Saving → Put display to sleep when idle, specify the idle minutes, after which the display is blanked
• Alternatively, using the
kodi-sendcommand:kodi-send -a toggledpmskodi-sendis not part of kodi installation, and can be installed separately as:sudo apt install kodi-eventclients-kodi-send -
Using
consoleblanksetting in the kernel command line as described here