How to list connected displays and their properties on the command line?

[First asked in the issue tracker How to list connected displays and their properties on the command line? (#8643) · Issues · GNOME / gnome-shell · GitLab .]

Is there an xrandr equivalent provided by Mutter? The Stackoverflow answers say it’s dependent on the compositor. The display properties in the GNOME display settings even show the name of the connected display. Is there something for the command line?

You can use gdctl show if you are running a recent enough version of mutter.

Thank you. That worked:

$ gdctl show
Monitors:
├──Monitor DP-1 (Dell Inc. 23")
│  ├──Vendor: DEL
│  ├──Product: DELL P2319H
│  ├──Serial: 18VRX13
│  ├──Current mode
│  │   └──1920x1080@60.000
│  └──Preferences:
│      └──Luminances:
│          └──default ⇒  100.0 (default) (current)
└──Monitor eDP-1 (Eingebaute Anzeige)
   ├──Vendor: SHP
   ├──Product: 0x144a
   ├──Serial: 0x00000000
   ├──Preferred mode
   │   └──3200x1800@59.982
   └──Preferences:
       └──Luminances:
           └──default ⇒  100.0 (default) (current)

Logical monitors:
└──Logical monitor #1
   ├──Position: (0, 0)
   ├──Scale: 1.0
   ├──Transform: normal
   ├──Primary: yes
   └──Monitors: (1)
       └──DP-1 (Dell Inc. 23")

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.