日期:2014-05-16  浏览次数:20573 次

linux 修改屏幕大小 linux 修改分辨率和颜色
这样改:
Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "未探测过的显示器"
        HorizSync    31.5 - 37.9
        VertRefresh  50.0 - 70.0
        Option            "dpms"
EndSection

改为

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "未探测过的显示器"
        HorizSync    31.5 - 60.0
        VertRefresh  50.0 - 80.0
        Option            "dpms"
EndSection

把Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "800x600" "640x480"
        EndSubSection
EndSection

改为

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     16
        SubSection "Display"
                Depth     16
                Modes    "1024x768"
        EndSubSection
EndSection

然后保存、退出、重启。
按照上面的方式改了/etc/X11/XF86config文件后,果然注销后屏幕变大了。不过倒不用删除section screen下面的Modes后面的 ”800x600”
  “640x480” ,只需要在前面添加”1280x1024”即可。另外在修改的过程中还发现两个问题:
   一个是关于depth,即色深的问题,查了资料说depth指应该是色位是多少,是24位的,还是16位的。我先是按照如上的文章修改成了16位的,后来试了试再改成24位的,发现显示情况更好了。
      另外一个是关于 HorizSync 和VertRefresh即水平分辨率和垂直分辨率的。按照文章中所述调了以后,屏幕宽度似乎不够,我再把水平分辨率的上限值调大了点,调成了64,保存,注销后,屏幕显示正常了。我想估计调节水平分辨率能调整屏幕宽度,而垂直分辨率能调节屏幕长度吧。