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 ?
Asked
Active
Viewed 4,630 times
8
1 Answers
5
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
- 88,010
xserver-xorg-video-nouveau
driver) and three LG 27UD58-B displays. After running the command, the lock screen is briefly visible, then the monitors go into power saving mode (showing "no signal detected", then they "turn off"). Clicking the keyboard restores everything, as expected. While I've certainly tweaked some power settings to my liking, it's only been "the usual" via the settings GUI. – Joel Purra Jun 07 '23 at 12:09