nvidia driver 怪事

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

nvidia driver 怪事

文章zerng07 » 週一 6月 18, 2007 12:12 am

今天一如往常將 debian 更新,有更新到 x-server,然後突然間想執行 beryl ,只見螢幕一陣黑,X 就掛了!重開機一看,進不了 X ,startx 的結果是

(EE) Failed to load module "nvidia" (module does not exist, 0)
(EE) No drivers available.
Fatal server error:
no screens found

我把 /etc/X11/xorg.conf 中的 nvidia 改成 nv 就正常了,但是,我的 nvidia driver 去哪了?怪怪。重裝 nvidia 驅動程式,過程很成功,沒有任何錯誤,但是 startx 結果仍然沒變!

完整的 log 如下:

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Linux Debian
Current Operating System: Linux debian 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686
Build Date: 01 June 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Jun 17 21:27:41 2007
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) | |-->Monitor "15 LCD"
(**) | |-->Device "nVidia Corporation NV31 [GeForce FX 5600XT]"
(**) |-->Input Device "Generic Keyboard"
(**) |-->Input Device "Configured Mouse"
(WW) Including the default font path /usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType.
(**) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi:unscaled,
/usr/share/fonts/X11/75dpi:unscaled,
/usr/share/fonts/X11/Type1,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
/usr/local/share/fonts,
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/cyrillic,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
(==) RgbPath set to "/etc/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(**) Extension "Composite" is enabled
(WW) Ignoring unrecognized extension "AddARGBGLXVisuals"
(II) Open ACPI successful (/var/run/acpid.socket)
(II) Loader magic: 0x81e5f60
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 1.2
X.Org XInput driver : 0.7
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on linux
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 1.2
(++) using VT number 8

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 1106,3128 card 1106,b002 rev 01 class 06,00,00 hdr 00
(II) PCI: 00:01:0: chip 1106,b091 card 0000,0000 rev 00 class 06,04,00 hdr 01
(II) PCI: 00:08:0: chip 1106,3106 card 1106,0105 rev 86 class 02,00,00 hdr 00
(II) PCI: 00:0c:0: chip 13f6,0111 card 13f6,0111 rev 10 class 04,01,00 hdr 00
(II) PCI: 00:0f:0: chip 105a,0d30 card 105a,4d33 rev 02 class 01,04,00 hdr 00
(II) PCI: 00:11:0: chip 1106,3074 card 1106,b002 rev 00 class 06,01,00 hdr 80
(II) PCI: 00:11:1: chip 1106,0571 card 1106,b002 rev 06 class 01,01,8a hdr 00
(II) PCI: 00:11:2: chip 1106,3038 card 1106,b002 rev 1b class 0c,03,00 hdr 00
(II) PCI: 00:11:3: chip 1106,3038 card 1106,b002 rev 1b class 0c,03,00 hdr 00
(II) PCI: 00:11:4: chip 1106,3038 card 1106,b002 rev 1b class 0c,03,00 hdr 00
(II) PCI: 01:00:0: chip 10de,0314 card 0000,0000 rev a1 class 03,00,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,1), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
[0] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) Bus 0 non-prefetchable memory range:
[0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
[0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B]
(II) PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x000c (VGA_EN is set)
(II) Bus 1 non-prefetchable memory range:
[0] -1 0 0xe8000000 - 0xe9ffffff (0x2000000) MX[B]
(II) Bus 1 prefetchable memory range:
[0] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[B]
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:17:0), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set)
(--) PCI:*(1:0:0) nVidia Corporation NV31 [GeForce FX 5600XT] rev 161, Mem @ 0xe8000000/24, 0xd0000000/28
(II) Addressable bus resource ranges are
[0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B]
[1] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[B]
(II) OS-reported resource ranges:
[0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[5] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
(II) PCI Memory resource overlap reduced 0xe0000000 from 0xe7ffffff to 0xdfffffff
(II) Active PCI resource ranges:
[0] -1 0 0x30000000 - 0x3000ffff (0x10000) MX[B]
[1] -1 0 0xeb000000 - 0xeb01ffff (0x20000) MX[B]
[2] -1 0 0xeb020000 - 0xeb0200ff (0x100) MX[B]
[3] -1 0 0xe0000000 - 0xdfffffff (0x0) MX[B]O
[4] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[B](B)
[5] -1 0 0xe8000000 - 0xe8ffffff (0x1000000) MX[B](B)
[6] -1 0 0x00008800 - 0x0000881f (0x20) IX[B]
[7] -1 0 0x00008400 - 0x0000841f (0x20) IX[B]
[8] -1 0 0x00008000 - 0x0000801f (0x20) IX[B]
[9] -1 0 0x00007c00 - 0x00007c0f (0x10) IX[B]
[10] -1 0 0x00007800 - 0x0000783f (0x40) IX[B]
[11] -1 0 0x00007400 - 0x00007403 (0x4) IX[B]
[12] -1 0 0x00007000 - 0x00007007 (0x8) IX[B]
[13] -1 0 0x00006c00 - 0x00006c03 (0x4) IX[B]
[14] -1 0 0x00006800 - 0x00006807 (0x8) IX[B]
[15] -1 0 0x00006400 - 0x000064ff (0x100) IX[B]
[16] -1 0 0x00006000 - 0x000060ff (0x100) IX[B]
(II) Active PCI resource ranges after removing overlaps:
[0] -1 0 0x30000000 - 0x3000ffff (0x10000) MX[B]
[1] -1 0 0xeb000000 - 0xeb01ffff (0x20000) MX[B]
[2] -1 0 0xeb020000 - 0xeb0200ff (0x100) MX[B]
[3] -1 0 0xe0000000 - 0xdfffffff (0x0) MX[B]O
[4] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[B](B)
[5] -1 0 0xe8000000 - 0xe8ffffff (0x1000000) MX[B](B)
[6] -1 0 0x00008800 - 0x0000881f (0x20) IX[B]
[7] -1 0 0x00008400 - 0x0000841f (0x20) IX[B]
[8] -1 0 0x00008000 - 0x0000801f (0x20) IX[B]
[9] -1 0 0x00007c00 - 0x00007c0f (0x10) IX[B]
[10] -1 0 0x00007800 - 0x0000783f (0x40) IX[B]
[11] -1 0 0x00007400 - 0x00007403 (0x4) IX[B]
[12] -1 0 0x00007000 - 0x00007007 (0x8) IX[B]
[13] -1 0 0x00006c00 - 0x00006c03 (0x4) IX[B]
[14] -1 0 0x00006800 - 0x00006807 (0x8) IX[B]
[15] -1 0 0x00006400 - 0x000064ff (0x100) IX[B]
[16] -1 0 0x00006000 - 0x000060ff (0x100) IX[B]
(II) OS-reported resource ranges after removing overlaps with PCI:
[0] -1 0 0x00100000 - 0x2fffffff (0x2ff00000) MX[B]E(B)
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[5] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
(II) All system resource ranges:
[0] -1 0 0x00100000 - 0x2fffffff (0x2ff00000) MX[B]E(B)
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0x30000000 - 0x3000ffff (0x10000) MX[B]
[5] -1 0 0xeb000000 - 0xeb01ffff (0x20000) MX[B]
[6] -1 0 0xeb020000 - 0xeb0200ff (0x100) MX[B]
[7] -1 0 0xe0000000 - 0xdfffffff (0x0) MX[B]O
[8] -1 0 0xd0000000 - 0xdfffffff (0x10000000) MX[B](B)
[9] -1 0 0xe8000000 - 0xe8ffffff (0x1000000) MX[B](B)
[10] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[11] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
[12] -1 0 0x00008800 - 0x0000881f (0x20) IX[B]
[13] -1 0 0x00008400 - 0x0000841f (0x20) IX[B]
[14] -1 0 0x00008000 - 0x0000801f (0x20) IX[B]
[15] -1 0 0x00007c00 - 0x00007c0f (0x10) IX[B]
[16] -1 0 0x00007800 - 0x0000783f (0x40) IX[B]
[17] -1 0 0x00007400 - 0x00007403 (0x4) IX[B]
[18] -1 0 0x00007000 - 0x00007007 (0x8) IX[B]
[19] -1 0 0x00006c00 - 0x00006c03 (0x4) IX[B]
[20] -1 0 0x00006800 - 0x00006807 (0x8) IX[B]
[21] -1 0 0x00006400 - 0x000064ff (0x100) IX[B]
[22] -1 0 0x00006000 - 0x000060ff (0x100) IX[B]
(II) LoadModule: "ddc"(II) Module already built-in
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.0
ABI class: X.Org Server Extension, version 0.3
(II) Loading extension XFree86-DRI
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.3
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "freetype"
(II) Loading /usr/lib/xorg/modules//fonts/libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
compiled for 1.3.0, module version = 2.1.0
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.5
(II) Loading font FreeType
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
compiled for 4.0.2, module version = 1.0.8776
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.1
(II) Loading extension GLX
(II) LoadModule: "int10"
(II) Loading /usr/lib/xorg/modules//libint10.so
(II) Module int10: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 1.2
(II) LoadModule: "vbe"
(II) Loading /usr/lib/xorg/modules//libvbe.so
(II) Module vbe: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.1.0
ABI class: X.Org Video Driver, version 1.2
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.3
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "type1"
(II) Loading /usr/lib/xorg/modules//fonts/libtype1.so
(II) Module type1: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.2
Module class: X.Org Font Renderer
ABI class: X.Org Font Renderer, version 0.5
(II) Loading font Type1
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 0.3
(II) Loading extension RECORD
(II) LoadModule: "nvidia"
(WW) Warning, couldn't open module nvidia
(II) UnloadModule: "nvidia"
(EE) Failed to load module "nvidia" (module does not exist, 0)
(II) LoadModule: "kbd"
(II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
compiled for 7.1.1, module version = 1.1.0
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.6
(II) LoadModule: "mouse"
(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
compiled for 7.1.1, module version = 1.1.1
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 0.6
(EE) No drivers available.

Fatal server error:
no screens found
zerng07
可愛的小學生
可愛的小學生
 
文章: 15
註冊時間: 週六 5月 19, 2007 7:17 pm
來自: Chia-yi

文章claudwu » 週一 6月 18, 2007 2:00 am

先lsmod |grep nvidia
看看有沒有東西吧...

如果沒有手動掛載看看...
claudwu
懵懂的國中生
懵懂的國中生
 
文章: 156
註冊時間: 週二 3月 29, 2005 5:33 pm

文章訪客 » 週一 6月 18, 2007 2:11 am

請重新 compile nvidia non-free kernel driver

nv 是 free 的, 沒有 3D
訪客
 

文章cshjssy » 週一 6月 18, 2007 9:43 am

昨天更新後,也遇到同樣的情況

系統是testing,用aptitude更新後
一些程式如mplayer、pidgin跑起來就停在那不會動

從開機後X就進不去了,問題同樣是說找不到nvidia driver
下lsmod一看,果然沒看到nvidia driver
掛上nvidia driver後,重新起動X (/etc/init.d/gdm restart)
.....還是找不到nvidia driver

之後重新安裝nvidia-kernel(1.0.8776+6版) ..不行,同樣找不到nvidia driver
使用m-a來compile nvidia-kernel-source,再安裝(1.0.8776-4版) ..同樣的問題

目前只好暫用nv了...
cshjssy
可愛的小學生
可愛的小學生
 
文章: 55
註冊時間: 週四 7月 15, 2004 5:45 pm
來自: 新竹

文章訪客 » 週一 6月 18, 2007 9:54 am

這是 known bug of xserver-xorg-core

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420523
訪客
 

文章Lost-Angel » 週一 6月 18, 2007 2:27 pm

真是奇怪,我的 Debian testing 最近也是升級了 x server 但是我自行由 nVidia 官方網站下載安裝的 module 卻可以正常的被載入,且整個 X 系統似乎都沒有問題。惟獨系統好像每執行到有 3D 繪圖的軟體就會整個 Crash 掉... >_<(我沒有用 Beryl)。連本來正常無誤的 Google Earth 也都不能用了。

我目前的 Xserver 版本是 1:7.2-3,依照樓上那位前輩給的連結頁面好像說這不是 Xorg 的 Bug 而是 nVidia Driver 的。所以他不會做任何動作... @_@
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章訪客 » 週一 6月 18, 2007 4:07 pm

nvidia-glx 也要重 compile 啊
抓 source package nvidia-graphics-drivers
整個 rebuild 這樣
訪客
 

文章Lost-Angel » 週一 6月 18, 2007 7:00 pm

Anonymous 寫:nvidia-glx 也要重 compile 啊
抓 source package nvidia-graphics-drivers
整個 rebuild 這樣

感謝前輩指點,我正在懷疑我的問題應該和這個不一樣,我的系統沒有安裝 nvidia-glx 套件,而是直接下載 nVidia 官方的 display card driver 下來讓他自動編譯安裝的。我的系統開機後 nvidia 驅動模組確實有被正確的載入... @_@。而且,根據該 Bug Report 顯示出現的版本是 2:1.3.0.0.dfsg-2。
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章zerng07 » 週一 6月 18, 2007 10:18 pm

Anonymous 寫:這是 known bug of xserver-xorg-core

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420523


照這樣看來,只能等 Debian 更新 nvidia-kernel 囉。要不然就是自己編譯,但是我以前從來沒成功過.........
zerng07
可愛的小學生
可愛的小學生
 
文章: 15
註冊時間: 週六 5月 19, 2007 7:17 pm
來自: Chia-yi

文章Lost-Angel » 週二 6月 19, 2007 2:13 pm

經過了小生的一翻測試,終於找出解決方法了。原因其實出在於 nVidia 的驅動模組放錯地方,導致於 Xorg 找不到它所以載入失敗,他到底是放到哪裡去我也不太清楚,不過正確的目錄應該是 /usr/lib/xorg/modules,所以若使用 nVidia 官方所提供的驅動模組安裝程式的話,只要在執行安裝時,帶入如下參數:
代碼: 選擇全部
--x-module-path=/usr/lib/xorg/modules

這樣就可以成功的讓 Xorg 抓到 nVidia Driver 並一切通通恢復正常了。至於使用 Debian 官方包的 nVidia Driver 套件包者,可能就真的必須等官方更新了該包包才能夠恢復正常了吧,或者自行重新打包...
The most beautiful thing we can experience is mysterious.
It is the source of all true art and science.

--- Albert Einstein, 1930
頭像
Lost-Angel
活潑的高中生
活潑的高中生
 
文章: 265
註冊時間: 週二 1月 25, 2005 1:29 am
來自: 臺灣民國高雄縣

文章claudwu » 週四 6月 21, 2007 4:04 am

酷!
迷路天使大你超酷的!!
claudwu
懵懂的國中生
懵懂的國中生
 
文章: 156
註冊時間: 週二 3月 29, 2005 5:33 pm

文章阿信 » 週二 6月 26, 2007 11:11 am

請參閱
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428580

在/usr/lib/xorg/modules/drivers目錄下執行
gcc -shared nvidia_drv.o -o nvidia_drv.so

這樣就可以了
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

文章訪客 » 週二 6月 26, 2007 11:52 pm

阿信 寫:在/usr/lib/xorg/modules/drivers目錄下執行
gcc -shared nvidia_drv.o -o nvidia_drv.so

如果是用 amd64,請參考
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420177
訪客
 


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客