Ubuntu 14.04 增加屏幕分辨率

来源:互联网 发布:电脑不能识别网络 编辑:程序博客网 时间:2024/05/17 09:17
1.xrandr query current resolution and display info.

example:
xukang@xukang-desktop:~$ xrandr -q
Screen 0: minimum 8 x 8, current 1368 x 768, maximum 32767 x 32767
DP1 connected primary 1368x768+0+0 (normal left inverted right x axis y axis) 410mm x 230mm     // DP1 is the Monitor identifier
   1366x768       59.8 +
   1920x1200_60.00   59.9  
   1920x1080_60.00   60.0  
   1600x1200_60.00   59.9  
   1680x1050_60.00   60.0  
   1400x1050_60.00   60.0  
   1600x900_60.00   59.9  
   1280x1024_60.00   59.9  
   1440x900_60.00   59.9  
   1368x768_60.00   59.9*
   1368x768       59.9  
   1360x768_60.00   59.8  
   1280x800_60.00   59.8  
   1280x768_60.00   59.9  
   1280x720_60.00   59.9  
   1024x768       75.1     60.0  
   1024x768_60.00   59.9  
   800x600        75.0     60.3  
   640x480        75.0     60.0  
   720x400        70.1  
DP2 disconnected (normal left inverted right x axis y axis)
DP3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
HDMI3 disconnected (normal left inverted right x axis y axis)      // HDMI3 is the Monitor identifier
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
xukang@xukang-desktop:~$

2.create xorg.conf under /etc/X11/

basic xorg.conf content from https://wiki.ubuntu.com/X/Config as below:

Section "Device"
        Identifier      "Configured Video Device"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection

3.cvt query resolution detailed parameters

example:
xukang@xukang-desktop:~$ cvt 1920 1600
# 1920x1600 59.93 Hz (CVT) hsync: 99.37 kHz; pclk: 260.75 MHz
Modeline "1920x1600_60.00"  260.75  1920 2064 2272 2624  1600 1603 1613 1658 -hsync +vsync

4. add display modeline into xorg.config

example as below:


Section "Device"
        Identifier      "Configured Video Device"
EndSection

Section "Monitor"
        Identifier      "DP1"
        Modeline "1920x1200_60.00"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
    Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
    Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
    Modeline "1600x1200_60.00"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
    Modeline "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
    Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
    Modeline "1400x1050_60.00"  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync
    Modeline "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
    Modeline "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
    Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
    Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
    Modeline "1280x768_60.00"   79.50  1280 1344 1472 1664  768 771 781 798 -hsync +vsync
    Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync
    Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

EndSection

Section "Monitor"
        Identifier      "HDMI3"
        Modeline "1920x1200_60.00"  193.25  1920 2056 2256 2592  1200 1203 1209 1245 -hsync +vsync
        Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
        Modeline "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync
        Modeline "1600x1200_60.00"  161.00  1600 1712 1880 2160  1200 1203 1207 1245 -hsync +vsync
        Modeline "1600x900_60.00"  118.25  1600 1696 1856 2112  900 903 908 934 -hsync +vsync
        Modeline "1440x900_60.00"  106.50  1440 1528 1672 1904  900 903 909 934 -hsync +vsync
        Modeline "1400x1050_60.00"  121.75  1400 1488 1632 1864  1050 1053 1057 1089 -hsync +vsync
        Modeline "1368x768_60.00"   85.25  1368 1440 1576 1784  768 771 781 798 -hsync +vsync
        Modeline "1360x768_60.00"   84.75  1360 1432 1568 1776  768 771 781 798 -hsync +vsync
        Modeline "1280x1024_60.00"  109.00  1280 1368 1496 1712  1024 1027 1034 1063 -hsync +vsync
        Modeline "1280x800_60.00"   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync
        Modeline "1280x768_60.00"   79.50  1280 1344 1472 1664  768 771 781 798 -hsync +vsync
        Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync
        Modeline "1024x768_60.00"   63.50  1024 1072 1176 1328  768 771 775 798 -hsync +vsync

EndSection


Section "Screen"
        Identifier      "Default Screen"
        Monitor         "DP1"
        Device          "Configured Video Device"
EndSection

0 0
原创粉丝点击