LinuxSir.cn,穿越时空的Linuxsir!

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

為何Xorg長期佔用CPU使用率這麼高?

[复制链接]
 楼主| 发表于 2006-10-21 00:28:04 | 显示全部楼层
我用dpkg-divert解決了clashing問題,但當我按wiki.debian.org的步驟做時, 不能啟動xorg了....不知是否xorg.conf設定出錯, 問題出自那裏? 怎樣重配置xorg.conf? 這種情況如何解決好? 當我一啟動startx就黑屏了, 看了精華區, 但實際不知道怎樣設定. 我的xorg.conf如下
  1. # nvidia-xconfig: X configuration file generated by nvidia-xconfig
  2. # nvidia-xconfig:  version 1.0  (randy@juliet2)  Fri Dec 30 21:53:37 PST 2005
  3. # /etc/X11/xorg.conf (xorg X Window System server configuration file)
  4. #
  5. # This file was generated by dexconf, the Debian X Configuration tool, using
  6. # values from the debconf database.
  7. #
  8. # Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
  9. # (Type "man /etc/X11/xorg.conf" at the shell prompt.)
  10. #
  11. # This file is automatically updated on xserver-xorg package upgrades *only*
  12. # if it has not been modified since the last upgrade of the xserver-xorg
  13. # package.
  14. #
  15. # If you have edited this file but would like it to be automatically updated
  16. # again, run the following command:
  17. #   sudo dpkg-reconfigure -phigh xserver-xorg
  18. Section "ServerLayout"
  19.     Identifier     "Default Layout"
  20.     Screen         "Default Screen" 0 0
  21.     InputDevice    "Generic Keyboard"
  22.     InputDevice    "Configured Mouse"
  23. EndSection
  24. Section "Files"
  25.         # path to defoma fonts
  26.     FontPath        "/usr/share/fonts/X11/misc"
  27.     FontPath        "/usr/X11R6/lib/X11/fonts/misc"
  28.     FontPath        "/usr/share/fonts/X11/cyrillic"
  29.     FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
  30.     FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
  31.     FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
  32.     FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
  33.     FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
  34.     FontPath        "/usr/share/fonts/X11/Type1"
  35.     FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
  36.     FontPath        "/usr/share/fonts/X11/100dpi"
  37.     FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
  38.     FontPath        "/usr/share/fonts/X11/75dpi"
  39.     FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
  40.     FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
  41. EndSection
  42. Section "Module"
  43.     Load           "i2c"
  44.     Load           "bitmap"
  45.     Load           "ddc"
  46.     Load           "extmod"
  47.     Load           "freetype"
  48.     Load           "glx"
  49.     Load           "int10"
  50.     Load           "type1"
  51.     Load           "vbe"
  52. EndSection
  53. Section "InputDevice"
  54.     Identifier     "Generic Keyboard"
  55.     Driver         "kbd"
  56.     Option         "CoreKeyboard"
  57.     Option         "XkbRules" "xorg"
  58.     Option         "XkbModel" "pc104"
  59.     Option         "XkbLayout" "us"
  60. EndSection
  61. Section "InputDevice"
  62.     Identifier     "Configured Mouse"
  63.     Driver         "mouse"
  64.     Option         "CorePointer"
  65.     Option         "Device" "/dev/input/mice"
  66.     Option         "Protocol" "ExplorerPS/2"
  67.     Option         "Emulate3Buttons" "true"
  68. EndSection
  69. Section "Monitor"
  70.     Identifier     "Generic Monitor"
  71.     HorizSync       28.0 - 64.0
  72.     VertRefresh     43.0 - 60.0
  73.     Option         "DPMS"
  74. EndSection
  75. Section "Device"
  76.     Identifier     "Generic Video Card"
  77.     Driver         "nvidia"
  78. EndSection
  79. Section "Screen"
  80.     Identifier     "Default Screen"
  81.     Device         "Generic Video Card"
  82.     Monitor        "Generic Monitor"
  83.     DefaultDepth    24
  84.     SubSection     "Display"
  85.         Depth       1
  86.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  87.     EndSubSection
  88.     SubSection     "Display"
  89.         Depth       4
  90.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  91.     EndSubSection
  92.     SubSection     "Display"
  93.         Depth       8
  94.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  95.     EndSubSection
  96.     SubSection     "Display"
  97.         Depth       15
  98.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  99.     EndSubSection
  100.     SubSection     "Display"
  101.         Depth       16
  102.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  103.     EndSubSection
  104.     SubSection     "Display"
  105.         Depth       24
  106.         Modes      "1280x1024" "1024x768" "800x600" "640x480"
  107.     EndSubSection
  108. EndSection
