代码改变世界

安装(显卡)驱动出现错误及其导致无法进入X的处理办法

2010-06-30 17:22  Logic0  阅读(11539)  评论(0编辑  收藏  举报
我顶 字号:
系统:Fedora 13 Goddard
显卡:七彩虹 9500GT 512M
主板:ASUS P5Q

安装显卡驱动,需进去init 3模式,之后出现如下描述的错误信息:
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb/nvidiafb is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU installed in this system is not supported by this NVIDIA Linux graphics driver release.

Please see the log entries 'Kernel module load error' and 'Kernel messages' at the end of the file '/var/log/nvidia-installer.log' for more information.

解决办法,su下,然后:
sh NVIDA-Linux-x86_64-190.53-pkg.run -k $(uname -r)

意外:安装后无法进入X,启动进程停在starting atd  [OK] 之后,查看Xorg.0.log发现错误信息为无法加载nvidia驱动,无法找到显示器。
推测原因:显卡驱动存在问题,需另外下载驱动

开机编辑引导命令行,进入single模式,修改/etc/inittab文件中runlevel为3,reboot,进入init 3模式,su下,然后
sh NVIDA-Linux-x86_64-190.53-pkg.run --uninstall
删除驱动。
rm /etc/X11/xorg.conf
删除xorg.conf,不用担心,这个删除后也可以启动X,如果原来你有配置xorg.conf,可以用:
cp /etc/X11/xorg.conf.backup /etc/X11/xorg.conf
还原原来到xorg.conf

修改/etc/inittab文件中runlevel为5,reboot,然后继续试驱动吧,找到合适的为止……(哭,我还没找到)