手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

ubuntu下 Nvidia显卡驱动错误的解决

[日期:2007-07-25] 来源:Linux公社  作者:Linuxidc [字体:大 中 小]
在安装beryl 和 Nvidia 官方驱动的时候并没有清除原来的旧驱动,也可能是

This confuses nvidia-installer into thinking that your X server is very old and it installs the X modules in the wrong place. To work around this problem, use the following options:

# sh NVIDIA-Linux-version.run --x-module-path=`X -showDefaultModulePath 2>&1 | cut -d, -f1` --x-library-path=`X -showDefaultLibPath 2>&1`

总之,症状为每次重启电脑都需要重新编译 Nvidia 驱动才能进入 GDM(x win)。错误日志内容为:

Error: API mismatch: this NVIDIA driver component has version 100.14.11, but the NVIDIA kernel module's version does not match.Please make sure that the kernel module and all NVIDIA driver components have the same version.

我做了如下步骤(不是很清楚到底是那步起了作用还是都需要,你自己参考)

sudo apt-get remove nvidia-glx --purge

完全删除 nvidia-glx

删除 /etc/init.d/nvidia-glx 和 /etc/init.d/nvidia-kernel

修改 /etc/default/linux-restricted-modules-common 文件,加入

DISABLED_MODULES="nv nvidia_new"

我觉得很可能这步才是关键的!

倒霉的是我的声卡是 Conexant(nVidia Corporation MCP51 High Definition Audio),于是乎,声音没有啦...

可以参考此文,部分内容如下:
the nvidia-glx package has been uninstalled with the --purge option and the files /etc/init.d/nvidia-glx and /etc/init.d/nvidia-kernel do not exist

You need to delete the legacy driver within /lib/modules directory
once you delete those, then install the nvidia drivers, and you'll be ok.

If you use Ubuntu, please also ensure that the linux-restricted-modules or linux-restricted-modules-common packages have been uninstalled. Alternatively, you can edit the /etc/default/linux-restricted-modules or /etc/default/linux-restricted-modules-common configuration file and disable the NVIDIA linux-restricted kernel modules (nvidia, nvidia_legacy) via:

DISABLED_MODULES="nv nvidia_new"

Additionally, delete the following file if it exists:

rm -f /lib/linux-restricted-modules/.nvidia_new_installed

Please note: unfortunately, it has become difficult to keep track of the pre-/post-installation steps required for [K]Ubuntu, and the above instructions may be incomplete. If in doubt, it is recommended that you use your distributor's NVIDIA Linux graphics driver packages, exclusively.linux
相关资讯       Ubuntu  Nvidia显卡驱动 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款