8

I recently installed a program on my Ubuntu 20.04 machine that needs Wayland instead of X11 to work. I also frequently used the command xset dpms force off to turn of my display. However, this command does not work in Wayland and gives the error message : server does not have extension for dpms option. Is there a way to turn off the display in wayland ?

1 Answers1

7

In Wayland (and Xorg), you can activate the screensaver if that is set to blank the screen:

dbus-send --session --dest=org.gnome.ScreenSaver --type=method_call \
          /org/gnome/ScreenSaver org.gnome.ScreenSaver.SetActive boolean:true
vanadium
  • 97,564