Linux 分辨率

来源:互联网 发布:历年固定资产投资数据 编辑:程序博客网 时间:2024/04/28 12:04

1.  查询分辨率参数

通过命令cvt可以来做这个事情,比如:我需要添加1920x1080, 

cvt 1112 1000  ===>> Modeline "1112x1000_60.00"   92.00  1112 1184 1296 1480  1000 1003 1013 1038 -hsync +vsync 


2. 在xorg.conf添加分辨率

1> 将上述输出的结果拷贝到xorg.conf的相应位置:

 34 Section "Monitor" 
 35     Identifier   "Monitor0" 
 36     VendorName   "Monitor Vendor" 
 37     ModelName    "Monitor Model" 
 38  
 39     Modeline "1112x1000_60.00"   92.00  1112 1184 1296 1480  1000 1003 1013 1038 -hsync +vsync 
 40     option  "dpms" 
 41  
 42     EndSection


2>  在display下添加 Modes "1112x1000_60.00"

139 Section "Screen"
140     Identifier "Screen0"
141     Device     "Card0"
142     Monitor    "Monitor0"
168     SubSection "Display"
169         Viewport   0 0                                                                                                                                                                                                                   
170         Depth     24
171         Modes "1112x1000_60.00"   
172     EndSubSection
173 EndSection


这样子重启就可以了。


3. 通过命令xrandr可以来查看当前X能设置的分辨率。