sjl*_*jlh 5 xrandr multiple-monitors radeon display-resolution 17.10
我正在尝试将我的外置 LCD 显示器(BenQ V2200 Eco Specs)与我的笔记本电脑(HP Compaq 6910 p 和 Lubuntu 17.10 以及最新更新)一起使用。
在使用显示器设置时插入显示器时,屏幕保持黑色,无信号。在启动前插入它时,它运行但分辨率错误。
我相信xrandr
设置是为了在笔记本电脑屏幕和外部 LCD 显示器上扩展桌面,但 LCD 上的实际分辨率是 3200x1080 而不是 1920x1080,因此桌面被裁剪在右侧。问题是,如果我尝试对xrandr
或中的设置进行任何更改arandr
,屏幕会冻结,我需要进行硬重启。如果我在没有插入外部显示器的情况下进行更改,也会发生这种情况。
$ lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV516/M64-S [Mobility Radeon X2300]
$ lspci -nnk | grep -i vga -A3 | grep 'in use'
Kernel driver in use: radeon
Run Code Online (Sandbox Code Playgroud)
这是 xrandr 的输出(如果我将显示器插入正在运行的计算机中;如果我在启动前插入,则当前更改为 3200x1080):
$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
VGA-0 connected primary (normal left inverted right x axis y axis)
1920x1080 60.00 +
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x960 60.00
1280x800 59.81
1152x864 75.00
1280x720 60.00
1024x768 75.03 60.00
1024x576 59.97
832x624 74.55
800x600 75.00 60.32
640x480 75.00 59.94
720x400 70.08
LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 304mm x 190mm
1280x800 60.00*+
1280x720 59.97
1152x768 59.95
1024x768 59.95
800x600 59.96
848x480 59.94
720x480 59.94
640x480 59.94
S-video disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
Run Code Online (Sandbox Code Playgroud)
正如您所说,当您在启动之前插入显示器时,它的分辨率很差,我相信添加特定的分辨率.profile
可以解决此问题。
打开终端并运行以下命令。
xrandr
Run Code Online (Sandbox Code Playgroud)
请注意输出中的显示设备名称。在我的例子中是 eDP-1。
接下来运行以下命令
cvt 1920 1080
Run Code Online (Sandbox Code Playgroud)
从输出中复制整个模型行。
就我而言,如下
"1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync.
Run Code Online (Sandbox Code Playgroud)
并运行以下命令:
sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Run Code Online (Sandbox Code Playgroud)
注意,后面的命令部分--newmode
是从上一步中获得的输出中复制的。
现在为您的显示设备添加新创建的模式。
sudo xrandr --addmode eDP-1 "1920x1080_60.00"
Run Code Online (Sandbox Code Playgroud)
最后在显示设置中应用新的分辨率。选择“1920x1080”分辨率作为您的首选分辨率。
重要提示:为了让 Ubuntu 在下次启动时记住新创建的屏幕分辨率,您必须编辑您的.profile
. 使用任何文本编辑器,例如:
vim ~/.profile
Run Code Online (Sandbox Code Playgroud)
将最后 2 个命令添加到末尾
保存并重新启动。希望系统能够检测到1920x1080
您的两个显示器的分辨率。
非常感谢您的精彩回复。根据您的建议和更多研究,我能够解决该问题:
.profile
我按照您的描述添加了两条附加评论。另外还有第三个,它改变外部显示器的比例(我认为两者都没有效果,实际上--dpi
也--panning
没有效果)。
xrandr --dpi 102.3 --fb 3200x1080 --output VGA-0 --mode 1920x1080 --pos 0x0 --panning 1920x1080 --scale 1.2x1
Run Code Online (Sandbox Code Playgroud)
这篇博文帮助我弄清楚了。
我没有使用 Wayland。
归档时间: |
|
查看次数: |
5641 次 |
最近记录: |