我有一台双启动的 Windows 10 和 Ubuntu 22.10 电脑。我有一台通过 VGA 电缆连接的外接电视作为显示器,我知道电视和 VGA 都可以完美支持 1920x1080,因为它可以在 Windows 10 上运行。但是,当我尝试在 Ubuntu 的“设置”->“显示”上将显示设置为 1920x1080 时,屏幕只是闪烁并恢复到旧分辨率。
我从 hardinfo 获得以下系统信息:
Operating System: Ubuntu 22.10
CPU: Intel(R) Care(TM) i3-4130t CPU @ 2.90Ghz 1 physical process, 2 cores; 4 threads
RAM: 3920360 KiB
Motherboard: Hewlett-Packard 21D0
Graphics: 1680x1050 Mesa intel(R) HD Graphics 4400 (HSW GT2) The X.Org Foundation
Storage: ATASTS001_7012-PWS14
Audio: HISA-Intel-FICA Intel PCH
我的 xorg.conf 文件的内容是:
Section "Monitor"
Identifier "Monitor0"
Modeline "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
Option "PreferredMode" "1680x1050_60.00"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Modes "1680x1050_60.00"
EndSubSection
EndSection
当我运行 $ xrandr 时,我得到以下输出:
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 16384 x 16384
VGA-1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1920x1080_60.00 59.96 +
1680x1050_60.00 59.95*
1024x768 60.00
800x600 60.32 56.25
848x480 60.00
640x480 59.94
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)
如何在 Ubuntu 22.10 上获得 1920x1080?”
答案1
尝试一下。获取Modeline
使用Reduced blanking
:
cvt -r 1920 1080 60
结果如下:
# 1920x1080 59.93 Hz (CVT 2.07M9-R) hsync: 66.59 kHz; pclk: 138.50 MHz
Modeline "1920x1080R" 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
然后从中取出第二行,删除该单词Modeline
并发出xrandr --newmode
如下命令:
xrandr --newmode "1920x1080R" 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
最后切换到该模式:
xrandr --output VGA1 --mode 1920x1080R
请参阅此处了解更多信息:https://wiki.archlinux.org/title/Xrandr