Linux command
drm_info 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display info about all DRM devices
drm_info
Query a specific DRM device
drm_info [/dev/dri/card0]
Output device information
drm_info -j
Submit GPU information
drm_info -j | curl -d @- https://drmdb.emersion.fr/submit
说明
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.
参数
- -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.
FAQ
What is the drm_info command used for?
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.
How do I run a basic drm_info example?
Run `drm_info` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -j do in drm_info?
Output info in JSON format. Otherwise the output is pretty-printed.