+ -
当前位置:首页 → 问答吧 → [已经解决]关于NVIDIA 驱动 Xorg的问题求助

[已经解决]关于NVIDIA 驱动 Xorg的问题求助

时间:2009-10-10

来源:互联网

首先,我已经用了足够多的时间来GOOGLE和百度这个问题,网上的解答大多与官方手册的方法一样,都无法解决我遇到的问题,不过这里还是先把这个方法写在下面

1. eselect kernel set 1 (我的内核编号是1, 用eselect kernel list 查看的)
2. 确保内核选项正确设置,我的已经正确了。
3. ermerge nvidia-drivers
modprode nvidia
lsmod | grep nvidia (已经有了nvidia了)
update-modules
env-update
source /etc/profile

4. Xorg -configure (生成了xorg.config.new)
5. 修改xorg.config.new , 加上 DefaultDepth 24
6. X -config xorg.conf.new



第6步就报错了,我重新编译后依然不行,我用的是 gentoo 2008 ,nvidia驱动版本是180.60 我的电脑(DELL D830)的显卡是nvidia NVS 140M CPU是t9300

报错如下:

(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "dri2" (module does not exist, 0)

我看了一下日志,里面有这样的内容:

......
(II) "dri" will be loaded by default.
(II) "dri2" will be loaded by default.
......
(II) LoadModule: "dri"
(WW) Warning, couldn't open modele dri
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (module does not exist, 0)
(II) LoadModule: "dri2"
(WW) Warning, couldn't open modele dri
(II) UnloadModule: "dri2"
(EE) Failed to load module "dri2" (module does not exist, 0)


该如何解决这个问题呢?先在这里谢谢了。

在线等答案 ,我的gtalk: javazyf#gmail.com MSN: z.y.f#msn.com

作者: zyflxr   发布时间: 2009-10-10

你是 X 不显示东西还是自动退出了?有装kde或者gnome或者其他桌面管理器吗?我的X也不显示但是安装好kde就可以进kde了。
xorg.conf 要自己根据硬件配置的我的,笔记本dell 1200 intel 965 x3100 1280*800分辨率
//etc/X11/xorg.conf
------------------------------------------------------------------------------------
代码:
Section "ServerLayout"
 Identifier "X.org Configured"
 Screen 0 "Screen0" 0 0
EndSection

Section "Files"
 ModulePath "/usr/lib/xorg/modules"
 FontPath "/usr/share/fonts/misc/"
 FontPath "/usr/share/fonts/TTF/"
 FontPath "/usr/share/fonts/OTF"
 FontPath "/usr/share/fonts/Type1/"
 FontPath "/usr/share/fonts/100dpi/"
 FontPath "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
 Load "glx"
 Load "extmod"
 Load "xtrap"
 Load "record"
 Load "GLcore"
 Load "dbe"
 Load "dri"
EndSection

Section "Monitor"
 Identifier "Monitor0"
 VendorName "LCD"
 ModelName "58eb"
 Option "DPMS"
 HorizSync 49.68-83.46
 VertRefresh 60.0-60.0
 Modeline "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
EndSection

Section "Device"
 Identifier "Card0"
 Driver "intel"
 VendorName "Intel Corporation"
 BoardName "Mobile Integrated Graphics Controller"
 BusID "PCI:0:2:0"
 Option "XAANoOffscreenPixmaps" "true"
 Option "DRI" "true"
EndSection

Section "Screen"
 Identifier "Screen0"
 Device "Card0"
 Monitor "Monitor0"
 DefaultDepth 24
 Option "AddARGBGLXVisuals" "true"
 SubSection "Display"
 Viewport 0 0
 Depth 24
 Modes "1280x800" 
 EndSubSection
EndSection

Section "DRI"
 Mode 0666
EndSection

section "Extensions"
 Option "Composite" "Enable"
Endsection

作者: zrael   发布时间: 2009-10-10

你是哪个版本的内核?
我用同样的显卡,好像180.60在31以后的内核就不行了
你试试看unmask190.18的驱动装上行不行

作者: jamesgt   发布时间: 2009-10-10

引用:
作者: zrael
你是 X 不显示东西还是自动退出了?有装kde或者gnome或者其他桌面管理器吗?我的X也不显示但是安装好kde就可以进kde了。
xorg.conf 要自己根据硬件配置的我的,笔记本dell 1200 intel 965 x3100 1280*800分辨率
//etc/X11/xorg.conf
------------------------------------------------------------------------------------
代码:
Section "ServerLayout"
 Identifier "X.org Configured"
 Screen 0 "Screen0" 0 0
EndSection

Section "Files"
 ModulePath "/usr/lib/xorg/modules"
 FontPath "/usr/share/fonts/misc/"
 FontPath "/usr/share/fonts/TTF/"
 FontPath "/usr/share/fonts/OTF"
 FontPath "/usr/share/fonts/Type1/"
 FontPath "/usr/share/fonts/100dpi/"
 FontPath "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
 Load "glx"
 Load "extmod"
 Load "xtrap"
 Load "record"
 Load "GLcore"
 Load "dbe"
 Load "dri"
EndSection

Section "Monitor"
 Identifier "Monitor0"
 VendorName "LCD"
 ModelName "58eb"
 Option "DPMS"
 HorizSync 49.68-83.46
 VertRefresh 60.0-60.0
 Modeline "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
EndSection

Section "Device"
 Identifier "Card0"
 Driver "intel"
 VendorName "Intel Corporation"
 BoardName "Mobile Integrated Graphics Controller"
 BusID "PCI:0:2:0"
 Option "XAANoOffscreenPixmaps" "true"
 Option "DRI" "true"
EndSection

Section "Screen"
 Identifier "Screen0"
 Device "Card0"
 Monitor "Monitor0"
 DefaultDepth 24
 Option "AddARGBGLXVisuals" "true"
 SubSection "Display"
 Viewport 0 0
 Depth 24
 Modes "1280x800" 
 EndSubSection
EndSection

Section "DRI"
 Mode 0666
EndSection

section "Extensions"
 Option "Composite" "Enable"
Endsection
X不显示 ,但的确是有错误,估计不可以进GDM。谢谢你的解答。

作者: zyflxr   发布时间: 2009-10-10

引用:
作者: jamesgt
你是哪个版本的内核?
我用同样的显卡,好像180.60在31以后的内核就不行了
你试试看unmask190.18的驱动装上行不行
我的内核版本是 2.6.30-gentoo-r6

我正在试unmask190.18的驱动。谢谢。

作者: zyflxr   发布时间: 2009-10-10

引用:
作者: zyflxr

我看了一下日志,里面有这样的内容:

......
(II) "dri" will be loaded by default.
(II) "dri2" will be loaded by default.
......
(II) LoadModule: "dri"
(WW) Warning, couldn't open modele dri
(II) UnloadModule: "dri"
(EE) Failed to load module "dri" (module does not exist, 0)
(II) LoadModule: "dri2"
(WW) Warning, couldn't open modele dri
(II) UnloadModule: "dri2"
(EE) Failed to load module "dri2" (module does not exist, 0)

从什么地方看日志?
用不用专门的软件?
我没装手册里推荐的那个什么日志工具,我现在能看日志吗?

作者: tomguy   发布时间: 2009-10-10

引用:
作者: jamesgt
你是哪个版本的内核?
我用同样的显卡,好像180.60在31以后的内核就不行了
你试试看unmask190.18的驱动装上行不行
这个方法不能解决问题,谢谢

作者: zyflxr   发布时间: 2009-10-11

Make sure that you have installed

x11-drivers/xf86-video-nv

The following lines should be in the /etc/X11/xorg.conf.

代码:
Section "Device"
 Identifier "Videocard0"
 Driver "nv"
 VendorName "NVIDIA Corporation"
 BoardName "Quadro NVS 140M"
EndSection

作者: cliffordli   发布时间: 2009-10-11

1、把系统的/etc/X11/xorg.conf备份
2、用nvidia-xconfig(或nvidia-setting)生成xorg.conf
3、把xorg.conf 的刷新率检查一下
4、把键盘、鼠标段配置删除,启用hal的USE,安装xf86-input-evdev和xf86-input-******(触摸板可能也如此操作)
5、根据编译后nvidia-drivers的提示加个很长的option
6、顺便可以设个正确的DPI:option "DPI" "90 x 90" (你的不一定是90)

作者: yourfriend   发布时间: 2009-10-11

引用:
作者: cliffordli
Make sure that you have installed

x11-drivers/xf86-video-nv

The following lines should be in the /etc/X11/xorg.conf.

代码:
Section "Device"
 Identifier "Videocard0"
 Driver "nv"
 VendorName "NVIDIA Corporation"
 BoardName "Quadro NVS 140M"
EndSection

--------------------------------------------------------
不会吧,我这里根本就没有这个包! 莫非,是我的rsync服务器问题?

-------------------------------------------------------

已经找到了,正在试。

------------------------------------------

不能解决问题,错误依旧。谢谢。

作者: zyflxr   发布时间: 2009-10-11

引用:
作者: yourfriend
1、把系统的/etc/X11/xorg.conf备份
2、用nvidia-xconfig(或nvidia-setting)生成xorg.conf
3、把xorg.conf 的刷新率检查一下
4、把键盘、鼠标段配置删除,启用hal的USE,安装xf86-input-evdev和xf86-input-******(触摸板可能也如此操作)
5、根据编译后nvidia-drivers的提示加个很长的option
6、顺便可以设个正确的DPI:option "DPI" "90 x 90" (你的不一定是90)

首先, 刷新率没有问题,nvidia-xconfig 生成的配置文件基本上和用Xorg --configure生成的一样,而且多了:

Load "type1"
Load "freetype"

这两个也不能加载,错误同正文一样,类似于: (EE) Failed to load module "freetype" (module does not exist, 0)

其次,nvidia-drivers编译后没有提示加一个很长的option,不知道您说的是什么意思;

作者: zyflxr   发布时间: 2009-10-11

Please add this line to /etc/make.conf, then reemerge x11-base/xorg-server.

VIDEO_CARDS="nv"

作者: cliffordli   发布时间: 2009-10-11

尽量不要用nv这个包,这个包是开源驱动,就算能用,也非常非常慢
引用:
作者: zyflxr
不会吧,我这里根本就没有这个包! 莫非,是我的rsync服务器问题?
nvidia的显卡问题我遇到过的有这几个原因:
一个是有很多版本的nvidia驱动有一个bug,就是在启动的时候会等30秒,而一般gdm都等不了这么长时间就会报timeout了,所以为了防止这种情况,我的解决办法是在/etc/X11/gdm/custom.conf文件中的
[daemon]下加上:
GdmXserverTimeout=60

另外一种情况就是新的xorg启动不需要用配置文件了,但是需要你启动hald这个服务,通过这个服务来自动配置xserver,如果你没有启动hald,那么会出现x无法启动的问题
你需要做的就是启动hald服务,然后删除/etc/X11/xorg.conf文件,再启动就可以了

另外你所给的出错信息没什么用处,我这里xorg启动很正常,但是那些dri module一样没有,下面是我的log文件显示的(EE),还有就是你没有说明你装的xorg的版本
$ grep EE /var/log/Xorg.0.log
Current Operating System: Linux wzhoulap 2.6.30-gentoo-r5 #1 SMP PREEMPT Sat Sep 26 21:28:12 CST 2009 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension MIT-SCREEN-SAVER
(EE) Failed to load module "xtrap" (module does not exist, 0)
(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "vnc" (module does not exist, 0)
(EE) Failed to load module "dri2" (module does not exist, 0)
(EE) Logitech USB Receiver: failed to initialize for relative axes.
(EE) PreInit returned NULL for "hdaps"
(EE) config/hal: NewInputDeviceRequest failed (8)

作者: meteo   发布时间: 2009-10-11

引用:
作者: meteo
尽量不要用nv这个包,这个包是开源驱动,就算能用,也非常非常慢


nvidia的显卡问题我遇到过的有这几个原因:
一个是有很多版本的nvidia驱动有一个bug,就是在启动的时候会等30秒,而一般gdm都等不了这么长时间就会报timeout了,所以为了防止这种情况,我的解决办法是在/etc/X11/gdm/custom.conf文件中的
[daemon]下加上:
GdmXserverTimeout=60

另外一种情况就是新的xorg启动不需要用配置文件了,但是需要你启动hald这个服务,通过这个服务来自动配置xserver,如果你没有启动hald,那么会出现x无法启动的问题
你需要做的就是启动hald服务,然后删除/etc/X11/xorg.conf文件,再启动就可以了

另外你所给的出错信息没什么用处,我这里xorg启动很正常,但是那些dri module一样没有,下面是我的log文件显示的(EE),还有就是你没有说明你装的xorg的版本
$ grep EE /var/log/Xorg.0.log
Current Operating System: Linux wzhoulap 2.6.30-gentoo-r5 #1 SMP PREEMPT Sat Sep 26 21:28:12 CST 2009 x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension MIT-SCREEN-SAVER
(EE) Failed to load module "xtrap" (module does not exist, 0)
(EE) Failed to load module "dri" (module does not exist, 0)
(EE) Failed to load module "vnc" (module does not exist, 0)
(EE) Failed to load module "dri2" (module does not exist, 0)
(EE) Logitech USB Receiver: failed to initialize for relative axes.
(EE) PreInit returned NULL for "hdaps"
(EE) config/hal: NewInputDeviceRequest failed (8)

我还没安装GDM, 不过您的话给我一个启发,dri模块不能加载,可能不是真正的问题所在,我习惯性的将最后的一个EE认为是最终的问题了,…… 我在寻找一下其他的可能性。

还有,谢谢你敲了这么多字来回复这个问题。

----------------------------------------------------

如果您使用 X -config /etc/x11/xorg.conf ,会出现什么呢?

作者: zyflxr   发布时间: 2009-10-11

我觉得你的问题没启动hald的可能最大

作者: meteo   发布时间: 2009-10-11

引用:
作者: meteo
我觉得你的问题没启动hald的可能最大
您说的是进入GNOME的情况吧,如果不安装GNOME时,可以使用X -config /etc/x11/xorg.conf 来测试X配置和安装是否正确,可我的屏幕什么都没有,直到刚才,我又去 man Xorg ,看到一个 -retro 的参数……

结果正常的在屏幕中显示了一个可以用鼠标移动的小叉。

真是有点想哭,被dri 和 dri2 误导了

作者: zyflxr   发布时间: 2009-10-11

不是

而是
rc-update add hald boot
/etc/init.d/hald start

和gnome没任何关系,和任何window manager都没关系

作者: meteo   发布时间: 2009-10-11

引用:
作者: meteo
不是

而是
rc-update add hald boot
/etc/init.d/hald start

和gnome没任何关系,和任何window manager都没关系
汗,我的系统里没有这个hald文件……

作者: zyflxr   发布时间: 2009-10-11

euse -E hal
然后emerge -uDNpv world
这个前面yourfriend好像提到了

呵呵,不过到现在都没有看到你说xorg的版本,我是假定你是最新的1.6的

看情况你X已经能启动了,如果不想折腾就算了,呵呵
相关文档在这里
http://www.gentoo.org/proj/zh_cn/des...rade-guide.xml

作者: meteo   发布时间: 2009-10-11

引用:
作者: meteo
euse -E hal
然后emerge -uDNpv world
这个前面yourfriend好像提到了

呵呵,不过到现在都没有看到你说xorg的版本,我是假定你是最新的1.6的

看情况你X已经能启动了,如果不想折腾就算了,呵呵
相关文档在这里
http://www.gentoo.org/proj/zh_cn/des...rade-guide.xml
恩,我再学习一下去,谢谢!

作者: zyflxr   发布时间: 2009-10-12

前面说的一个长长的option,我自己都找不到了,呵呵。

作者: yourfriend   发布时间: 2009-10-12