Skip to main content
These options are only useful for debugging or are experimental and have known issues. They are not meant for normal use.These options are NOT covered by the config breaking change policy. They can change or stop working at any point with little notice.

Configuration Overview

Here are all the debug options at a glance:
debug {
    preview-render "screencast"
    // preview-render "screen-capture"
    enable-overlay-planes
    disable-cursor-plane
    disable-direct-scanout
    restrict-primary-scanout-to-matching-format
    force-disable-connectors-on-resume
    render-drm-device "/dev/dri/renderD129"
    ignore-drm-device "/dev/dri/renderD128"
    ignore-drm-device "/dev/dri/renderD130"
    force-pipewire-invalid-modifier
    dbus-interfaces-in-non-session-instances
    wait-for-frame-completion-before-queueing
    emulate-zero-presentation-time
    disable-resize-throttling
    disable-transactions
    keep-laptop-panel-on-when-lid-is-closed
    disable-monitor-names
    strict-new-window-focus-policy
    honor-xdg-activation-with-invalid-serial
    skip-cursor-only-updates-during-vrr
    deactivate-unfocused-windows
}

Rendering Options

preview-render

preview-render
string
Make niri render the monitors the same way as for a screencast or a screen capture. Useful for previewing the block-out-from window rule.Options:
  • "screencast"
  • "screen-capture"
debug {
    preview-render "screencast"
    // preview-render "screen-capture"
}

enable-overlay-planes

enable-overlay-planes
flag
Enable direct scanout into overlay planes. May cause frame drops during some animations on some hardware (which is why it is not the default). Direct scanout into the primary plane is always enabled.
debug {
    enable-overlay-planes
}

disable-cursor-plane

disable-cursor-plane
flag
Disable the use of the cursor plane. The cursor will be rendered together with the rest of the frame. Useful to work around driver bugs on specific hardware.
debug {
    disable-cursor-plane
}

disable-direct-scanout

disable-direct-scanout
flag
Disable direct scanout to both the primary plane and the overlay planes.
debug {
    disable-direct-scanout
}

restrict-primary-scanout-to-matching-format

restrict-primary-scanout-to-matching-format
flag
Restricts direct scanout to the primary plane to when the window buffer exactly matches the composition swapchain format. This flag may prevent unexpected bandwidth changes when going between composition and scanout.
The plan is to make it default in the future, when we implement a way to tell the clients the composition swapchain format. As is, it may prevent some clients (mpv on some machines) from scanning out to the primary plane.
debug {
    restrict-primary-scanout-to-matching-format
}

Display Output Options

force-disable-connectors-on-resume

force-disable-connectors-on-resume
flag
Force-disables all outputs upon resuming niri (TTY switch or waking up from suspend). This causes a modeset/screen blank on all outputs. If niri rendering is corrupted, or monitors don’t light up after a TTY switch, you can try this flag.
debug {
    force-disable-connectors-on-resume
}

render-drm-device

render-drm-device
string
Override the DRM device that niri will use for all rendering. You can set this to make niri use a different primary GPU than the default one.
debug {
    render-drm-device "/dev/dri/renderD129"
}

ignore-drm-device

Available since version 25.11
ignore-drm-device
string
List DRM devices that niri will ignore. Useful for GPU passthrough when you don’t want niri to open a certain device. Can be specified multiple times.
debug {
    ignore-drm-device "/dev/dri/renderD128"
    ignore-drm-device "/dev/dri/renderD130"
}

keep-max-bpc-unchanged

Available since version 25.08
Since version 25.11, this setting is deprecated and does nothing: niri no longer sets max bpc. The old niri behavior with this setting enabled matches the new behavior.
debug {
    keep-max-bpc-unchanged
}

Screen Capture Options

force-pipewire-invalid-modifier

Available since version 25.01
force-pipewire-invalid-modifier
flag
Forces PipeWire screencasting to use the invalid modifier, even when DRM offers more modifiers. Useful for testing the invalid modifier code path that is hit by drivers that don’t support modifiers.
debug {
    force-pipewire-invalid-modifier
}

D-Bus and Session Options

dbus-interfaces-in-non-session-instances

dbus-interfaces-in-non-session-instances
flag
Make niri create its D-Bus interfaces even if it’s not running as a --session. Useful for testing screencasting changes without having to relogin.
The main niri instance will not currently take back the interfaces when you close the test instance, so you will need to relogin in the end to make screencasting work again.
debug {
    dbus-interfaces-in-non-session-instances
}

Performance and Timing Options

wait-for-frame-completion-before-queueing

wait-for-frame-completion-before-queueing
flag
Wait until every frame is done rendering before handing it over to DRM. Useful for diagnosing certain synchronization and performance problems.
debug {
    wait-for-frame-completion-before-queueing
}

emulate-zero-presentation-time

