我使用以下xrandr命令将我的 17" 笔记本电脑与 27" 外接显示器镜像,以便我可以使用它进行演示:
xrandr --output LVDS1 --mode 1600x900 --output HDMI1 --mode 1920x1080 --same-as LVDS1
但是,外接显示器 (HDMI1) 会回退到 1600x900 分辨率而不是 1920x1080。
xrandr 输出:
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS1 connected primary (normal left inverted right x axis y axis
1600x900 60.0 +
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
1920x1080 60.0*+
1680x1050 59.9
1280x1024 75.0 60.0
1440x900 75.0 59.9
1280x960 60.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
DP1 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)
小智 12
如果您不介意在笔记本电脑上平移,请尝试以下操作:
xrandr --output LVDS1 --rate 60 --mode 1920x1080 --fb 1920x1080 --panning 1920x1080* --output HDMI1 --mode 1920x1080 --same-as LVDS1
Run Code Online (Sandbox Code Playgroud)
xrandr --fb 1920x1080 --output LVDS1 --mode 1600x900 --scale-from 1920x1080 --output HDMI1 --mode 1920x1080 --scale 1x1 --same-as LVDS1
Run Code Online (Sandbox Code Playgroud)
或者您可以通过另一种方式使用 LVDS1 的分辨率作为基本分辨率,但是您在 HDMI1 上的质量较低。
小智 5
当显示器的分辨率不同时,似乎xrandr不太擅长在配置中处理双显示器。--same-as除了回退到两台显示器的最高通用分辨率(这种分辨率可能不令人满意或什至可能不存在)之外,解决方法是使用该选项--scale。如果您想要[monitor 1]分辨率[resx1]x[resy1]和[monitor 2]分辨率[resx2]x[resy2],您可以使用例如
xrandr --output [monitor 1] --mode [resx1]x[resy1] --output [monitor 2] --same-as [monitor 1] --scale `echo "[resx1]/[resx2]" | bc -l`x`echo "[resy1]/[resy2]" | bc -l`
其中`echo "[res*1]/[res*2]" | bc -l`计算所需的比率。但不保证完美品质;此外,请记住,上述设置的分辨率的质量受到 的分辨率的限制[monitor 1]。
如果您指定关系,则xrandr 源将执行设置分辨率的操作--same-as:
case relation_same_as:
output->x = relation->x;
output->y = relation->y;
Run Code Online (Sandbox Code Playgroud)
你有没有尝试过:
xrandr --output HDMI1 --mode 1920x1080 --output LSVD1 --mode 1600x900 --same-as HDMI1
Run Code Online (Sandbox Code Playgroud)
?
| 归档时间: |
|
| 查看次数: |
60755 次 |
| 最近记录: |