Ubuntu16.04 Resoluition Addition And Setting

1、查看當前支持的所有分辨率

xrandr命令查看,或者在 系統設置-->顯示-->分辨率選項裏就可以看到當前可選擇設置的分辨率,如1920x1080在新加之前當前系統並未支持,如下爲新增了920x1080後的查看情況:

krj-16-4@ubuntu:~$ xrandr
Screen 0: minimum 1 x 1, current 1920 x 1080, maximum 8192 x 8192
Virtual1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   800x600       60.00 +  60.32  
   2560x1600     59.99  
   1920x1440     60.00  
   1856x1392     60.00  
   1792x1344     60.00  
   1920x1200     59.88  
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      60.02  
   1280x800      59.81  
   1152x864      75.00  
   1280x768      59.87  
   1024x768      60.00  
   640x480       59.94  
   1920x1080     59.96*
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
Virtual5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
Virtual7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)

2、查看當前所有的montior:

krj-16-4@ubuntu:~$ xrandr --listmonitors
Monitors: 1
 0: +*Virtual1 1920/508x1080/286+0+0  Virtual1

3、獲取要添加的分辨率信息,通過cvt命令:

krj-16-4@ubuntu:~$ cvt 1920 1080

# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz

Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

4、向 /ect/profile配置文件中增加分辨率配置信息:

向 /ect/profile配置文件末尾,新增如下兩行信息,使用source /etc/profile使新增配置生效,或者重啓生效。

krj-16-4@ubuntu:~$ tail /etc/profile -n 2

xrandr --newmode "1920x1080" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

xrandr --addmode Virtual1 "1920x1080"

5、配置新增的分辨率選項:

增加完配置後,在系統設置-->顯示-->分辨率中就可以選擇1920x1080的分辨率了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章