我有戴尔XPS 157590与4K触摸显示(决议3840x2160)。然后,我有一个三星27“显示器,分辨率2560x1440,是放在我的笔记本电脑的屏幕上。
我想以某种方式实现笔记本电脑4K到200%的比例(因为15英寸的4K是100%,使得一切都是超小的),而三星的外部显示器则是100%。然而,看起来在Ubuntu18.04上不可能有不同的规模。
我发现这里有可能让它像那样工作,使用xrandr (在我的例子中)将三星的分辨率提高一倍,然后把所有的分辨率都调到200%。然而,我对此并不十分熟悉,我也不知道如何在我的情况下执行和不破坏它。在我的例子中,标准的xrandr命令输出就是这样的:
Screen 0: minimum 320 x 200, current 3840 x 3600, maximum 16384 x 16384
eDP-1 connected primary 3840x2160+0+1440 (normal left inverted right x axis y axis) 344mm x 194mm
3840x2160 60.00*+ 59.98 59.97
3200x1800 59.96 59.94
2880x1620 59.96 59.97
2560x1600 59.99 59.97
2560x1440 59.99 59.99 59.96 59.95
2048x1536 60.00
1920x1440 60.00
1856x1392 60.01
1792x1344 60.01
2048x1152 59.99 59.98 59.90 59.91
1920x1200 59.88 59.95
1920x1080 60.01 59.97 59.96 59.93
1600x1200 60.00
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1600x900 59.99 59.94 59.95 59.82
1280x1024 60.02
1440x900 59.89
1400x900 59.96 59.88
1280x960 60.00
1440x810 60.00 59.97
1368x768 59.88 59.85
1360x768 59.80 59.96
1280x800 59.99 59.97 59.81 59.91
1152x864 60.00
1280x720 60.00 59.99 59.86 59.74
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
1024x576 59.95 59.96 59.90 59.82
960x600 59.93 60.00
960x540 59.96 59.99 59.63 59.82
800x600 60.00 60.32 56.25
840x525 60.01 59.88
864x486 59.92 59.57
800x512 60.17
700x525 59.98
800x450 59.95 59.82
640x512 60.02
720x450 59.89
700x450 59.96 59.88
640x480 60.00 59.94
720x405 59.51 58.99
684x384 59.88 59.85
680x384 59.80 59.96
640x400 59.88 59.98
576x432 60.06
640x360 59.86 59.83 59.84 59.32
512x384 60.00
512x288 60.00 59.92
480x270 59.63 59.82
400x300 60.32 56.34
432x243 59.92 59.57
320x240 60.05
360x202 59.51 59.13
320x180 59.84 59.32
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 2560x1440+720+0 (normal left inverted right x axis y axis) 597mm x 336mm
2560x1440 59.95*+
1920x1080 60.00 50.00 59.94
1680x1050 59.88
1600x900 60.00
1280x1024 75.02 60.02
1440x900 59.90
1280x800 59.91
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08发布于 2020-04-06 19:56:56
我做了一些研究,并找到了一种方法(基于这个解决方案)来做到这一点。
首先,我在显示设置中设置200%的比例。
命令检查当前设置:
xrandr --current | grep -w connected就我而言,返回:
eDP-1 connected primary 3840x2160+0+1440 (normal left inverted right x axis y axis) 344mm x 194mm
DP-3 connected 2560x1440+731+0 (normal left inverted right x axis y axis) 597mm x 336mm以下是我想要更改它的两个命令:
xrandr --output DP-3 --scale 2x2 --mode 2560x1440 --fb 5120x5040 --pos 0x0
xrandr --output eDP-1 --scale 1x1 --pos 640x2880关于我使用的数字的注释(在外部监视器下面的中间有笔记本电脑的屏幕:
2560*2 = 5120
1440*2 = 2880
Max(3840,5120)=5120
2160+2880=5040
(5120-3840)/2=640在那之后我有:
eDP-1 connected primary 3840x2160+640+2880 (normal left inverted right x axis y axis) 344mm x 194mm
DP-3 connected 5120x2880+0+0 (normal left inverted right x axis y axis) 597mm x 336mm要返回:
xrandr --output DP-3 --scale 1x1 --mode 2560x1440 --fb 3840x3600 --pos 731x0
xrandr --output eDP-1 --scale 1x1 --pos 0x1440这仍然是相当棘手的方式来做它,所以我将高兴的任何其他解决方案。
此更改实际上导致鼠标光标闪烁。我找到了基于这个职位的解决方案,并运行了一个额外的命令来修复它(尽管它是一种黑客解决方案):
xrandr --output eDP-1 --scale 0.9999x0.9999所以,在我的例子中,全部命令是:
xrandr --output DP-3 --scale 2x2 --mode 2560x1440 --fb 5120x5040 --pos 0x0; xrandr --output eDP-1 --scale 1x1 --pos 640x2880; xrandr --output eDP-1 --scale 0.9999x0.9999注意:我只在使用英特尔图形时才经历过这种闪烁。我没有看到任何闪烁与nvidia (使用prime-select和重新启动切换)。
更新2:使用scale 0.9999x0.9999不是一个好主意。它减缓了监视器的反应,当你看视频的时候你会注意到一些滞后。
https://askubuntu.com/questions/1224593
复制相似问题