温馨提示×

Linux xrandr命令有哪些常见用法

小樊
113
2024-07-23 15:13:05
栏目: 智能运维

  1. 显示所有连接的显示器和支持的分辨率:xrandr

  2. 设置特定显示器的分辨率:xrandr --output [显示器名称] --mode [分辨率]

  3. 设置显示器的刷新率:xrandr --output [显示器名称] --rate [刷新率]

  4. 设置显示器的旋转方向:xrandr --output [显示器名称] --rotate [方向] (方向可以是 normal, inverted, left, right)

  5. 设置显示器的位置和大小:xrandr --output [显示器名称] --pos [x坐标]x[y坐标] --fb [宽度]x[高度]

  6. 同时使用多个显示器:xrandr --output [显示器1名称] --auto --output [显示器2名称] --auto --right-of [显示器1名称]

  7. 切换显示器的输入源:xrandr --output [显示器名称] --input [输入源]

  8. 添加新的分辨率模式:xrandr --newmode [分辨率模式]

  9. 将新的分辨率模式添加到显示器:xrandr --addmode [显示器名称] [分辨率模式]

  10. 移除显示器的某个分辨率模式:xrandr --delmode [显示器名称] [分辨率模式]

0