Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 Xserver 上连接双显示器。如何通过 X11 编程找到 Linux 中连接的显示器数量?(我没有被问到屏幕)
今天,XRandR 扩展用于此目的。有一个命令行工具xrandr可以访问 XRandR 协议的所有功能。因此,这是学习如何使用 XRandR 的好方法,而且(其源代码)也是在您自己的程序中使用 XRandR 扩展的极好指南。
xrandr