zoukankan      html  css  js  c++  java
  • centos 分辨率设置

    最近又实验安装了centos 5.8,装完后启动,界面太差了,看着费劲。

    百度一查,原来是分辨率的问题。下面是分辨率设置方法。

    “系统->管理->显示“(英文版本的是system->adminstaration->display),打开后,hardware的monitor type 选择你的显示器对应类型,我的是LCD 1440x900。

    video card 显卡驱动,默认的都是用的linux通用的显卡驱动vesa,我看了一下列举的驱动,刚好有我的显卡驱动(英伟达的)nv,选择它。

    按照上面设置好了之后,画面清晰很多了,但明显分辨率不是1440x900的,字体很大一个,界面看起来还是不很满意。还要修改一下显示分辨率。在setting里面

    设置了,重新登录后依然还是上次的分辨率,直接修改配置文件/etc/X11/xorg.conf可以解决这个问题。我的配置如下:

    # Xorg configuration created by system-config-display
    
    Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
    EndSection
    
    Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option        "XkbModel" "pc105"
        Option        "XkbLayout" "us"
    EndSection
    
    Section "Monitor"
    
     ### Comment all HorizSync and VertSync values to use DDC:
     ### Comment all HorizSync and VertSync values to use DDC:
     ### Comment all HorizSync and VertSync values to use DDC:
        Identifier   "Monitor0"
        ModelName    "LCD Panel 1440x900"
     ### Comment all HorizSync and VertSync values to use DDC:
        HorizSync    31.5 - 56.0
        VertRefresh  56.0 - 65.0
        Option        "dpms"
    EndSection
    
    Section "Device"
        Identifier  "Videocard0"
        Driver      "nv"
    EndSection
    
    Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
            Viewport   0 0
            Depth     24
            Modes    "1440x900" "1024x768" "800x600" "640x480"
        EndSubSection
    EndSection

    之前显示的都是1024x768的分辨率,如上在前面添加1440x900,保存,logout后在登,分辨率就正常了。

  • 相关阅读:
    Linux 学习
    mac 驱动
    用wubi安装ubuntu
    Eclipse安装Svn
    XML学习
    java集合类总结
    CVS学习
    [转载]java集合类总结
    Servlet学习
    JSP介绍
  • 原文地址:https://www.cnblogs.com/lkiller/p/3703760.html
Copyright © 2011-2022 走看看