LinuxSir.cn,穿越时空的Linuxsir!

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

装了xfce等wm,但是开不了,应该是xorg设置问题,help

[复制链接]
 楼主| 发表于 2005-8-14 13:55:00 | 显示全部楼层
这里是不是要改为显示器的名字?我现在在xfce下,我本来觉得xorg.conf应该没问题才能进xfce
Section "Monitor"

    Identifier  "My Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   30-71

#    HorizSync  30-64         # multisync
#    HorizSync  31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync  15-25, 30-50  # multiple ranges of sync frequencies
回复 支持 反对

使用道具 举报

发表于 2005-8-14 16:37:26 | 显示全部楼层
Identifier "My Monitor"

Make sure in the display section there is the same monitor identifier as here, or could you post your xorg.conf?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-14 17:12:14 | 显示全部楼层
This is my corg.conf
I just leave the default value bucause i dont know what type my display is

  1. # File generated by xorgconfig.

  2. #
  3. # Copyright 2004 The X.Org Foundation
  4. #
  5. # Permission is hereby granted, free of charge, to any person obtaining a
  6. # copy of this software and associated documentation files (the "Software"),
  7. # to deal in the Software without restriction, including without limitation
  8. # the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. # and/or sell copies of the Software, and to permit persons to whom the
  10. # Software is furnished to do so, subject to the following conditions:
  11. #
  12. # The above copyright notice and this permission notice shall be included in
  13. # all copies or substantial portions of the Software.
  14. #
  15. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  18. # The X.Org Foundation BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  19. # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
  20. # OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  21. # SOFTWARE.
  22. #
  23. # Except as contained in this notice, the name of The X.Org Foundation shall
  24. # not be used in advertising or otherwise to promote the sale, use or other
  25. # dealings in this Software without prior written authorization from
  26. # The X.Org Foundation.
  27. #

  28. # **********************************************************************
  29. # Refer to the xorg.conf(5x) man page for details about the format of
  30. # this file.
  31. # **********************************************************************

  32. # **********************************************************************
  33. # Module section -- this  section  is used to specify
  34. # which dynamically loadable modules to load.
  35. # **********************************************************************
  36. #
  37. Section "Module"

  38. # This loads the DBE extension module.

  39.     Load        "dbe"   # Double buffer extension

  40. # This loads the miscellaneous extensions module, and disables
  41. # initialisation of the XFree86-DGA extension within that module.
  42.     SubSection  "extmod"
  43.       Option    "omit xfree86-dga"   # don't initialise the DGA extension
  44.     EndSubSection

  45. # This loads the font modules
  46.     Load        "type1"
  47. #    Load        "speedo"
  48.     Load        "freetype"
  49. #    Load        "xtt"

  50. # This loads the GLX module
  51. #    Load       "glx"
  52. # This loads the DRI module
  53. #    Load       "dri"

  54. EndSection

  55. # **********************************************************************
  56. # Files section.  This allows default font and rgb paths to be set
  57. # **********************************************************************

  58. Section "Files"

  59. # The location of the RGB database.  Note, this is the name of the
  60. # file minus the extension (like ".txt" or ".db").  There is normally
  61. # no need to change the default.

  62.     RgbPath     "/usr/X11R6/lib/X11/rgb"

  63. # Multiple FontPath entries are allowed (which are concatenated together),
  64. # as well as specifying multiple comma-separated entries in one FontPath
  65. # command (or a combination of both methods)
  66. #
  67. #

  68.     FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
  69.     FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
  70.     FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
  71.     FontPath   "/usr/X11R6/lib/X11/fonts/CID/"
  72.     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
  73.     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
  74.     FontPath   "/usr/X11R6/lib/X11/fonts/local/"
  75. #    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
  76. #    FontPath   "/usr/X11R6/lib/X11/fonts/TrueType/"
  77. #    FontPath   "/usr/X11R6/lib/X11/fonts/freefont/"

  78. # The module search path.  The default path is shown here.

  79. #    ModulePath "/usr/X11R6/lib/modules"

  80. EndSection

  81. # **********************************************************************
  82. # Server flags section.
  83. # **********************************************************************

  84. Section "ServerFlags"

  85. # Uncomment this to cause a core dump at the spot where a signal is
  86. # received.  This may leave the console in an unusable state, but may
  87. # provide a better stack trace in the core dump to aid in debugging

  88. #    Option "NoTrapSignals"

  89. # Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
  90. # (where n is 1 through 12).  This allows clients to receive these key
  91. # events.

  92. #    Option "DontVTSwitch"

  93. # Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
  94. # This allows clients to receive this key event.

  95. #    Option "DontZap"

  96. # Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
  97. # sequences.  This allows clients to receive these key events.

  98. #    Option "Dont Zoom"

  99. # Uncomment this to disable tuning with the xvidtune client. With
  100. # it the client can still run and fetch card and monitor attributes,
  101. # but it will not be allowed to change them. If it tries it will
  102. # receive a protocol error.

  103. #    Option "DisableVidModeExtension"

  104. # Uncomment this to enable the use of a non-local xvidtune client.

  105. #    Option "AllowNonLocalXvidtune"

  106. # Uncomment this to disable dynamically modifying the input device
  107. # (mouse and keyboard) settings.

  108. #    Option "DisableModInDev"

  109. # Uncomment this to enable the use of a non-local client to
  110. # change the keyboard or mouse settings (currently only xset).

  111. #    Option "AllowNonLocalModInDev"

  112. EndSection

  113. # **********************************************************************
  114. # Input devices
  115. # **********************************************************************

  116. # **********************************************************************
  117. # Core keyboard's InputDevice section
  118. # **********************************************************************

  119. Section "InputDevice"

  120.     Identifier  "Keyboard1"
  121.     Driver      "kbd"

  122. # For most OSs the protocol can be omitted (it defaults to "Standard").
  123. # When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
  124. # uncomment the following line.

  125. #    Option     "Protocol"      "Xqueue"

  126.     Option "AutoRepeat" "500 30"

  127. # Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
  128. #    Option     "Xleds"      "1 2 3"

  129. #    Option "LeftAlt"     "Meta"
  130. #    Option "RightAlt"    "ModeShift"

  131. # To customise the XKB settings to suit your keyboard, modify the
  132. # lines below (which are the defaults).  For example, for a non-U.S.
  133. # keyboard, you will probably want to use:
  134. #    Option "XkbModel"    "pc105"
  135. # If you have a US Microsoft Natural keyboard, you can use:
  136. #    Option "XkbModel"    "microsoft"
  137. #
  138. # Then to change the language, change the Layout setting.
  139. # For example, a german layout can be obtained with:
  140. #    Option "XkbLayout"   "de"
  141. # or:
  142. #    Option "XkbLayout"   "de"
  143. #    Option "XkbVariant"  "nodeadkeys"
  144. #
  145. # If you'd like to switch the positions of your capslock and
  146. # control keys, use:
  147. #    Option "XkbOptions"  "ctrl:swapcaps"

  148. # These are the default XKB settings for Xorg
  149. #    Option "XkbRules"    "xorg"
  150. #    Option "XkbModel"    "pc105"
  151. #    Option "XkbLayout"   "us"
  152. #    Option "XkbVariant"  ""
  153. #    Option "XkbOptions"  ""

  154. #    Option "XkbDisable"

  155.     Option "XkbRules"   "xorg"
  156.     Option "XkbModel"   "pc101"
  157.     Option "XkbLayout"  "us"
  158.     Option "XkbVariant" "us"

  159. EndSection


  160. # **********************************************************************
  161. # Core Pointer's InputDevice section
  162. # **********************************************************************

  163. Section "InputDevice"

  164. # Identifier and driver

  165.     Identifier  "Mouse1"
  166.     Driver      "mouse"
  167.     Option "Protocol"    "Auto"
  168.     Option "Device"      "/dev/psaux"

  169. # Mouse-speed setting for PS/2 mouse.

  170. #    Option "Resolution"        "256"

  171. # When using XQUEUE, comment out the above two lines, and uncomment
  172. # the following line.

  173. #    Option "Protocol"  "Xqueue"

  174. # Baudrate and SampleRate are only for some Logitech mice. In
  175. # almost every case these lines should be omitted.

  176. #    Option "BaudRate"  "9600"
  177. #    Option "SampleRate"        "150"

  178. # Emulate3Buttons is an option for 2-button Microsoft mice
  179. # Emulate3Timeout is the timeout in milliseconds (default is 50ms)

  180.     Option "Emulate3Buttons"
  181. #    Option "Emulate3Timeout"    "50"

  182. # ChordMiddle is an option for some 3-button Logitech mice

  183. #    Option "ChordMiddle"

  184. EndSection


  185. # **********************************************************************
  186. # Other input device sections
  187. # this is optional and is required only if you
  188. # are using extended input devices.  This is for example only.  Refer
  189. # to the xorg.conf man page for a description of the options.
  190. # **********************************************************************
  191. #
  192. # Section "InputDevice"
  193. #    Identifier  "Mouse2"
  194. #    Driver      "mouse"
  195. #    Option      "Protocol"      "MouseMan"
  196. #    Option      "Device"        "/dev/psaux"
  197. # EndSection
  198. #
  199. # Section "InputDevice"
  200. #    Identifier "spaceball"
  201. #    Driver     "magellan"
  202. #    Option     "Device"        "/dev/cua0"
  203. # EndSection
  204. #
  205. # Section "InputDevice"
  206. #    Identifier "spaceball2"
  207. #    Driver     "spaceorb"
  208. #    Option     "Device"        "/dev/cua0"
  209. # EndSection
  210. #
  211. # Section "InputDevice"
  212. #    Identifier "touchscreen0"
  213. #    Driver     "microtouch"
  214. #    Option     "Device"        "/dev/ttyS0"
  215. #    Option     "MinX"          "1412"
  216. #    Option     "MaxX"          "15184"
  217. #    Option     "MinY"          "15372"
  218. #    Option     "MaxY"          "1230"
  219. #    Option     "ScreenNumber"  "0"
  220. #    Option     "ReportingMode" "Scaled"
  221. #    Option     "ButtonNumber"  "1"
  222. #    Option     "SendCoreEvents"
  223. # EndSection
  224. #
  225. # Section "InputDevice"
  226. #    Identifier "touchscreen1"
  227. #    Driver     "elo2300"
  228. #    Option     "Device"        "/dev/ttyS0"
  229. #    Option     "MinX"          "231"
  230. #    Option     "MaxX"          "3868"
  231. #    Option     "MinY"          "3858"
  232. #    Option     "MaxY"          "272"
  233. #    Option     "ScreenNumber"  "0"
  234. #    Option     "ReportingMode" "Scaled"
  235. #    Option     "ButtonThreshold"       "17"
  236. #    Option     "ButtonNumber"  "1"
  237. #    Option     "SendCoreEvents"
  238. # EndSection

  239. # **********************************************************************
  240. # Monitor section
  241. # **********************************************************************

  242. # Any number of monitor sections may be present

  243. Section "Monitor"

  244.     Identifier  "My Monitor"

  245. # HorizSync is in kHz unless units are specified.
  246. # HorizSync may be a comma separated list of discrete values, or a
  247. # comma separated list of ranges of values.
  248. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
  249. # USER MANUAL FOR THE CORRECT NUMBERS.

  250.     HorizSync   30-71

  251. #    HorizSync  30-64         # multisync
  252. #    HorizSync  31.5, 35.2    # multiple fixed sync frequencies
  253. #    HorizSync  15-25, 30-50  # multiple ranges of sync frequencies

  254. # VertRefresh is in Hz unless units are specified.
  255. # VertRefresh may be a comma separated list of discrete values, or a
  256. # comma separated list of ranges of values.
  257. # NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
  258. # USER MANUAL FOR THE CORRECT NUMBERS.

  259.     VertRefresh 50-160

  260. EndSection


  261. # **********************************************************************
  262. # Graphics device section
  263. # **********************************************************************

  264. # Any number of graphics device sections may be present

  265. # Standard VGA Device:

  266. Section "Device"
  267.     Identifier  "Standard VGA"
  268.     VendorName  "Unknown"
  269.     BoardName   "Unknown"

  270. # The chipset line is optional in most cases.  It can be used to override
  271. # the driver's chipset detection, and should not normally be specified.

  272. #    Chipset    "generic"

  273. # The Driver line must be present.  When using run-time loadable driver
  274. # modules, this line instructs the server to load the specified driver
  275. # module.  Even when not using loadable driver modules, this line
  276. # indicates which driver should interpret the information in this section.

  277.     Driver     "vga"
  278. # The BusID line is used to specify which of possibly multiple devices
  279. # this section is intended for.  When this line isn't present, a device
  280. # section can only match up with the primary video device.  For PCI
  281. # devices a line like the following could be used.  This line should not
  282. # normally be included unless there is more than one video device
  283. # intalled.

  284. #    BusID      "PCI:0:10:0"

  285. #    VideoRam   256

  286. #    Clocks     25.2 28.3

  287. EndSection

  288. # Device configured by xorgconfig:

  289. Section "Device"
  290.     Identifier  "** NVIDIA (generic)                   [nv]"
  291.     Driver      "nv"
  292.     #VideoRam    32768
  293.     # Insert Clocks lines here if appropriate
  294. EndSection


  295. # **********************************************************************
  296. # Screen sections
  297. # **********************************************************************

  298. # Any number of screen sections may be present.  Each describes
  299. # the configuration of a single screen.  A single specific screen section
  300. # may be specified from the X server command line with the "-screen"
  301. # option.
  302. Section "Screen"
  303.     Identifier  "Screen 1"
  304.     Device      "** NVIDIA (generic)                   [nv]"
  305.     Monitor     "My Monitor"
  306.     DefaultDepth 24

  307.     Subsection "Display"
  308.         Depth       8
  309.         Modes       "1280x1024" "1024x768" "800x600" "640x480"
  310.         ViewPort    0 0
  311.         Virtual     1600 1280
  312.     EndSubsection
  313.     Subsection "Display"
  314.         Depth       16
  315.         Modes       "1280x1024" "1024x768" "800x600" "640x480"
  316.         ViewPort    0 0
  317.         Virtual     1280 1024
  318.     EndSubsection
  319.     Subsection "Display"
  320.         Depth       24
  321.         Modes       "1024x768"
  322.         ViewPort    0 0
  323.         Virtual     1152 900
  324.     EndSubsection
  325. EndSection

  326. # **********************************************************************
  327. # ServerLayout sections.
  328. # **********************************************************************

  329. # Any number of ServerLayout sections may be present.  Each describes
  330. # the way multiple screens are organised.  A specific ServerLayout
  331. # section may be specified from the X server command line with the
  332. # "-layout" option.  In the absence of this, the first section is used.
  333. # When now ServerLayout section is present, the first Screen section
  334. # is used alone.

  335. Section "ServerLayout"

  336. # The Identifier line must be present
  337.     Identifier  "Simple Layout"

  338. # Each Screen line specifies a Screen section name, and optionally
  339. # the relative position of other screens.  The four names after
  340. # primary screen name are the screens to the top, bottom, left and right
  341. # of the primary screen.  In this example, screen 2 is located to the
  342. # right of screen 1.

  343.     Screen "Screen 1"

  344. # Each InputDevice line specifies an InputDevice section name and
  345. # optionally some options to specify the way the device is to be
  346. # used.  Those options include "CorePointer", "CoreKeyboard" and
  347. # "SendCoreEvents".

  348.     InputDevice "Mouse1" "CorePointer"
  349.     InputDevice "Keyboard1" "CoreKeyboard"

  350. EndSection

  351. # Section "DRI"
  352. #    Mode 0666
  353. # EndSection

复制代码
回复 支持 反对

使用道具 举报

发表于 2005-8-14 21:41:48 | 显示全部楼层
看的好累哦。。。用hwd生成一下吧?
没有打开dri,
Section "ServerLayout"
        Identifier     "XFree86 Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
device那段。。。
standart vga可以不要。。。把nvidia用回screen 0...试试。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-15 16:49:46 | 显示全部楼层
我用hwd生成了一个sample,发现对nv驱动支持好了,还有,也支持我的滚轮鼠了,原来支持的不好,但是,要启动kde还是不行,和原来的错误一样,大概是unable to open display ''
回复 支持 反对

使用道具 举报

发表于 2005-8-19 20:53:18 | 显示全部楼层
检查过rc.conf和hosts的内容吗? hostname有没有设置(我不敢确认这会带来什么问题,只是可能)?
回复 支持 反对

使用道具 举报

发表于 2005-8-26 09:38:25 | 显示全部楼层
我用xfce后又安装了kde,一开始也是startkde无法启动,后来在kde的bin目录下运行kdm,设置启动类型为kde,就可以了
回复 支持 反对

使用道具 举报

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

本版积分规则

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