修改Xorg.conf是件简单的事,配置文件结构简单,也没有复杂的语法,但是一但配置失败,后果是比较

严重的,,所以强烈建议每次修改之前做好备份工作。

Xorg.conf一般位于/etc/X11/xorg.conf

包含了你的显卡信息和显示器信息。

===============sample as my config======================

# /etc/X11/xorg.conf (xorg X Window System server configuration file)

#

# This file was generated by dexconf, the Debian X Configuration tool, using

# values from the debconf database.

#

# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.

# (Type "man /etc/X11/xorg.conf" at the shell prompt.)

#

# This file is automatically updated on xserver-xorg package upgrades *only*

# if it has not been modified since the last upgrade of the xserver-xorg

# package.

#

# If you have edited this file but would like it to be automatically updated

# again, run the following command:

#   sudo dpkg-reconfigure -phigh xserver-xorg

//带#的是注释掉的行,不用管。 //

Section "Files"

        FontPath        "/usr/share/X11/fonts/misc"

        FontPath        "/usr/share/X11/fonts/cyrillic"

        FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"

        FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"

        FontPath        "/usr/share/X11/fonts/Type1"

        FontPath        "/usr/share/X11/fonts/CID"

        FontPath        "/usr/share/X11/fonts/100dpi"

        FontPath        "/usr/share/X11/fonts/75dpi"

        # paths to defoma fonts

        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"

        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"

EndSection

//一段一段的用Section & EndSection隔开,上面是定义一些文件的路径 //









Section "Module"

#       Load    "GLcore"//这行

        Load    "i2c"

        Load    "bitmap"

        Load    "ddc"

#       Load    "dri"   //还有这行,是我装显卡驱动时注释掉的

        Load    "extmod"

        Load    "freetype"

        Load    "glx"   //这行是加上的,有些记不清了,不过装好了以后就可以打quake了

        Load    "int10"

        Load    "type1"

        Load    "vbe"

EndSection

//Module,顾名思意,模块,加载很多种模块,当你为你的显卡装驱动的时候,你会修改这些东西

的,修改完毕且正确,那么你就可以享受同windows系统下一样的显卡速度了。 //









Section "InputDevice"

        Identifier      "Generic Keyboard"

        Driver          "kbd"

        Option          "CoreKeyboard"

        Option          "XkbRules"      "xorg"

        Option          "XkbModel"      "pc104"

        Option          "XkbLayout"     "us"

EndSection

//键盘,显然,你不用修改这里,never,除非你的旧键盘坏了,而且你想换一块与众不同的新键盘。 //













Section "InputDevice"

        Identifier      "Configured Mouse"

        Driver          "mouse"

        Option          "CorePointer"

        Option          "Device"                "/dev/input/mice"

        Option          "Protocol"              "ImPS/2"

        Option          "Emulate3Buttons"       "true"

        Option          "ZAxisMapping"          "4 5"

EndSection

//鼠标,同上,不过,罗技的鼠标在这里也发挥不了用武之地,因为这里没有cs。 //









Section "Device"

        Identifier      "NVIDIA Corporation NVCrush11 [GeForce2 MX Integrated Graphics]"

        Driver          "nvidia"

        BusID           "PCI:2:0:0"

EndSection

//显卡,这个是非常重要的一部分,虽然只有三行,但是显示的性能基本都在这里体现,只修改这

里是没有用的,你必须做相应的修改,针对你的显卡和系统,搜一下网上的文章,你会搞定他的。 //









Section "Monitor"

        Identifier      "Philips 105S"//只是一个名字,但是改了看起来更好一些

        Option          "DPMS"        //让能源之星见鬼去吧,注释掉,如果你愿意

        HorizSync       30-63         //这两行改之前请查阅你显示器的型号,根据

        VertRefresh     50-120        //参数做出相应修改, 不要写反! //

EndSection

//显示器,困扰了我许久的问题,因为xorg对我早年的伤害,我一直不敢轻易尝试修改这个文件,

到最后我下定决心改这个时,很轻松就搞定了。而且付出了很小的代价(两次死机,恩,很小的代价。)//









Section "Screen"

        Identifier      "Default Screen"// //这行 //

        Device          "NVIDIA Corporation NVCrush11 [GeForce2 MX Integrated Graphics]"

        Monitor         "Philips 105S" // //到这行 //往上面找,找到相关的,注意大小写

        DefaultDepth    16              //一般这里是24,我的比较老。。。

        SubSection "Display"

                Depth           1

                Modes           "1024x768" "800x600" "640x480"

        EndSubSection

        SubSection "Display"

                Depth           4

                Modes           "1024x768" "800x600" "640x480"

        EndSubSection

        SubSection "Display"

                Depth           8

                Modes           "1024x768" "800x600" "640x480"

        EndSubSection

        SubSection "Display"

                Depth           15

                Modes           "1024x768" "800x600" "640x480"

        EndSubSection

        SubSection "Display"

                Depth           16

                Modes           "1024x768" "800x600" "640x480"

        EndSubSection

        SubSection "Display"

                Depth           24

                Modes           "1024x768" "800x600" "640x480"

        EndSubSection

EndSection

//剩下的就不要改了!自动检测的会很好的。如果改,请确认你知道你在做什么。 //





Section "ServerLayout"

        Identifier      "Default Layout"

        Screen          "Default Screen"

        InputDevice     "Generic Keyboard"

        InputDevice     "Configured Mouse"

EndSection

Section "DRI"

        Mode    0666

EndSection

最新文章

  1. 使用未付费的账号真机调试 iOS 程序,过几天后程序一打开就会闪退
  2. as3延迟处理
  3. 关于QFTP乱码
  4. Datatable 列查询,统计值
  5. 压力测试 webbench
  6. C#—WebService
  7. 团队作业week8
  8. 【原/转】ios指令集以及基于指令集的app包压缩策略
  9. Linux系统日志及日志分析
  10. linux 静态库、共享库
  11. excel中单元格计算
  12. ColorDescriptor software v4.0 一个提取颜色特征描述子的软件包
  13. 264分析两大利器:264VISA和Elecard StreamEye Tools
  14. 【前端学习】【jQuery选择器】
  15. BZOJ2276: [Poi2011]Temperature
  16. struts2笔记04-XxxAware接口
  17. JAVA操作Hbase基础例子
  18. PHP array_map()
  19. JavaScript中常用的正则表达式日常整理(全)
  20. linux --> 系统信息命令

热门文章

  1. nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter
  2. POJ 1082---->一个神一般的题
  3. 脑洞大开加偏执人格——可持久化treap版的Link Cut Tree
  4. html中<a>标签_top和_parent的区别
  5. 在使用实体框架(Entity Framework)的应用中加入审计信息(Audit trail)跟踪数据的变动
  6. GitHub上fork别人打代码后如何保持和原作者同步的更新
  7. halcon 模板匹配 -- create_shape_model
  8. dubbo之多注册中心
  9. 通用功能类:改变WinForm窗体显示颜色
  10. maven多个子项目、父项目之间的引用问题