How can I blank my screen now with xset and wake it again?

November 12, 2026 3 answers
Asked by 0x2f.detour

Is there an xset command to blank the screen immediately, then wake it by moving the touchpad or pressing a key?

Answers

3D-printed-apology

For an X11 session, try xset dpms force off. That asks the display to switch off immediately. Moving the touchpad or pressing a key should wake it again.

If it doesn't work, check which kind of session you're running. xset controls the X server, so it isn't a general solution for a Wayland desktop.

Reply to this answer
RavioliResearch

There's also xset s activate if you just want to activate the X screen saver now. That's separate from DPMS: the screen saver can blank the display, but it doesn't turn the monitor off in the same way.

Reply to this answer
notes_from_row_B

On Wayland, the command you need depends on the desktop environment or compositor. There isn't a single xset equivalent that works across all of them, so check the options for your particular desktop.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions