LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: smallwolf

【已解决】xorg配置问题?

[复制链接]
发表于 2006-8-15 22:51:07 | 显示全部楼层
Section "InputDevice"
        Identifier      "Mousemy"
        Driver          "mouse"
        Option          "Device"                "/dev/input/mice"
        Option          "rotocol"              "auto"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section    "ServerLayout"
                Identifier                "Xorg Configured"
                Screen          0        "Screen0"  0  0
                InputDevice            "keyboard0"   "Corekeyboard"
                InputDevice            "Mousemy"  "CorePointer"

EndSection
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-15 23:23:31 | 显示全部楼层
多谢lanzinc

我去试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-16 08:53:40 | 显示全部楼层
快吐血了,startx后,应该执行xterm,可屏幕还是黑黑的,鼠标还是没有。#_#
回复 支持 反对

使用道具 举报

发表于 2006-8-16 22:22:59 | 显示全部楼层
有装xterm吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-17 00:08:43 | 显示全部楼层
装了。
不过每次运行都有错误,所以让我把运行它的那行注释掉了。

Xterm :fatal IO error 32 (Broken Pipe) or KillClient on X Server ":0.0"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-17 10:21:22 | 显示全部楼层
贴一下最近的xorg.0.log,把一些没用的信息去掉了:

  1. X Window System Version 7.0.0
  2. Release Date: 21 December 2005
  3. X Protocol Version 11, Revision 0, Release 7.0
  4. Build Operating System:Linux 2.6.16-ARCH i686
  5. Current Operating System: Linux localhost 2.6.17-ARCH #1 SMP PREEMPT Mon Aug 7 08:30:48 CEST 2006 i686
  6. Build Date: 21 June 2006
  7.    Before reporting problems, check http://wiki.x.org
  8.    to make sure that you have the latest version.
  9. Module Loader present
  10. Markers: (--) probed, (**) from config file, (==) default setting,
  11.    (++) from command line, (!!) notice, (II) informational,
  12.    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
  13. (==) Log file: "/var/log/Xorg.0.log", Time: Wed Aug 16 12:10:07 2006
  14. (==) Using config file: "/etc/X11/xorg.conf"
  15. (==) ServerLayout "Xorg Configured"
  16. (**) |-->Screen "Screen0" (0)
  17. (**) |   |-->Monitor "Monitor0"
  18. (**) |   |-->Device "Card0"
  19. (**) |-->Input Device "Keyboard0"
  20. (**) Option "XkbRules" "xorg"
  21. (**) XKB: rules: "xorg"
  22. (**) Option "XkbModel" "pc105"
  23. (**) XKB: model: "pc105"
  24. (**) Option "XkbLayout" "us"
  25. (**) XKB: layout: "us"
  26. (==) Keyboard: CustomKeycode disabled
  27. (**) |-->Input Device "MouseMy"
  28. (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
  29.    Entry deleted from font path.
  30.    (Run 'mkfontdir' on "/usr/share/fonts/75dpi").
  31. (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi".
  32.    Entry deleted from font path.
  33.    (Run 'mkfontdir' on "/usr/share/fonts/75dpi").
  34. (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
  35.    Entry deleted from font path.
  36.    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
  37. (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
  38.    Entry deleted from font path.
  39.    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
  40. (WW) The directory "/usr/share/fonts/PEX" does not exist.
  41.    Entry deleted from font path.
  42. (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/cyrillic".
  43.    Entry deleted from font path.
  44.    (Run 'mkfontdir' on "/usr/share/fonts/cyrillic").
  45. (WW) The directory "/usr/share/fonts/Type1" does not exist.
  46.    Entry deleted from font path.
  47. (WW) The directory "/usr/share/fonts/ttf/western" does not exist.
  48.    Entry deleted from font path.
  49. (WW) The directory "/usr/share/fonts/ttf/decoratives" does not exist.
  50.    Entry deleted from font path.
  51. (WW) The directory "/usr/share/fonts/truetype" does not exist.
  52.    Entry deleted from font path.
  53. (WW) The directory "/usr/share/fonts/truetype/openoffice" does not exist.
  54.    Entry deleted from font path.
  55. (WW) The directory "/usr/share/fonts/truetype/ttf-bitstream-vera" does not exist.
  56.    Entry deleted from font path.
  57. (WW) The directory "/usr/share/fonts/latex-ttf-fonts" does not exist.
  58.    Entry deleted from font path.
  59. (WW) The directory "/usr/share/fonts/defoma/CID" does not exist.
  60.    Entry deleted from font path.
  61. (WW) The directory "/usr/share/fonts/defoma/TrueType" does not exist.
  62.    Entry deleted from font path.
  63. (**) FontPath set to "/usr/share/fonts/misc:unscaled,/usr/share/fonts/misc"
  64. (**) RgbPath set to "/usr/share/X11/rgb"
  65. (**) ModulePath set to "/usr/lib/xorg/modules"
  66. (**) Option "AllowMouseOpenFail" "true"
  67. (II) Module ABI versions:
  68.    X.Org ANSI C Emulation: 0.2
  69.    X.Org Video Driver: 0.8
  70.    X.Org XInput driver : 0.5
  71.    X.Org Server Extension : 0.2
  72.    X.Org Font Renderer : 0.4
  73. (II) Loader running on linux
  74. (II) LoadModule: "bitmap"
  75. (II) Loading /usr/lib/xorg/modules/fonts/libbitmap.so
  76. (II) Module bitmap: vendor="X.Org Foundation"
  77.    compiled for 7.0.0, module version = 1.0.0
  78.    Module class: X.Org Font Renderer
  79.    ABI class: X.Org Font Renderer, version 0.4
  80. (II) Loading font Bitmap
  81. (II) LoadModule: "pcidata"
  82. (II) Loading /usr/lib/xorg/modules/libpcidata.so
  83. (II) Module pcidata: vendor="X.Org Foundation"
  84.    compiled for 7.0.0, module version = 1.0.0
  85.    ABI class: X.Org Video Driver, version 0.8
  86. (--) using VT number 7

  87. (II) LoadModule: "ddc"
  88. (II) Loading /usr/lib/xorg/modules/libddc.so
  89. (II) Module ddc: vendor="X.Org Foundation"
  90.    compiled for 7.0.0, module version = 1.0.0
  91.    ABI class: X.Org Video Driver, version 0.8
  92. (II) LoadModule: "dbe"
  93. (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
  94. (II) Module dbe: vendor="X.Org Foundation"
  95.    compiled for 7.0.0, module version = 1.0.0
  96.    Module class: X.Org Server Extension
  97.    ABI class: X.Org Server Extension, version 0.2
  98. (II) Loading extension DOUBLE-BUFFER
  99. (II) LoadModule: "extmod"
  100. (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
  101. (II) Module extmod: vendor="X.Org Foundation"
  102.    compiled for 7.0.0, module version = 1.0.0
  103.    Module class: X.Org Server Extension
  104.    ABI class: X.Org Server Extension, version 0.2
  105. (II) Loading extension SHAPE
  106. (II) Loading extension MIT-SUNDRY-NONSTANDARD
  107. (II) Loading extension BIG-REQUESTS
  108. (II) Loading extension SYNC
  109. (II) Loading extension MIT-SCREEN-SAVER
  110. (II) Loading extension XC-MISC
  111. (II) Loading extension XFree86-VidModeExtension
  112. (II) Loading extension XFree86-Misc
  113. (II) Loading extension XFree86-DGA
  114. (II) Loading extension DPMS
  115. (II) Loading extension TOG-CUP
  116. (II) Loading extension Extended-Visual-Information
  117. (II) Loading extension XVideo
  118. (II) Loading extension XVideo-MotionCompensation
  119. (II) Loading extension X-Resource
  120. (II) LoadModule: "bitmap"
  121. (II) Reloading /usr/lib/xorg/modules/fonts/libbitmap.so
  122. (II) Loading font Bitmap
  123. (II) LoadModule: "type1"
  124. (II) Loading /usr/lib/xorg/modules/fonts/libtype1.so
  125. (II) Module type1: vendor="X.Org Foundation"
  126.    compiled for 7.0.0, module version = 1.0.2
  127.    Module class: X.Org Font Renderer
  128.    ABI class: X.Org Font Renderer, version 0.4
  129. (II) Loading font Type1
  130. (II) LoadModule: "freetype"
  131. (II) Loading /usr/lib/xorg/modules/fonts/libfreetype.so
  132. (II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
  133.    compiled for 7.0.0, module version = 2.1.0
  134.    Module class: X.Org Font Renderer
  135.    ABI class: X.Org Font Renderer, version 0.4
  136. (II) Loading font FreeType
  137. (II) LoadModule: "record"
  138. (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
  139. (II) Module record: vendor="X.Org Foundation"
  140.    compiled for 7.0.0, module version = 1.13.0
  141.    Module class: X.Org Server Extension
  142.    ABI class: X.Org Server Extension, version 0.2
  143. (II) Loading extension RECORD
  144. (II) LoadModule: "vesa"
  145. (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
  146. (II) Module vesa: vendor="X.Org Foundation"
  147.    compiled for 7.0.0, module version = 1.0.1
  148.    Module class: X.Org Video Driver
  149.    ABI class: X.Org Video Driver, version 0.8
  150. (II) LoadModule: "keyboard"
  151. (II) Loading /usr/lib/xorg/modules/input/keyboard_drv.so
  152. (II) Module keyboard: vendor="X.Org Foundation"
  153.    compiled for 7.0.0, module version = 1.0.0
  154.    Module class: X.Org XInput Driver
  155.    ABI class: X.Org XInput driver, version 0.5
  156. (II) LoadModule: "mouse"
  157. (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
  158. (II) Module mouse: vendor="X.Org Foundation"
  159.    compiled for 7.0.0, module version = 1.0.4
  160.    Module class: X.Org XInput Driver
  161.    ABI class: X.Org XInput driver, version 0.5
  162. (II) VESA: driver for VESA chipsets: vesa
  163. (II) Primary Device is: PCI 00:01:0
  164. (--) Assigning device section with no busID to primary device
  165. (--) Chipset vesa found
  166. (II) resource ranges after xf86ClaimFixedResources() call:
  167. (II) Setting vga for screen 0.
  168. (II) Loading sub module "vbe"
  169. (II) LoadModule: "vbe"
  170. (II) Loading /usr/lib/xorg/modules/libvbe.so
  171. (II) Module vbe: vendor="X.Org Foundation"
  172.    compiled for 7.0.0, module version = 1.1.0
  173.    ABI class: X.Org Video Driver, version 0.8
  174. (II) Loading sub module "int10"
  175. (II) LoadModule: "int10"
  176. (II) Loading /usr/lib/xorg/modules/libint10.so
  177. (II) Module int10: vendor="X.Org Foundation"
  178.    compiled for 7.0.0, module version = 1.0.0
  179.    ABI class: X.Org Video Driver, version 0.8
  180. (II) VESA(0): initializing int10
  181. (II) VESA(0): Primary V_BIOS segment is: 0xc000
  182. (II) VESA(0): VESA BIOS detected
  183. (II) VESA(0): VESA VBE Version 3.0
  184. (II) VESA(0): VESA VBE Total Mem: 1024 kB
  185. (II) VESA(0): VESA VBE OEM: Intel(R) 8xx Chipset Video BIOS
  186. (II) VESA(0): VESA VBE OEM Software Rev: 4.0
  187. (II) VESA(0): VESA VBE OEM Vendor: Intel Corporation
  188. (II) VESA(0): VESA VBE OEM Product: Intel(R) 8xx Chipset
  189. (II) VESA(0): VESA VBE OEM Product Rev: Hardware Version 0.0
  190. (**) VESA(0): Depth 16, (--) framebuffer bpp 16
  191. (==) VESA(0): RGB weight 565
  192. (==) VESA(0): Default visual is TrueColor
  193. (==) VESA(0): Using gamma correction (1.0, 1.0, 1.0)
  194. (II) Loading sub module "ddc"
  195. (II) LoadModule: "ddc"
  196. (II) Reloading /usr/lib/xorg/modules/libddc.so
  197. (II) VESA(0): VESA VBE DDC supported
  198. (II) VESA(0): VESA VBE DDC Level 2
  199. (II) VESA(0): VESA VBE DDC transfer in appr. 1 sec.
  200. (II) VESA(0): VESA VBE DDC read successfully
  201. (II) VESA(0): Manufacturer: LCS  Model: 1556  Serial#: 23550
  202. (II) VESA(0): Year: 2001  Week: 15
  203. (II) VESA(0): EDID Version: 1.1
  204. (II) VESA(0): Analog Display Input,  Input Voltage Level: 0.700/0.700 V
  205. (II) VESA(0): Sync:  Separate
  206. (II) VESA(0): Max H-Image Size [cm]: horiz.: 28  vert.: 21
  207. (II) VESA(0): Gamma: 2.25
  208. (II) VESA(0): DPMS capabilities: StandBy Suspend Off; RGB/color Display
  209. (II) VESA(0): redX: 0.620 redY: 0.350   greenX: 0.290 greenY: 0.610
  210. (II) VESA(0): blueX: 0.155 blueY: 0.065   whiteX: 0.283 whiteY: 0.297
  211. (II) VESA(0): Supported VESA Video Modes:
  212. (II) VESA(0): 720x400@70Hz
  213. (II) VESA(0): 640x480@60Hz
  214. (II) VESA(0): 640x480@72Hz
  215. (II) VESA(0): 640x480@75Hz
  216. (II) VESA(0): 800x600@60Hz
  217. (II) VESA(0): 800x600@72Hz
  218. (II) VESA(0): 800x600@75Hz
  219. (II) VESA(0): 832x624@75Hz
  220. (II) VESA(0): 1024x768@60Hz
  221. (II) VESA(0): Manufacturer's mask: 0
  222. (II) VESA(0): Supported Future Video Modes:
  223. (II) VESA(0): #0: hsize: 640  vsize 480  refresh: 85  vid: 22833
  224. (II) VESA(0): #1: hsize: 800  vsize 600  refresh: 85  vid: 22853
  225. (II) VESA(0): #2: hsize: 640  vsize 480  refresh: 100  vid: 26673
  226. (II) VESA(0): Supported additional Video Mode:
  227. (II) VESA(0): clock: 25.2 MHz   Image Size:  270 x 202 mm
  228. (II) VESA(0): h_active: 640  h_sync: 656  h_sync_end 752 h_blank_end 800 h_border: 0
  229. (II) VESA(0): v_active: 350  v_sync: 387  v_sync_end 389 v_blanking: 449 v_border: 0
  230. (II) VESA(0): Serial No:  BZ  23550
  231. (II) VESA(0): Monitor name: LXH-P556
  232. (II) VESA(0): Ranges: V min: 50  V max: 120 Hz, H min: 30  H max: 54 kHz, PixClock max 110 MHz
  233. (II) VESA(0): Searching for matching VESA mode(s):
  234. (II) VESA(0): Total Memory: 16 64KB banks (1024kB)
  235. (II) VESA(0): Monitor0: Using hsync range of 30.00-50.00 kHz
  236. (II) VESA(0): Monitor0: Using vrefresh value of 85.00 Hz
  237. (II) VESA(0): Not using mode "800x600" (no mode of this name)
  238. (--) VESA(0): Virtual size is 640x480 (pitch 640)
  239. (**) VESA(0):  Built-in mode "640x480"
  240. (**) VESA(0):  Built-in mode "640x400"
  241. (--) VESA(0): Display dimensions: (280, 210) mm
  242. (--) VESA(0): DPI set to (58, 58)
  243. (II) VESA(0): Attempting to use 85Hz refresh for mode "640x480" (111)
  244. (II) VESA(0): Attempting to use 85Hz refresh for mode "640x400" (127)
  245. (**) VESA(0): Using "Shadow Framebuffer"
  246. (II) Loading sub module "shadow"
  247. (II) LoadModule: "shadow"
  248. (II) Loading /usr/lib/xorg/modules/libshadow.so
  249. (II) Module shadow: vendor="X.Org Foundation"
  250.    compiled for 7.0.0, module version = 1.0.0
  251.    ABI class: X.Org ANSI C Emulation, version 0.2
  252. (II) Loading sub module "fb"
  253. (II) LoadModule: "fb"
  254. (II) Loading /usr/lib/xorg/modules/libfb.so
  255. (II) Module fb: vendor="X.Org Foundation"
  256.    compiled for 7.0.0, module version = 1.0.0
  257.    ABI class: X.Org ANSI C Emulation, version 0.2
  258. (II) do I need RAC?  No, I don't.
  259. (II) resource ranges after preInit:
  260. (II) Loading sub module "int10"
  261. (II) LoadModule: "int10"
  262. (II) Reloading /usr/lib/xorg/modules/libint10.so
  263. (II) VESA(0): initializing int10
  264. (II) VESA(0): Primary V_BIOS segment is: 0xc000
  265. (II) VESA(0): VESA BIOS detected
  266. (II) VESA(0): VESA VBE Version 3.0
  267. (II) VESA(0): VESA VBE Total Mem: 1024 kB
  268. (II) VESA(0): VESA VBE OEM: Intel(R) 8xx Chipset Video BIOS
  269. (II) VESA(0): VESA VBE OEM Software Rev: 4.0
  270. (II) VESA(0): VESA VBE OEM Vendor: Intel Corporation
  271. (II) VESA(0): VESA VBE OEM Product: Intel(R) 8xx Chipset
  272. (II) VESA(0): VESA VBE OEM Product Rev: Hardware Version 0.0
  273. (II) VESA(0): virtual address = 0xb7b41000,
  274.    physical address = 0xa0000, size = 65536
  275. (==) VESA(0): Default visual is TrueColor
  276. (==) VESA(0): Backing store disabled
  277. (**) Option "dpms" "true"
  278. (**) VESA(0): DPMS enabled
  279. (==) RandR enabled
  280. (II) Setting vga for screen 0.
  281. (II) Initializing built-in extension MIT-SHM
  282. (II) Initializing built-in extension XInputExtension
  283. (II) Initializing built-in extension XTEST
  284. (II) Initializing built-in extension XKEYBOARD
  285. (II) Initializing built-in extension LBX
  286. (II) Initializing built-in extension XC-APPGROUP
  287. (II) Initializing built-in extension SECURITY
  288. (II) Initializing built-in extension XINERAMA
  289. (II) Initializing built-in extension XFIXES
  290. (II) Initializing built-in extension XFree86-Bigfont
  291. (II) Initializing built-in extension RENDER
  292. (II) Initializing built-in extension RANDR
  293. (II) Initializing built-in extension COMPOSITE
  294. (II) Initializing built-in extension DAMAGE
  295. (II) Initializing built-in extension XEVIE
  296. (**) Option "CoreKeyboard"
  297. (**) Keyboard0: Core Keyboard
  298. (**) Option "Protocol" "standard"
  299. (**) Keyboard0: Protocol: standard
  300. (**) Option "AutoRepeat" "500 30"
  301. (**) Option "XkbRules" "xorg"
  302. (**) Keyboard0: XkbRules: "xorg"
  303. (**) Option "XkbModel" "pc105"
  304. (**) Keyboard0: XkbModel: "pc105"
  305. (**) Option "XkbLayout" "us"
  306. (**) Keyboard0: XkbLayout: "us"
  307. (**) Option "CustomKeycodes" "off"
  308. (**) Keyboard0: CustomKeycodes disabled
  309. (**) Option "Protocol" "IMPS/2"
  310. (**) MouseMy: Device: "/dev/input/mice"
  311. (**) MouseMy: Protocol: "IMPS/2"
  312. (**) Option "SendCoreEvents" "true"
  313. (**) MouseMy: always reports core events
  314. (**) Option "CorePointer"
  315. (**) MouseMy: Core Pointer
  316. (**) Option "Device" "/dev/input/mice"
  317. (**) Option "Buttons" "5"
  318. (==) MouseMy: Emulate3Buttons, Emulate3Timeout: 50
  319. (**) Option "ZAxisMapping" "4 5"
  320. (**) MouseMy: ZAxisMapping: buttons 4 and 5
  321. (**) MouseMy: Buttons: 9
  322. (II) XINPUT: Adding extended input device "MouseMy" (type: MOUSE)
  323. (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
  324. (II) MouseMy: ps2EnableDataReporting: succeeded
  325. FreeFontPath: FPE "/usr/share/fonts/misc:unscaled" refcount is 2, should be 1; fixing.
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-17 10:23:53 | 显示全部楼层
请问,如果没有安装任何的桌面和窗口管理程序,那么startx后,应该显示什么呢?
我的是黑屏,这个正常吗?而且没有鼠标。
回复 支持 反对

使用道具 举报

发表于 2006-8-17 12:49:28 | 显示全部楼层
黑屏没有死机么?
你gnome-session之类启动呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-17 15:17:39 | 显示全部楼层
没有死机,通过ctrl+alt+backspace回到的命令行

我没装任何桌面和wm,所以没启动gnome-session
回复 支持 反对

使用道具 举报

发表于 2006-8-18 19:58:57 | 显示全部楼层
运行下面的命令看看
xinit `which xterm` -- `which Xorg` :0
注意引号是`(台式机标准键盘上和~同一个键位)

目的,测试 xorg 和 xterm是否能起启动

应该可以看到一个xterm窗口,左上角。

==============

运行

dmesg | grep MOUSE
dmesg | grep mouse
dmesg | grep Mouse

检查老鼠是否和内核亲密接触。
回复 支持 反对

使用道具 举报

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

本版积分规则

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