复制代码
現在我只能使用linux single mode & winXP. 應該怎樣設定好?還是其它問題?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-21 02:21:47 | 显示全部楼层
看似問題又來了,我將xorg.conf內的nvidia改為nv就行了,為甚麼?但nvidia為closed source, nv為open source,有問題嗎?還有就是在Xorg.0.log找到EE
  1. (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
  2. error opening security policy file /etc/X11/xserver/SecurityPolicy
复制代码
是怎樣一回事?還有就是不能經xserver-xorg修改xorg.conf,為甚麼?
  1. debian:~# dpkg-reconfigure xserver-xorg
  2. xserver-xorg postinst warning: not updating /etc/X11/X; file has been
  3.    customized
复制代码
終於,雖然入到KDE,但問題似是存在,不能初始化GLX extension,在我啟動nvidia-settings時,也不能檢查到我有GPU
  1. debian:~# nvidia-settings
  2. ERROR: NV-CONTROL extension not found on this Display.
  3. ERROR: Unable to determine number of NVIDIA GPUs on ':0.0'.
  4. ERROR: Unable to determine number of NVIDIA Frame Lock Devices on ':0.0'.
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-10-21 11:27:05 | 显示全部楼层
nv没3D加速的
尝试下:

  1. rmmod nvidia
  2. modprobe nvidia
  3. dpkg-reconfigure nvidia-glx
复制代码

你的显示器刷新率参数有些低,应该不是真实值,装上hwinfo测一下

  1. hwinfo --monitor
复制代码


完了后,重配下xserver

  1. [color="Magenta"]
  2. # If you have edited this file but would like it to be automatically updated
  3. # again, run the following command:
  4. #   sudo dpkg-reconfigure -phigh xserver-xorg
  5. [/color]
  6. dpkg-reconfigure -phigh xserver-xorg
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-21 12:03:08 | 显示全部楼层
不行。。。一但hwinfo --monitor後,即時黑屏。。我用的是Samsung 920T model。不能修改xserver-xorg
  1. debian:~# dpkg-reconfigure xserver-xorg
  2. xserver-xorg postinst warning: not updating /etc/X11/X; file has been
  3.    customized
复制代码
現在我只能硬性修改xorg中的nvidia為nv才開到Debian,nvidia時即全黑屏。還有就是為甚麼當我dpkg-reconfigure xserver-xorg時,出現
  1. ┌───────────────────────┤ Configuring xserver-xorg ├────────────────────────┐
  2. │                                                                           │
  3. │ No X server known for your video hardware                                 │
  4. │                                                                           │
  5. │ There is either no video hardware installed on this machine (e.g. serial  │
  6. │ console only), or the "discover" program was unable to determine which X  │
  7. │ server is appropriate for the video hardware.  This could be due to       │
  8. │ incomplete information in discover's hardware database, or because your   │
  9. │ video hardware is not supported by the available X servers.               │
  10. │                                                                           │
  11. │                                  <Ok>                                     │
  12. │                                                                           │
  13. └───────────────────────────────────────────────────────────────────────────┘
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-10-21 12:42:22 | 显示全部楼层
hwinfo --monitor後,即時黑屏

直接在网上找参数好了

  1. md5sum /etc/X11/xorg.conf >/var/lib/x11/xorg.conf.md5sum
  2. dpkg-reconfigure -phigh xserver-xorg
复制代码

可能显卡新了些,还不行的话到nvidia.com下beta版本的9625或者装experimental里的9625
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-21 13:12:25 | 显示全部楼层
Post by completist
直接在网上找参数好了

  1. md5sum /etc/X11/xorg.conf >/var/lib/x11/xorg.conf.md5sum
  2. dpkg-reconfigure -phigh xserver-xorg
复制代码

可能显卡新了些,还不行的话到nvidia.com下beta版本的9625或者装experimental里的9625

Just wonder why the srceen is black after `nvidia-xconfig`. And xserver-xorg cannot detect my graphic card. It's NVidia GeForce FX 5900XT.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-22 00:39:25 | 显示全部楼层
It's very very easy to use official program to install nvidia driver. I wonder why it's very difficult to install in Debian way. But there're some problems through the installing of nvidia. It reported that
  1. WARNING: You appear to be using a modular X.Org release, but nvidia-installer
  2.          was unable to determine the correct X library installation path with
  3.          the `pkg-config` utility.  Please install the X.Org SDK/development
  4.          package for your distribution.
  5. WARNING: nvidia-installer was unable to determine the correct X library
  6.          installation path and will install the NVIDIA X libraries to
  7.          '/usr/lib'.
  8. WARNING: You appear to be using a modular X.Org release, but nvidia-installer
  9.          was unable to determine the correct X module installation path with
  10.          the `pkg-config` utility.  Please install the X.Org SDK/development
  11.          package for your distribution.
  12. WARNING: nvidia-installer was unable to determine the correct X module
  13.          installation path and will install the NVIDIA X driver components to
  14.          '/usr/lib/xorg/modules'.  If X fails to find the NVIDIA X driver
  15.          module, please correct any `pkg-config` problems warned about earlier
  16.          and reinstall the driver.
复制代码
I wanna know what the problems is it.
-----------------------------------------
Oh! I can start X after installing nvidia driver(official). But I cannot start X after rebooting. The Screen turn black again!!! What's the matter?
回复 支持 反对

使用道具 举报

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

本版积分规则

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