LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: xiaorui

给大家发个xorg.conf文件

[复制链接]
 楼主| 发表于 2009-3-10 16:02:42 | 显示全部楼层
在我的x60上使用evdev.
回复 支持 反对

使用道具 举报

发表于 2009-3-10 17:25:58 | 显示全部楼层
不错,学习了
回复 支持 反对

使用道具 举报

发表于 2009-3-10 18:00:51 | 显示全部楼层
我也贴了
不用hal的笔记本
DPI 171(12?0x800的分辨率)


  1. # nvidia-xconfig: X configuration file generated by nvidia-xconfig
  2. # nvidia-xconfig:  version 1.0  (buildmeister@builder62)  Tue Jan  6 09:43:54 PST 2009

  3. Section "ServerLayout"
  4.     Identifier     "X.org Configured"
  5.     Screen      0  "Screen0" 0 0
  6.     InputDevice    "Mouse0" "CorePointer"
  7.     InputDevice    "Mouse" "AlwaysCore"
  8.     InputDevice    "TouchPad" "SendCoreEvents"
  9.     InputDevice    "Keyboard0" "CoreKeyboard"
  10. EndSection

  11. Section "ServerFlags"
  12.     Option "AllowEmptyInput" "false" # Disable HAL
  13.     Option "AutoAddDevices"  "false" # Disable HAL
  14.     Option "DontZap"         "false" # Allow Ctrl+Alt+Backspace
  15. EndSection

  16. Section "Files"
  17.     FontPath "built-ins"
  18.     FontPath "/usr/share/fonts/MonteCarlo/"
  19.     FontPath "/usr/share/fonts/profont-x11/"
  20.     FontPath "/usr/share/fonts/wqy-bitmapfont/"
  21.     FontPath "/usr/share/fonts/wqy-unibit/"
  22.     FontPath "/usr/share/fonts/wqy-zenhei/"
  23.     FontPath "/usr/share/fonts/ttf-bitstream-vera/"
  24.     FontPath "/usr/share/fonts/droid/"
  25. EndSection

  26. Section "Module"
  27.     Load "wfb"
  28.     Load "dri2"
  29.     Load "extmod"
  30.     Load "dbe"
  31.     Load "extmod"
  32. EndSection

  33. Section "InputDevice"
  34.     # generated from data in "/etc/conf.d/gpm"
  35.     Identifier     "Mouse0"
  36.     Driver         "mouse"
  37.     Option         "Protocol"
  38.     Option         "Device" "/dev/input/mice"
  39.     Option         "Emulate3Buttons" "no"
  40.     Option         "ZAxisMapping" "4 5"
  41. EndSection

  42. Section "InputDevice"
  43.     Identifier     "Keyboard0"
  44.     Driver         "kbd"
  45. EndSection

  46. Section "InputDevice"
  47.     Identifier     "Mouse"
  48.     Driver         "mouse"
  49.     Option         "Protocol" "auto"
  50.     Option         "Device" "/dev/input/mice"
  51.     Option         "ZAxisMapping" "4 5 6 7"
  52. EndSection

  53. Section "InputDevice"

  54. #        Option  "VertTwoFingerScroll"           "1"
  55. #        Option  "HorizTwoFingerScroll"          "1"
  56. #        Option  "VertScrollDelta"                   "20"
  57. #        Option  "HorizScrollDelta"                   "20"
  58.     Identifier     "TouchPad"
  59.     Driver         "synaptics"
  60.     Option         "SendCoreEvents"
  61.     Option         "Protocol" "auto-dev"
  62.     Option         "Device" "/dev/input/mouse2"
  63.         # Range X: 0 - 1023 Y: 0 - 763 [1024x768]
  64.     Option         "LeftEdge" "80"
  65.     Option         "RightEdge" "900"
  66.     Option         "TopEdge" "80"
  67.     Option         "BottomEdge" "640"
  68.     Option         "FingerLow" "7"
  69.     Option         "FingerHigh" "8"
  70.     Option         "MaxTapTime" "200"
  71.     Option         "MaxTapMove" "220"
  72.     Option         "MinSpeed" "0.10" #起初速度
  73.     Option         "MaxSpeed" "1.60" #最高速度
  74.     Option         "AccelFactor" "0.042" #加速度
  75.     Option         "EdgeMotionMinSpeed" "200"
  76.     Option         "EdgeMotionMaxSpeed" "240"
  77.     Option         "SHMConfig" "on"
  78.     Option            "ClickTime" "0"
  79.     Option         "Emulate3Buttons" "on"
  80.     Option         "EmulateMidButtonTime" "80"
  81.     Option         "TapButton1" "1"  #当你一个手指点击时候效果,一般是1,也就是左键
  82.     Option         "TapButton2" "2"  #2个手指点击效果,一般是2,也就是鼠标中键
  83.     #Option         "TapButton3" "3"  #3个手指点击效果,一般是3,也就是鼠标右键
  84.     Option         "CircularScrolling" "on" #环状滚动
  85.     Option         "CircScrollTrigger" "1" #从左上角开始环状滚动
  86.     Option         "CircScrollDelta" "0.1"
  87.     Option         "VertEdgeScroll" "on"        #垂直方向滚动
  88.     Option         "VertScrollDelta" "45"        #垂直方向滚动
  89.     Option         "HorizEdgeScroll" "on"        #水平方向滚动
  90.     Option            "CornerCoasting" "on" #超过边界继续滚动
  91. EndSection

  92. Section "Monitor"

  93.         #Option "ReducedBlanking"
  94.         #DisplaySize  303 190     # notebook 14.1 1280x800 107dpi
  95.     Identifier     "Monitor0"
  96.     VendorName     "Monitor Vendor"
  97.     ModelName      "Monitor Model"
  98.     Option            "ReducedBlanking"

  99. EndSection

  100. Section "Device"

  101.         ### Available Driver options are:-
  102.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  103.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  104.         ### [arg]: arg optional
  105.         #Option     "SWcursor"                   # [<bool>]
  106.         #Option     "HWcursor"                   # [<bool>]
  107.         #Option     "NoAccel"                    # [<bool>]
  108.         #Option     "ShadowFB"                   # [<bool>]
  109.         #Option     "UseFBDev"                   # [<bool>]
  110.         #Option     "Rotate"                     # [<str>]
  111.         #Option     "VideoKey"                   # <i>
  112.         #Option     "FlatPanel"                  # [<bool>]
  113.         #Option     "FPDither"                   # [<bool>]
  114.         #Option     "CrtcNumber"                 # <i>
  115.         #Option     "FPScale"                    # [<bool>]
  116.         #Option     "FPTweak"                    # <i>
  117.         #Option     "DualHead"                   # [<bool>]
  118.         #Option      "AccelMethod" "XAA" # not EXA
  119.         #Option      "TripleBuffer" "True"
  120.     Identifier     "Card_Nvidia"
  121.     Driver         "nvidia"
  122.     VendorName     "nVidia Corporation"
  123.     BoardName      "GeForce 9300M GS"
  124.     #Option         "NoLogo" "True"
  125.     #Option         "UseEdidDpi" "False"
  126.     Option "EnableACPIHotkeys" "True"
  127. EndSection

  128. Section "Screen"
  129.     Identifier     "Screen0"
  130.     Device         "Card_Nvidia"
  131.     Monitor        "Monitor0"
  132.     Option         "DPI" "107 x 107"
  133.     SubSection     "Display"
  134.         Viewport    0 0
  135.         Depth                 24
  136.         Modes                 "1280x800" "1024x768"
  137.     EndSubSection
  138. EndSection

