修改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

修改Xorg.conf配置显示分辨率的更多相关文章

  1. nginx修改nginx.conf配置可以https访问

    修改nginx.conf,参照如下更改配置server { listen 443; server_name abc.com; // 访问域名 ssl on; root /var/www/bjubi.c ...

  2. 红帽企业版RHEL7.1在研域工控板上,开机没有登陆窗口 -- 编写xorg.conf 简单三行解决Ubuntu分辩率不可调的问题

    红帽企业版RHEL7.1在研域工控板上,开机没有登陆窗口 没有登陆窗口 的原因分析: 没有登陆窗口的原因是因为有多个屏幕在工作,其中一个就是build-in 屏幕(内置的虚拟屏幕)和外接的显示器,并且 ...

  3. 网卡配置和DNS配置,手动挂在nas存储的共享目录,网络相关其它操作命令,修改防火墙中的端口配置,resolv.conf配置详细介绍和网卡信息配置详细介绍

    1.   网卡配置和DNS配置 若想服务器能够发邮件,需要让部署的服务器能够访问到外网环境.若部署的服务器访问不到外网,通过ping www.baidu.com的方式执行的时候,会出现以下问题: &q ...

  4. redis.conf 配置信息:读取及修改命令

    相关资源 网址 官方地址(网页中 Command + F,输入井号"#",方便查看没有注释的行) http://download.redis.io/redis-stable/red ...

  5. apache 虚拟主机详细配置:http.conf配置详解

    apache 虚拟主机详细配置:http.conf配置详解 Apache的配置文件http.conf参数含义详解 Apache的配置由httpd.conf文件配置,因此下面的配置指令都是在httpd. ...

  6. wamp修改多站点配置

    本文介绍如果在wamp中修改配置支持多站点. 第1步,修改httpd.conf,增加8080端口的监听 #Listen 12.34.56.78:80Listen 80Listen 8080 第2步,修 ...

  7. linux下Nginx配置文件(nginx.conf)配置设置详解(windows用phpstudy集成)

    linux备份nginx.conf文件举例: cp /usr/local/nginx/nginx.conf /usr/local/nginx/nginx.conf-20171111(日期) 在进程列表 ...

  8. 长连接锁服务优化实践 C10K问题 nodejs的内部构造 limits.conf文件修改 sysctl.conf文件修改

    小结: 1. 当文件句柄数目超过 10 之后,epoll 性能将优于 select 和 poll:当文件句柄数目达到 10K 的时候,epoll 已经超过 select 和 poll 两个数量级. 2 ...

  9. Eclipse修改Maven仓库配置

    修改Apache-Maven\conf下的settings.xml文件 <?xml version="1.0" encoding="UTF-8"?> ...

随机推荐

  1. C#实现对数据库的备份还原(完全)

    C#实现对数据库的备份还原 ( 用SQL语句实现对数据库备份还原操作 备份SqlServer数据库: backup database 数据库名 to disk (备份文件存放路径+文件名).bak 还 ...

  2. sublime如何汉化

    1.将sublime安装文件夹里面的defavlut.sublime-package这个文件zip解压. 2.然后查找到sublime-menu文件. 3.打开文件将json里面的caption里面的 ...

  3. hdu3507Print Article(斜率优化dp)

    Print Article Time Limit: 9000/3000 MS (Java/Others)    Memory Limit: 131072/65536 K (Java/Others)To ...

  4. 利用 Puppet 实现自动化管理配置 Linux 计算机集群

    随着虚拟化和云计算技术的兴起,计算机集群的自动化管理和配置成为了数据中心运维管理的热点.对于 IaaS.Paas.Saas 来说,随着业务需求的提升,后台计算机集群的数量也会线性增加.对于数据中心的运 ...

  5. MySQL中DELETE语句嵌套子查询规则

    delete from table .....其中表名不能起别名 比如说:delete from table t where t.id = '1';(这条SQL语句将报错)

  6. 使用IDEA 搭建一个SpringBoot + Hibernate + Gradle

    ---恢复内容开始--- 打开IDEA创建一个新项目: 第一步: 第二步: 第三步: 最后一步: 如果下载的时候时间太久.可以找到build.gradle文件,添加以下代码.如下图 maven{ ur ...

  7. 页面中word文本框的编辑,两种方式

    大致效果图(对其中的功能可以增减): 实现方法1:调用js <link href="../../platform/js/kindeditor/themes/default/defaul ...

  8. Java常见错误整理(一)

    1.配置完Java环境变量之后,仍然不能使用java命令. 解决方法: 如果是Windows10系统出现此问题,是因为个别Windows10系统不识别“JAVA_HOME”环境变量,将path中所有的 ...

  9. System.DateTime.Now 24小时制。

    this.Label6.Text = "当前时间:" + System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") ...

  10. SQL Server 一个简单的游标

    先看一下原表: DECLARE @id INT; DECLARE @name NVARCHAR(100); DECLARE c_department CURSOR FOR SELECT StuID, ...