LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1877|回复: 23

给大家发个xorg.conf文件

[复制链接]
发表于 2009-2-3 11:49:03 | 显示全部楼层 |阅读模式
最近修改的一个笔记本的xorg文件。
# /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/100dpi"
FontPath "/usr/share/X11/fonts/75dpi"
FontPath "/usr/share/fonts/X11/misc"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
# Disable "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver  "kbd"
Option  "CoreKeyboard"
Option  "XkbRules" "xorg"
Option  "XkbModel" "pc104"
Option  "XkbLayout" "us"
Option  "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device"  "/dev/input/mice"
Option  "rotocol"  "ExplorerPS/2"
Option  "ZAxisMapping"  "4 5"
Option  "HorizScrollDelta" "0"
Option  "Emulate3Buttons" "true"
Option  "EmulateWheel"  "true"
Option  "EmulateWheelButton" "2"
EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "stylus"
  Option        "Device"        "/dev/ttyS0"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "stylus"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
  Option "KeepShape" "on"
#  Option "DebugLevel"  "10"
  Option "TPCButton" "off"
EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "eraser"
  Option        "Device"        "/dev/ttyS0"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "eraser"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
  Option "KeepShape" "on"
#  Option "DebugLevel"  "10"
EndSection
Section "InputDevice"
  Driver        "wacom"
  Identifier    "cursor"
  Option        "Device"        "/dev/ttyS0"          # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option        "Type"          "cursor"
  Option        "ForceDevice"   "ISDV4"               # Tablet PC ONLY
  Option "KeepShape" "on"
#  Option "DebugLevel"  "10"
EndSection

Section "Device"
       Identifier      "Intel Controller 0"
#       Driver          "i810"
       Driver          "intel"
       BusID           "CI:0:2:0"
       Screen 0
       Option "MonitorLayout" "CRT,LFP"
Option "AccelMethod" "exa"
Option "MigrationHeuristic" "greedy"
EndSection
# External VGA device
#Section "Device"
#       Identifier      "Intel Controller 1"
#       Driver          "intel"
#       BusID           "CI:0:2:0"
#       Screen 1
#EndSection

Section "Monitor"
       Identifier      "LCD Monitor"
       Option          "DPMS"
       DisplaySize     245 184
       HorizSync 30-67
       VertRefresh 50-75
EndSection
#Section "Monitor"
#       Identifier      "External Monitor"
#       Option          "DPMS"
#       HorizSync 28-75
#       VertRefresh 43-100
#EndSection

#Section "Screen"
#       Identifier      "External Screen"
#       Device          "Intel Controller 1"
#       Monitor         "External Monitor"
#       DefaultDepth    24
#       SubSection "Display"
#               Depth           24
#               Modes           "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
#               Virtual 2432 1824
#       EndSubSection
#EndSection
Section "Screen"
       Identifier      "LCD Screen"
       Device          "Intel Controller 0"
       Monitor         "LCD Monitor"
       DefaultDepth    24
       SubSection "Display"
               Depth           24
               Modes           "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
#               Virtual 2432 1824
# This size would be nice, but it degrades performance
#               Virtual 2688 2080
       EndSubSection
EndSection

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "LCD Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice     "stylus" "SendCoreEvents"
InputDevice     "cursor" "SendCoreEvents"
InputDevice     "eraser" "SendCoreEvents"
EndSection

Section "DRI"
Mode 0666
EndSection


方便大家在本子上使用
发表于 2009-2-3 14:08:19 | 显示全部楼层
  1. # **********************************************************************
  2. # Files section.  This allows default font and rgb paths to be set
  3. # **********************************************************************
  4. Section "Files"
  5.     FontPath    "/usr/share/fonts/75dpi"
  6. EndSection
  7. # **********************************************************************
  8. # Monitor section
  9. # **********************************************************************
  10. Section "Monitor"
  11.      Identifier  "LCD Monitor"
  12.       HorizSync   35-75
  13.       VertRefresh 50-160
  14. EndSection
  15. # **********************************************************************
  16. # Graphics device section
  17. # **********************************************************************
  18. Section "Device"
  19.     Identifier  "NVS 140M"
  20.     Driver      "nvidia"
  21.     Busid       "PCI:01:00:0"
  22. EndSection
  23. # **********************************************************************
  24. # Screen sections
  25. # **********************************************************************
  26. Section "Screen"
  27.     Identifier  "Screen 1"
  28.     Device      "NVS 140M"
  29.     Monitor     "LCD Monitor"
  30.     DefaultDepth 24
  31.     Option      "Nologo" "True"
  32.     Option      "AllowGLXWithComposite" "True"
  33.     Option      "RenderAccel" "True"
  34.     Option              "DPI" "96 x 96"
  35.     Subsection "Display"
  36.         Depth       24
  37.         Modes       "1440x900" "nvidia-auto-select"
  38.     EndSubsection
  39. EndSection
  40. # **********************************************************************
  41. # ServerLayout sections.
  42. # **********************************************************************
  43. Section "ServerLayout"
  44.     Identifier "Default Layout"
  45.     Screen "Screen 1"
  46. EndSection
  47. Section "Extensions"
  48.     Option        "Composite" "Enable"
  49. EndSection
