Linux command
xdpyinfo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
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
说明
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.
参数
- -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.
FAQ
What is the xdpyinfo command used for?
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.
How do I run a basic xdpyinfo example?
Run `xdpyinfo` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -display _name_ do in xdpyinfo?
X display to query (default: $DISPLAY).