This could be achieved with X easily, but although looking extensively on AskUbuntu and other sites, I did not find a solution for Wayland :-(
The closest I came to was the command kscreen-doctor --dpms off
. Unfortunately this turns off all monitors at once. But I'm looking for a more granular command that can turn on/off a single monitor alone.
Some posts suggest that this depends on the compositor. So I checked which compositor Kubuntu 24.10 uses with inxi -Gxx | grep compositor
and the output is:
compositor: kwin_wayland driver: X: loaded: modesetting unloaded: fbdev,vesa
But what command or command-line-tool can I use to achieve the given task?