复制代码

我的T61上的,inputDevice都交给了hald
回复 支持 反对

使用道具 举报

发表于 2009-2-3 15:35:10 | 显示全部楼层
唉,我的xorg.conf太短,都不太好意思贴了...

  1. Section "Monitor"
  2.     Identifier     "Monitor0"
  3.     VendorName     "BenQ S41 LCD"
  4.     ModelName      "AUO"
  5. EndSection
  6. Section "Device"
  7.     Identifier     "Videocard0"
  8.     Driver         "nvidia"
  9.     Option "AccelMethod" "EXA"
  10.     VendorName     "NVIDIA Corporation"
  11.     BoardName      "GeForce 8600M GS"
  12. EndSection
  13. Section "Screen"
  14.     Identifier     "Screen0"
  15.     Device         "Videocard0"
  16.     Monitor        "Monitor0"
  17.     DefaultDepth    24
  18.     Option         "metamodes" "1280x800_60 +0+0; 1024x768 +0+0; 800x600 +0+0; 640x480 +0+0"
  19.     SubSection     "Display"
  20.         Depth       24
  21.     EndSubSection
  22.     Option         "NoLogo" "true"
  23. EndSection

复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-3 16:05:28 | 显示全部楼层
这可以帮助很多人配置x的时候使用。
想征集下大家的这个make.conf 还有xorg.conf
方便大家以后安装系统的时候便于配置
回复 支持 反对

使用道具 举报

发表于 2009-2-3 18:49:34 | 显示全部楼层
标记先,空了参考加到我的配置上
回复 支持 反对

使用道具 举报

发表于 2009-2-3 18:51:09 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-3 21:53:25 | 显示全部楼层
VIDEO_CARDS="intel vesa fbdev"
ALSA_CARDS="intel8x0"

fbdev your mind !
回复 支持 反对

使用道具 举报

发表于 2009-2-3 22:06:38 | 显示全部楼层
楼主是大连的啊... 好巧,我也支持一下
硬件信息见签名
  1. Section "ServerLayout"              
  2.     Identifier     "Layout0"        
  3.     Screen      0  "Screen0" 0 0   
  4.     InputDevice    "Touchpad" "SendCoreEvents"
  5. EndSection                                    
  6. Section "Module"
  7.     Load           "dbe"
  8.     Load           "extmod"
  9.     Load           "freetype"
  10.     Load           "glx"     
  11. EndSection                  
  12. Section "InputDevice"
  13.     Identifier     "Touchpad"
  14.     Driver         "synaptics"
  15.     Option         "TapButton1" "1"
  16. #    Option        "TapButton2" "2"
  17.     Option         "Device" "/dev/input/mouse0"
  18. EndSection                                    
  19. Section "Monitor"
  20.     Identifier     "Monitor0"
  21.     VendorName     "Unknown"
  22.     ModelName      "Unknown"
  23.     HorizSync       28.0 - 33.0
  24.     VertRefresh     43.0 - 72.0
  25.     Option         "DPMS"      
  26. EndSection                     
  27. Section "Device"
  28.     Identifier     "Device0"
  29.     Driver         "nvidia"
  30.     VendorName     "NVIDIA Corporation"
  31.     BoardName      "GeForce 8600M GT"
  32. EndSection
  33. Section "Screen"
  34.     Identifier     "Screen0"
  35.     Device         "Device0"
  36.     Monitor        "Monitor0"
  37.     DefaultDepth    24
  38.     Option         "NoLogo" "true"
  39.     Option         "DPI" "98 x 98"
  40.     SubSection     "Display"
  41.         Depth       24
  42.         Modes      "1280x800"
  43.     EndSubSection
  44. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-2-3 23:11:26 | 显示全部楼层
提醒一下楼上,签名中"Disktop"拼错了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-2-4 09:30:39 | 显示全部楼层
三星的本子可以看看dmesg里的显示器型号吧。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表