我在nVidia官方驱动程序中碰到的一个问题
发表于 : 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
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