一,問題
版本信息描述: Ubuntu 16.04 LTS
安裝了Ubuntu后分辨率和顯示器不匹配。xrandr 命令不能給出相關信息。因此嘗試了不同的方法。
二,xrandr --addnewmode
這是別人在stackoverflow上回答的最多的一種方法:
gtf 1920 1080 60
1920x1080的分辨率,60Hz刷新頻率
於是可以得到一個Modeline:
"1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
把這一行復制下來運行:
xrandr --newmode "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
再增加一個:
xrandr --addmode VGA1 "1920x1080_60.00"
此處VGA1可以是HDM等等其他(Have no idea about this)
最后:
xrandr --output VGA1 --mode "1920x1080_60.00"
但自己的是運行xrandr都不能給出回應,都有錯誤。因此這種方法不能奏效。
三,xorg.conf
1 sudo vim /etc/xorg.conf
復制以下內容:
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
HorizSync 28.0 - 70.0
VertRefresh 56.0 - 75.0
EndSection
Section "Device"
Identifier "VMware SVGA"
Driver "vesa"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1920x1080_60.00"
EndSubSection
EndSection
:wq!(保存
重新啟動就成功了。
四,后記
還看到一種方法,是更改grub啟動文件。但對我的沒有作用。
本文已在版權印備案,如需轉載請訪問版權印69407556