复制代码
回复 支持 反对

使用道具 举报

发表于 2009-3-10 18:30:39 | 显示全部楼层
呵呵,那我也帖一个使用hal的.. 完全不用xorg.conf似乎不行..
  1. kim@Boxer ~ $ cat /etc/X11/xorg.conf
  2. Section "ServerLayout"
  3.     Identifier     "Layout0"
  4.     Screen      0  "Screen0" 0 0
  5. EndSection
  6. Section "Monitor"
  7.     Identifier     "Monitor0"
  8.     Option         "DPMS"
  9. EndSection
  10. Section "Device"
  11.     Identifier     "Device0"
  12.     Driver         "nvidia"
  13.     VendorName     "NVIDIA Corporation"
  14.     BoardName           "GeForce 8600M GT"
  15.     Option         "NoLogo" "True"
  16. #-------2009/3/8 add  test ----------
  17.     Option           "RenderAccel" "True"
  18.     #Option           "ConnectedMonitor" "DFP" # 数字平板
  19.     Option           "TripleBuffer" "True"
  20.     Option           "RegistryDwords" "PowerMizerEnable=0x1;PerfLevelSrc=0x2233;PowerMizerDefault=0x3"        # 电池-最省电, 交流电-自适应
  21.     Option           "OnDemandVBlankInterrupts" "True"  # Disable vblank (for laptop)
  22. #-------2009/3/8 ----------
  23. EndSection
  24. Section "Screen"
  25.     Identifier     "Screen0"
  26.     Device         "Device0"
  27.     Monitor        "Monitor0"
  28.     Option           "DPI" "98 x 98"
  29.     SubSection     "Display"
  30.         Depth       24
  31.         Modes      "1280x800"
  32.     EndSubSection
  33. EndSection
  34. Section "Extensions"
  35.         Option        "Composite" "Enable"
  36. EndSection
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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