LinuxSir.cn,穿越时空的Linuxsir!

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

【求助】安装好了x和nvidia-driver,启动不了X

[复制链接]
发表于 2011-6-4 19:56:48 | 显示全部楼层 |阅读模式
查看Xorg.0.log如下显示,启动不了X,是不是内核问题啊?

[   367.589] (II) LoadModule: "nvidia"
[   367.589] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   367.589] (II) Module nvidia: vendor="NVIDIA Corporation"
[   367.589]         compiled for 4.0.2, module version = 1.0.0
[   367.589]         Module class: X.Org Video Driver
[   367.934] (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
[   367.934] (EE) NVIDIA:     system's kernel log for additional error messages.
[   367.935] (II) UnloadModule: "nvidia"
[   367.935] (II) Unloading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[   367.935] (EE) Failed to load module "nvidia" (module-specific error, 0)
[   367.935] (EE) No drivers available.
[   367.935]
Fatal server error:
[   367.936] no screens found
[   367.937]
Please consult the The X.Org Foundation support
         at http://wiki.x.org
for help.
[   367.938] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   367.939]




# lspci |grep nVidia
01:00.0 VGA compatible controller: nVidia Corporation Device 0ca3 (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)



用nvidia-xconfig生成的xorg.conf
# cat /etc/X11/xorg.conf
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 270.41.06  (buildmeister@swio-display-x86-rhel47-08.nvidia.com)  Mon Apr 18 15:14:00 PDT 2011

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "rotocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
发表于 2011-6-5 11:46:56 | 显示全部楼层
[ 367.934] (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your
[ 367.934] (EE) NVIDIA: system's kernel log for additional error messages.
看下系统日志吧
回复 支持 反对

使用道具 举报

发表于 2011-6-5 12:20:33 | 显示全部楼层
rc-update add udev sysinit
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-6-5 18:57:37 | 显示全部楼层
Post by druggo;2141756
看下系统日志吧


之前不知道哪里查看该日志,搜索一下之后才知道在/var/log/messages,会不会是因为编译内核的时候有一些跟nvidia-drivers冲突了呢?

cat /var/log/messages信息以下

Jun  5 07:17:08 krupsgentoo kernel: [   76.684823] NVRM: The NVIDIA probe routine was not called for 1 device(s).
Jun  5 07:17:08 krupsgentoo kernel: [   76.684826] NVRM: This can occur when a driver such as nouveau, rivafb,
Jun  5 07:17:08 krupsgentoo kernel: [   76.684827] NVRM: nvidiafb, or rivatv was loaded and obtained ownership of
Jun  5 07:17:08 krupsgentoo kernel: [   76.684828] NVRM: the NVIDIA device(s).
Jun  5 07:17:08 krupsgentoo kernel: [   76.684830] NVRM: Try unloading the conflicting kernel module (and/or
Jun  5 07:17:08 krupsgentoo kernel: [   76.684830] NVRM: reconfigure your kernel without the conflicting
Jun  5 07:17:08 krupsgentoo kernel: [   76.684831] NVRM: driver(s)), then try loading the NVIDIA kernel module
Jun  5 07:17:08 krupsgentoo kernel: [   76.684832] NVRM: again.
回复 支持 反对

使用道具 举报

发表于 2011-6-5 19:06:58 | 显示全部楼层
可能是已经加载了开源驱动,用下面命令确认一下:
lsmod
看看有没有日志里提到的模块
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-6-5 23:45:22 | 显示全部楼层
Post by druggo;2141785
可能是已经加载了开源驱动,用下面命令确认一下:

看看有没有日志里提到的模块


lsmod查看发现有nouveau和nvidiafb两个东西,然后在blacklist里面屏蔽nouveau,然后startx就可以进入gnome桌面了,但是发现鼠标键盘都动不了,安装了xf86-input-keyboard和xf86-input-mouse也是不行。

nouveau是我装哪个东西的时候装上的呢?难道是在装xorg-x11的时候?
另外nvidiafb又是个什么东西?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-6-6 00:44:43 | 显示全部楼层
after "emerge xf86-input-evdev" , the keyboard and the mouse can work.


it feels like that gentoo is faster than arch with my PC.

not install the input method in Chinese in gentoo, so type English instead. Posting in gentoo OS.

maybe I will install the alsa for sound joy tomorrow.

thanks for the helps from upstairs.

^_^

will I use the gentoo instead of the Arch Linux one day?
Maybe a few months later.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-6-6 00:49:36 | 显示全部楼层
Oh my God. I opened the firefox and browsed the youku.com, the flash sound comes out. I need do nothing for the sound ?

next step? the yong input method In Chinese.
回复 支持 反对

使用道具 举报

发表于 2011-6-8 12:56:27 | 显示全部楼层
1、关于启动X问题
cd ~ 进入根目录
nano .xinitrc 这个文件把这句 exec ck-launch-session gnome-session 写进去。。保存退出。。
env-update && source /etc/profile 更新下系统环境
再试试。。。
2、关于键盘,鼠标没反应的情况。我也遇到过几次。我的处理是。。。

emerge xf86-input-evdev  安装这个
就OK了。。
env-update && source /etc/profile  更新环境

你可能更新了系统。。。有些组件是最新的。。有些跟不上。。。SO。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

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