LinuxCommandLibrary

drm_info

display DRM device information

TLDR

Display info about all DRM devices with formatted output

$ drm_info
copy
Query a specific DRM device
$ drm_info [/dev/dri/card0]
copy
Output device information in JSON format
$ drm_info -j
copy
Submit GPU information to the DRM database
$ drm_info -j | curl -d @- https://drmdb.emersion.fr/submit
copy

SYNOPSIS

drm_info [-j] [--] [path...]

DESCRIPTION

drm_info is a small utility to dump information about DRM (Direct Rendering Manager) devices. It queries the Linux kernel's DRM subsystem and displays details about available GPUs, their capabilities, supported formats, connectors, encoders, CRTCs, and planes.
The tool is useful for debugging display issues, checking GPU feature support, and contributing hardware information to the community DRM database. It provides insight into what the DRM driver exposes for each graphics device.

PARAMETERS

-j

Output info in JSON format. Otherwise the output is pretty-printed.
path
Zero or more device paths to query, such as /dev/dri/card0. When omitted, the tool automatically scans /dev/dri/card* for all available devices.
--
End of options delimiter.

CAVEATS

Requires appropriate permissions to access DRM device files under /dev/dri/. May need to run as root or be a member of the video group. The tool depends on libdrm and json-c libraries being installed.

HISTORY

drm_info was created by Simon Ser (emersion) and is hosted on freedesktop.org GitLab. It serves as the data collection tool for drmdb, a community database tracking GPU and DRM driver feature support across different hardware.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community