电脑外接着一个 23‘ 的显示器,分辨率为 1920*1080
。ubuntu
操做系统:ubuntu 14.04ruby
今天,经过 Setting->Displays 中选择外接屏的分辨率时,发现最大只有 1024×768
,而且外接屏显示 “Unknown Displays”,日了狗了。。。ide
解决办法主要是给这个 “Unknown Displays” 设置一个 1920*1080
的选项,下面借助 xrandr
命令来实现。spa
在终端输入 xrandr
:操作系统
注:.net
代码以下:code
而后屏幕上会返回两行内容,赋值第二行中 ‘Modeline’ 后面的全部内容,并接到下面 xrandr --newmode
后面:orm
其中 ”DP2“ 即上面展现的外接端口,不用的接口这个名字可能不一样,好比有的会是 VGA1,以上面 xrandr
的显示结果为准。server
以后,再进入 Setting->Displays, 发现那个 “Unknown Display” 的分辨率中,有了 “1920x1080” 这个选项,选中它,并 Apply 便可。blog
Section "InputDevice"Identifier "Generic Keyboard"Driver "kbd"Option "XkbRules" "xorg"Option "XkbModel" "pc104"Option "XkbLayout" "us"EndSectionSection "InputDevice"Identifier "Configured Mouse"Driver "mouse"EndSectionSection "Device"Identifier "Configured Video Device"EndSectionSection "Monitor"Identifier "Monitor0"VendorName "Unknown"ModelName "Unknown"HorizSync 30.0 - 83.0VertRefresh 50.0 - 75.0Option "DPMS"Modeline "1600x1200_60.00" 161.00 1600 1712 1880 2160 1200 1203 1207 1245 -hsync +vsyncModeline "1600x1228_60.00" 128.00 1600 1632 1664 1728 1200 1203 1207 1235 -hsync +vsyncModeline "1400x1050_60.00" 121.75 1400 1488 1632 1864 1050 1053 1057 1089 -hsync +vsyncModeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsyncEndSectionSection "Screen"Identifier "Default Screen"Monitor "Monitor0"SubSection "Display"Modes "1600x1200" "1600x1228" "1400x1050" "1024x768" EndSubSectionEndSection