LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1550|回复: 20

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

[复制链接]
发表于 2009-10-10 13:28:34 | 显示全部楼层 |阅读模式
首先,我已经用了足够多的时间来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
发表于 2009-10-10 14:26:26 | 显示全部楼层
你是 X 不显示东西还是自动退出了?有装kde或者gnome或者其他桌面管理器吗?我的X也不显示但是安装好kde就可以进kde了。
xorg.conf 要自己根据硬件配置的我的,笔记本dell 1200 intel 965 x3100 1280*800分辨率
//etc/X11/xorg.conf
------------------------------------------------------------------------------------

  1. Section "ServerLayout"
  2.     Identifier     "X.org Configured"
  3.     Screen      0  "Screen0" 0 0
  4. EndSection

  5. Section "Files"
  6.     ModulePath   "/usr/lib/xorg/modules"
  7.     FontPath     "/usr/share/fonts/misc/"
  8.     FontPath     "/usr/share/fonts/TTF/"
  9.     FontPath     "/usr/share/fonts/OTF"
  10.     FontPath     "/usr/share/fonts/Type1/"
  11.     FontPath     "/usr/share/fonts/100dpi/"
  12.     FontPath     "/usr/share/fonts/75dpi/"
  13. EndSection

  14. Section "Module"
  15.     Load  "glx"
  16.     Load  "extmod"
  17.     Load  "xtrap"
  18.     Load  "record"
  19.     Load  "GLcore"
  20.     Load  "dbe"
  21.     Load  "dri"
  22. EndSection

  23. Section "Monitor"
  24.     Identifier   "Monitor0"
  25.     VendorName   "LCD"
  26.     ModelName    "58eb"
  27.     Option         "DPMS"
  28.     HorizSync     49.68-83.46
  29.     VertRefresh   60.0-60.0
  30.     Modeline     "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  31. EndSection

  32. Section "Device"
  33.     Identifier  "Card0"
  34.     Driver      "intel"
  35.     VendorName  "Intel Corporation"
  36.     BoardName   "Mobile Integrated Graphics Controller"
  37.     BusID       "PCI:0:2:0"
  38.     Option        "XAANoOffscreenPixmaps" "true"
  39.     Option        "DRI" "true"
  40. EndSection

  41. Section "Screen"
  42.     Identifier "Screen0"
  43.     Device     "Card0"
  44.     Monitor    "Monitor0"
  45.     DefaultDepth 24
  46.     Option       "AddARGBGLXVisuals" "true"
  47.     SubSection "Display"
  48.         Viewport   0 0
  49.         Depth     24
  50.         Modes "1280x800"
  51.     EndSubSection
  52. EndSection

  53. Section "DRI"
  54.     Mode 0666
  55. EndSection

  56. section "Extensions"
  57.     Option "Composite" "Enable"
  58. Endsection
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-10-10 15:10:18 | 显示全部楼层
你是哪个版本的内核?
我用同样的显卡,好像180.60在31以后的内核就不行了
你试试看unmask190.18的驱动装上行不行
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-10 15:44:42 | 显示全部楼层

X不显示 ,但的确是有错误,估计不可以进GDM。

Post by zrael;2034963
你是 X 不显示东西还是自动退出了?有装kde或者gnome或者其他桌面管理器吗?我的X也不显示但是安装好kde就可以进kde了。
xorg.conf 要自己根据硬件配置的我的,笔记本dell 1200 intel 965 x3100 1280*800分辨率
//etc/X11/xorg.conf
------------------------------------------------------------------------------------
  1. Section "ServerLayout"
  2.     Identifier     "X.org Configured"
  3.     Screen      0  "Screen0" 0 0
  4. EndSection
  5. Section "Files"
  6.     ModulePath   "/usr/lib/xorg/modules"
  7.     FontPath     "/usr/share/fonts/misc/"
  8.     FontPath     "/usr/share/fonts/TTF/"
  9.     FontPath     "/usr/share/fonts/OTF"
  10.     FontPath     "/usr/share/fonts/Type1/"
  11.     FontPath     "/usr/share/fonts/100dpi/"
  12.     FontPath     "/usr/share/fonts/75dpi/"
  13. EndSection
  14. Section "Module"
  15.     Load  "glx"
  16.     Load  "extmod"
  17.     Load  "xtrap"
  18.     Load  "record"
  19.     Load  "GLcore"
  20.     Load  "dbe"
  21.     Load  "dri"
  22. EndSection
  23. Section "Monitor"
  24.     Identifier   "Monitor0"
  25.     VendorName   "LCD"
  26.     ModelName    "58eb"
  27.     Option         "DPMS"
  28.     HorizSync     49.68-83.46
  29.     VertRefresh   60.0-60.0
  30.     Modeline     "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  31. EndSection
  32. Section "Device"
  33.     Identifier  "Card0"
  34.     Driver      "intel"
  35.     VendorName  "Intel Corporation"
  36.     BoardName   "Mobile Integrated Graphics Controller"
  37.     BusID       "PCI:0:2:0"
  38.     Option        "XAANoOffscreenPixmaps" "true"
  39.     Option        "DRI" "true"
  40. EndSection
  41. Section "Screen"
  42.     Identifier "Screen0"
  43.     Device     "Card0"
  44.     Monitor    "Monitor0"
  45.     DefaultDepth 24
  46.     Option       "AddARGBGLXVisuals" "true"
  47.     SubSection "Display"
  48.         Viewport   0 0
  49.         Depth     24
  50.         Modes "1280x800"
  51.     EndSubSection
  52. EndSection
  53. Section "DRI"
  54.     Mode 0666
  55. EndSection
  56. section "Extensions"
  57.     Option "Composite" "Enable"
  58. Endsection
复制代码

X不显示 ,但的确是有错误,估计不可以进GDM。谢谢你的解答。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-10 15:45:43 | 显示全部楼层

我的内核版本是 2.6.30-gentoo-r6

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

我的内核版本是 2.6.30-gentoo-r6

我正在试unmask190.18的驱动。谢谢。
回复 支持 反对

使用道具 举报

发表于 2009-10-10 16:27:35 | 显示全部楼层
Post by zyflxr;2034942


我看了一下日志,里面有这样的内容:
       
          ......
         (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)



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

使用道具 举报

 楼主| 发表于 2009-10-11 08:51:11 | 显示全部楼层

此方法不能解决问题,谢谢

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


这个方法不能解决问题,谢谢
回复 支持 反对

使用道具 举报

发表于 2009-10-11 09:23:42 | 显示全部楼层
Make sure that you have installed

x11-drivers/xf86-video-nv

The following lines should be in the /etc/X11/xorg.conf.
  1. Section "Device"
  2.         Identifier     "Videocard0"
  3.         Driver         "nv"
  4.         VendorName     "NVIDIA Corporation"
  5.         BoardName      "Quadro NVS 140M"
  6. EndSection
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-10-11 09:33:12 | 显示全部楼层
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)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-10-11 09:33:15 | 显示全部楼层

不会吧

Post by cliffordli;2035241
Make sure that you have installed

x11-drivers/xf86-video-nv

The following lines should be in the /etc/X11/xorg.conf.
  1. Section "Device"
  2.         Identifier     "Videocard0"
  3.         Driver         "nv"
  4.         VendorName     "NVIDIA Corporation"
  5.         BoardName      "Quadro NVS 140M"
  6. EndSection
复制代码


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

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

已经找到了,正在试。

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

不能解决问题,错误依旧。谢谢。
回复 支持 反对

使用道具 举报

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

本版积分规则

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