xdpyinfo

Display X server information

TLDR

Display all X server information
$ xdpyinfo
Query a specific display
$ xdpyinfo -display [localhost:0.0]
List extensions with opcode and event numbers
$ xdpyinfo -queryExtensions
Show detailed info for a specific extension
$ xdpyinfo -ext [RENDER]
Show detailed info for all extensions
$ xdpyinfo -ext all
Display version and exit
$ xdpyinfo -version

SYNOPSIS

xdpyinfo [options]

DESCRIPTION

xdpyinfo displays information about an X server including its capabilities, protocol version, vendor, available screens and visuals, and loaded extensions.Output includes screen dimensions, color depth, supported visual types, and default settings. Extension information shows which X11 extensions are available, useful for debugging graphics and input issues.The tool helps verify X server configuration, check for required extensions, and troubleshoot display problems. It's commonly used to confirm X11 is working correctly.

PARAMETERS

-display name

X display to query (default: $DISPLAY).
-queryExtensions
Include extension opcode, event base, and error base numbers.
-ext name
Show detailed information for the named extension (use "all" for all extensions).
-version
Display program version and exit.

INSTALL

sudo apt install x11-utils
sudo dnf install xdpyinfo
sudo apk add xdpyinfo
sudo zypper install xdpyinfo
brew install xdpyinfo
nix profile install nixpkgs#xdpyinfo

CAVEATS

Requires running X server and DISPLAY set correctly. Using -queryExtensions may load all extensions, consuming resources. X11 only; doesn't work on pure Wayland.

HISTORY

xdpyinfo is part of the X.Org project's utility collection. X11 has been the standard display protocol for Unix systems since 1987. The tool provides essential diagnostic information for X server administration and troubleshooting.

SEE ALSO

xwininfo(1), xprop(1), xrandr(1), glxinfo(1), xset(1), xlsclients(1)