I am using Kubuntu 23.04 with Wayland.
I found this answer, which works in two other computers running (Kubuntu 22.04 and Ubuntu MATE 22.04) X.Org, but this does not seem to work in my Wayland computer.
$ echo "$DISPLAY"
:1
$xset -display :1 dpms force off
server does not have extension for dpms option
xset: unknown option force
How to turn display on and off using the command line, when the display manager is Wayland?