FAQ
Q: How to completely turn on or off the screen on Raspberry Pi Trixie / Bookworm?
A: In a Wayland environment (such as Raspberry Pi OS Trixie or Bookworm), use the wlr-randr command to control the screen display state.
#Turn off the screen
wlr-randr --output DSI-2 --off
#Turn on the screen
wlr-randr --output DSI-2 --on