Skip to content

X11 Screen Blanking and DPMS Control

Disable X11 screen blanking and DPMS display sleep to test whether idle display power management triggers wake-related freezes on an Nvidia display path. This controls X11 screen blanking and monitor power signaling for the current graphical session. It does not control system suspend, hibernate, lid-close behavior, power button behavior, kernel GPU driver behavior, or monitor hardware settings directly.

DPMS means Display Power Management Signaling. It is an X11 display power feature where the computer tells the monitor to enter standby, suspend, off, or wake states after idle time.

Terminal window
# Example DPMS state from xset q:
# DPMS (Display Power Management Signaling):
# Standby: 600 Suspend: 600 Off: 600
# DPMS is Enabled
#
# Meaning:
# After 600 seconds, or 10 minutes, X11 can put the display into a low-power/off state.

The xset command is provided by the xorg-xset package. Install it first if the command is missing.

Terminal window
xset q
# Expected error when xset is missing:
# bash: xset: command not found
sudo pacman -S xorg-xset

Use xset q from the active X11 session to inspect screen saver blanking and DPMS state.

Terminal window
xset q
# Check these sections in the output:
# Screen Saver:
# timeout: <seconds>
# cycle: <seconds>
#
# DPMS (Display Power Management Signaling):
# Standby: <seconds> Suspend: <seconds> Off: <seconds>
# DPMS is Enabled

Disable X11 screen saver blanking and DPMS display sleep for the current graphical session.

Terminal window
xset s off
xset -dpms
xset s noblank
# Meaning:
# xset s off disables the X11 screen saver timeout.
# xset -dpms disables DPMS display power management.
# xset s noblank prevents X11 from blanking the screen.

Run xset q again and confirm that DPMS is disabled and screen blanking is not active.

Terminal window
xset q
# Expected DPMS result:
# DPMS (Display Power Management Signaling):
# DPMS is Disabled
#
# Expected screen saver result:
# Screen Saver:
# prefer blanking: no
# timeout: 0

The xset commands only affect the current X11 session. Add them to the i3 config if the same display blanking and DPMS settings should apply automatically after login.

Terminal window
nano ~/.config/i3/config

Add these lines near the other startup commands.

Terminal window
exec --no-startup-id xset s off
exec --no-startup-id xset -dpms
exec --no-startup-id xset s noblank
# Meaning:
# These commands run automatically when i3 starts.
# They disable X11 screen saver timeout.
# They disable DPMS display sleep.
# They prevent X11 screen blanking.

Reload i3 and verify the active state.

Terminal window
i3-msg reload
i3-msg restart
xset q
# Expected DPMS result:
# DPMS (Display Power Management Signaling):
# DPMS is Disabled
#
# Expected screen saver result:
# Screen Saver:
# prefer blanking: no
# timeout: 0

Re-enable DPMS and set normal idle timings if you want X11 to control display sleep again.

Terminal window
xset +dpms
xset dpms 600 600 600
xset s 600 600
# Meaning:
# Re-enable DPMS.
# Set standby, suspend, and off timers to 600 seconds.
# Set X11 screen saver timeout and cycle to 600 seconds.

Use this compact set when xset is already installed and the goal is to disable X11 display blanking and DPMS for the current session. For persistent i3 setup, use the i3 config section above.

Terminal window
xset q
xset s off
xset -dpms
xset s noblank
xset q