• 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后在登,分辨率就正常了。

  • 相关阅读:
    深拷贝的终极探索(90%的人都不知道)
    VS Code:让你工作效率翻倍的23个插件和23个编辑技巧
    Git使用教程:最详细、最傻瓜、最浅显、真正手把手教!
    【译】使用 ndb 调试 node 应用
    nodejs的express使用介绍
    Koa 框架教程
    VSCode配置Git随记
    单页面路由原理及实现
    可能比文档还详细--VueRouter完全指北
    急速JavaScript全栈教程
  • 原文地址:https://www.cnblogs.com/lkiller/p/3703760.html
Copyright © 2020-2023  润新知