我在nVidia官方驱动程序中碰到的一个问题

参与到Ubuntu的翻译中来
回复
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

我在nVidia官方驱动程序中碰到的一个问题

#1

帖子 oneleaf » 2005-03-31 21:49

Installing the nVidia drivers in Ubuntu using the official installer (ie. not using the Ubuntu packages) may give rise to a few annoyances. Specifically, you may find that all OpenGL applications (such as ''glxgears'') segfault on start. This usually happens across reboots, ie. when you install the nVidia drivers using the official installer everything works as expected, but when you reboot you may no longer use OpenGL apps unless you reinstall the driver.

This problem is caused by the ''nvidia-glx'' script being run at startup. It will notice that the nVidia OpenGL libraries present on the system are not those of the current Ubuntu package and delete them. To correct the problem, do the following.

* Uninstall all Ubuntu packages having to do with nVidia: kernel-modules-restricted-'yourarch', nvidia-glx, nvidia-common, nvidia-kernel-source come to mind.
* In a terminal, execute the command: 'sudo rm /etc/rc?.d/S??nvidia-glx'. This will stop 'nvidia-glx' from running at startup.
* (Re)install the official nVidia drivers. You will have to exit your session, switch to another VT (Ctrl-Alt-F1), login and issue the commands:

sudo /etc/init.d/gdm stop

cd /path/to/nvidia/installer

sudo sh NVidia-Linux-x86-1.0-xxxx-yyyy.run

sudo /etc/init.d/gdm start

If it's your first time installing nVidia drivers, you may have to modify your X configuration according to the nVidia README.

That's it. You should have working OpenGL graphics, preserved across reboots.

* Note to editors: please edit to give it a better layout.

http://www.ubuntulinux.org/support/docu ... ial_nVidia
上次由 oneleaf 在 2005-04-14 10:54,总共编辑 1 次。
soboy
帖子: 16
注册时间: 2005-04-13 21:25

我在nVidia官方驱动程序中碰到的一个问题.

#2

帖子 soboy » 2005-04-13 22:52

在Ubuntu中使用官方安装软件 (例如不用Ubuntu包) 安装nVidia驱动时, 可能会碰上麻烦. 具体来说, 就是你会发现所有OpenGL应用软件在启动时会出现段错误. 这往往发生在重起之后,
比方说, 当你使用官方安装nVidia驱动时, 一切工作正常, 但一重起你就可能再也不能用OpenGL的软件了,
除非你重新安装驱动.

这个问题是由于启动时运行"nvidia-glx"脚本引起的. 它发现现有系统中nVidia的OpenGL库不是目前Ubuntu包, 就会删除它们. 可以按以下步骤更正这个问题:

*反安装所有与nVidia有关的Ubuntu包: kernel-modules-restricted-'yourarch', nvidia-glx, nvidia-common, nvidia-kernel-source
come to mind.
*在终端中运行命令: 'sudo rm /etc/rc?.d/S??nvidia-glx'. 防止'nvidia-glx"在启动时运行.
*安装 (或重装) 官方nVidia驱动程序. 你要退出你的会话, 切换到别的控制台 (Ctrl-Alt-F1), 登录后执行以下命令:
sudo /etc/init.d/gdm stop

cd /path/to/nvidia/installer

sudo sh NVidia-Linux-x86-1.0-xxxx-yyyy.run

sudo /etc/init.d/gdm start

如果这是你第一次安装nVidia驱动, 你可能要根据nVidia的说明修改X的配置.

这样你应该可以运行OpenGL图形了. 保存重起.

*编辑注意: 请重新编好一下布局.

http://www.ubuntulinux.org/support/docu ... ial_nVidia
上次由 soboy 在 2005-04-13 22:59,总共编辑 2 次。
soboy
帖子: 16
注册时间: 2005-04-13 21:25

第一次, 请多指教!

#3

帖子 soboy » 2005-04-13 22:54

come to mind 是什么意思?
soboy
帖子: 16
注册时间: 2005-04-13 21:25

#4

帖子 soboy » 2005-04-13 22:56

是不是就这样提交?
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#5

帖子 oneleaf » 2005-04-13 23:07

对.我会来整理过
当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#6

帖子 oneleaf » 2005-04-13 23:43

当净其意如虚空,远离妄想及诸取,令心所向皆无碍
头像
millenniumdark
论坛版主
帖子: 4159
注册时间: 2005-07-02 14:41
系统: Ubuntu 14.04 (Kylin)
联系:

#7

帖子 millenniumdark » 2006-08-01 4:32

先放着
eloongcn
帖子: 4
注册时间: 2007-12-03 16:52

#8

帖子 eloongcn » 2007-12-03 18:49

新版还有这问题吗?
回复