emulate-zero-presentation-time
flag
Emulate zero (unknown) presentation time returned from DRM. This is a thing on NVIDIA proprietary drivers, so this flag can be used to test that niri doesn’t break too hard on those systems.
debug {
    emulate-zero-presentation-time
}

skip-cursor-only-updates-during-vrr

Available since version 25.08
skip-cursor-only-updates-during-vrr
flag
Skips redrawing the screen from cursor input while variable refresh rate is active. Useful for games where the cursor isn’t drawn internally to prevent erratic VRR shifts in response to cursor movement.
The current implementation has some issues. For example, when there’s nothing redrawing the screen (like a game), the rendering will appear to completely freeze (since cursor movements won’t cause redraws).
debug {
    skip-cursor-only-updates-during-vrr
}

Window Management Options

disable-resize-throttling

Available since version 0.1.9
disable-resize-throttling
flag
Disable throttling resize events sent to windows. By default, when resizing quickly, a window will only receive the next size once it has made a commit for the previously requested size. This is required for resize transactions to work properly.
Disabling resize throttling will send resizes to windows as fast as possible, which is potentially very fast (for example, on a 1000 Hz mouse).
debug {
    disable-resize-throttling
}

disable-transactions

Available since version 0.1.9
disable-transactions
flag
Disable transactions (resize and close). By default, windows which must resize together, do resize together. Transactions make niri wait until all windows finish resizing before showing them all on screen in one, synchronized frame.
debug {
    disable-transactions
}

strict-new-window-focus-policy

Available since version 25.01
strict-new-window-focus-policy
flag
Disables heuristic automatic focusing for new windows. Only windows that activate themselves with a valid xdg-activation token will be focused.
debug {
    strict-new-window-focus-policy
}

honor-xdg-activation-with-invalid-serial

Available since version 25.05
honor-xdg-activation-with-invalid-serial
flag
Makes niri honor xdg-activation tokens with invalid serials. By default, niri ignores such tokens to prevent windows from randomly stealing focus.
Widely-used clients such as Discord and Telegram make fresh xdg-activation tokens upon clicking on their tray icon or on their notification. Most of the time, these fresh tokens will have invalid serials, because the app needs to be focused to get a valid serial.This debug flag makes niri honor such tokens, making these widely-used apps get focus when clicking on their tray icon or notification.
debug {
    honor-xdg-activation-with-invalid-serial
}

deactivate-unfocused-windows

Available since version 25.08
deactivate-unfocused-windows
flag
Makes niri drop the Activated state for all unfocused windows. Works around bugs in Chromium- and Electron-based apps that erroneously use the Activated xdg window state instead of keyboard focus.
Some clients (notably, Chromium- and Electron-based, like Teams or Slack) erroneously use the Activated xdg window state instead of keyboard focus for things like deciding whether to send notifications for new messages, or for picking where to show an IME popup. Niri keeps the Activated state on unfocused workspaces and invisible tabbed windows (to reduce unwanted animations), surfacing bugs in these applications.
debug {
    deactivate-unfocused-windows
}

Monitor and Display Options

keep-laptop-panel-on-when-lid-is-closed

Available since version 0.1.10
keep-laptop-panel-on-when-lid-is-closed
flag
By default, niri will disable the internal laptop monitor when the laptop lid is closed. This flag turns off this behavior and will leave the internal laptop monitor on.
debug {
    keep-laptop-panel-on-when-lid-is-closed
}

disable-monitor-names

Available since version 0.1.10
disable-monitor-names
flag
Disables the make/model/serial monitor names, as if niri fails to read them from the EDID. Use this flag to work around a crash present in 0.1.9 and 0.1.10 when connecting two monitors with matching make/model/serial.
debug {
    disable-monitor-names
}

Debug Key Bindings

These are not debug options, but rather key bindings for debugging:
binds {
    Mod+Shift+Ctrl+T { toggle-debug-tint; }
    Mod+Shift+Ctrl+O { debug-toggle-opaque-regions; }
    Mod+Shift+Ctrl+D { debug-toggle-damage; }
}

toggle-debug-tint

toggle-debug-tint
action
Tints all surfaces green, unless they are being directly scanned out. Useful to check if direct scanout is working.
binds {
    Mod+Shift+Ctrl+T { toggle-debug-tint; }
}

debug-toggle-opaque-regions

Available since version 0.1.6
debug-toggle-opaque-regions
action
Tints regions marked as opaque with blue and the rest of the render elements with red. Useful to check how Wayland surfaces and internal render elements mark their parts as opaque, which is a rendering performance optimization.
binds {
    Mod+Shift+Ctrl+O { debug-toggle-opaque-regions; }
}

debug-toggle-damage

Available since version 0.1.6
debug-toggle-damage
action
Tints damaged regions with red.
binds {
    Mod+Shift+Ctrl+D { debug-toggle-damage; }
}

Build docs developers (and LLMs) love