Products › lamco-dsi-tools › Interfaces › Mutter DisplayConfig

org.gnome.Mutter.DisplayConfig: GNOME display settings on D-Bus

org.gnome.Mutter.DisplayConfig is GNOME's D-Bus interface for reading and changing displays: GetCurrentState, ApplyMonitorsConfig. How it works, how to test it.

D-Bus (GNOME) org.gnome.Mutter.DisplayConfig

org.gnome.Mutter.DisplayConfig is the D-Bus interface of Mutter, GNOME's compositor, through which a program reads and changes the displays: Modes, scale, transform, layout and the primary monitor. None of the GNOME sessions captured offered a Wayland protocol for this, so changing the display scale from the command line on GNOME Wayland means calling this interface on the session bus. lamco-dsi-tools (DSI: Desktop session interfaces) records its answer raw, and changes a monitor through it, verified first, held, and put back.

What it is

Mutter owns the bus name org.gnome.Mutter.DisplayConfig on the session bus. Its definition is the file data/dbus-interfaces/org.gnome.Mutter.DisplayConfig.xml in Mutter's source. The members that matter for reading and changing a configuration:

  • GetCurrentState returns a serial, the monitors, the logical_monitors and a map of properties. A monitor is its connector, vendor, product and serial, a list of modes and properties. A mode carries an id, width, height, refresh rate, preferred scale, the scales it offers, and properties such as is-current and is-preferred. A logical monitor is a position, a scale, a transform, whether it's primary, and the monitors it shows.
  • ApplyMonitorsConfig takes the serial, a method and the whole new arrangement of logical monitors. The method is 0 verify, which checks the configuration and changes nothing, 1 temporary, or 2 persistent, which writes the user's monitor configuration.
  • MonitorsChanged, a signal with no argument, is sent every time the configuration changes.
  • ApplyMonitorsConfigAllowed, a read-only property, says whether calling ApplyMonitorsConfig is allowed.

A scale isn't free-form: Each mode lists the scales it offers, and a configuration names one of them. Some properties may only be written where the state says they're supported, such as layout-mode, and monitors-for-lease lists monitors that must not appear among the logical monitors. There's no permission dialog. The interface sits where wlr-output-management sits on wlroots compositors and kde_output_management_v2 on KWin.

Which desktops offered it

DesktopState
GNOME Shell 48.7 (Debian 13)working
GNOME Shell 51.0 (Fedora 45)working
KDE Plasma, KWin 6.5.6 (NixOS)absent
KDE Plasma, KWin 6.8.2 (KDE neon)absent
Sway 1.9absent
Hyprland 0.56.2absent
COSMIC, cosmic-comp 1.0.0absent
labwc 0.20.3 (Budgie session, CachyOS)absent
Cinnamon Wayland session (Linux Mint)absent

Each cell is one version of that desktop on one virtual machine, captured on 2026-11-27 or 2026-11-28 with dsisee observe and no permission dialog answered. working there means GetCurrentState answered and described the monitors; those captures changed nothing. The repository's reference on display configuration records that the answers on GNOME Shell 48.7 and GNOME 51 had one signature. The README's run record lists dsido output set through this interface on Mutter 48.7: Applied, restored, and restored after an interrupt. It hasn't been run on GNOME 51.

How to check it with lamco-dsi-tools

dsisee output observe                                      # Mutter's answer beside wl_output and xdg-output
dsisee output observe --wake-services --out capture.json   # start the service if it isn't running, and record that
dsitell health capture.json                                # the outputs function, with Mutter's route

The mutter-display-config dissector calls GetCurrentState only when the bus name has an owner, and records the answer raw under the names the interface gives its four values, with the reply's D-Bus signature. A value a later version adds is kept under argument_<n>. A name with no owner is recorded with whether D-Bus can start it, and when D-Bus could start it, the route is not examined rather than absent. This dissector is in every build.

Driving it with dsido

dsido output set --scale 1.5 --test-only                  # ApplyMonitorsConfig with verify; nothing changes
dsido output set --scale 1.5 --hold 5 --out change.json   # verify, apply as temporary, hold, put back
dsido output set --route mutter --mode 2560x1440 --out change.json   # name the route and a mode the monitor offers
dsido output set --scale 2 --persistent --out change.json # apply and restore with the persistent method

Before it sends anything, the driver reads the description the running service gives of itself through introspection and holds the signatures of GetCurrentState and ApplyMonitorsConfig against those of Mutter's published interface file. Where they differ, nothing is applied and the command ends as refused (OUT-008). It refuses also where ApplyMonitorsConfigAllowed is false, and where a monitor is offered for lease. Otherwise it calls verify, applies with temporary unless --persistent asks, holds the change while it records each MonitorsChanged, and applies the prior state again. A scale that's asked for stands for the supported scale within 0.02 of it.

Findings

  • OUT-001: An output interface was read and described no output in use.
  • OUT-003: An output change failed after its test had succeeded.
  • OUT-004: An output was not put back in its prior state.
  • OUT-005: The compositor refused an output change at its test.
  • OUT-007: A display configuration service D-Bus lists could not be started.
  • OUT-008: The display configuration interface is not as this build expects, so nothing was applied.

Related