NVIDIA
From openSUSE
|
openSUSE 10.3 and openSUSE 11.0
Installation
Use 1-Click-Install for openSUSE 10.3 and 11.0.
- For all new NVIDIA cards, click here:
- For all NVIDIA Legacy cards, click here:
| Note: 1-click install needs access to the online software repositories, otherwise you will get missing packages error messages. See article Package Repositories for more information how to add repositories that are not already configured. |
If SaX2 doesn't detect the newly installed X-server run as root user:
sax2 -r
and SaX2 will start detection again, ignoring previous attempts. That will detect the NVIDIA graphic adapter and allow you to set up your desired resolution. To do this go to: Computer > More Applications > System > X Term program. Then type su - at the prompt, type in your root password, and then type sax2 -r. This should automatically run the SAX2 program and detect the NVIDIA card.
If you have problems with 1-Click install please see Troubleshooting section of this article.
Compositing (3D-effects) with NVIDIA
NOTE: For openSUSE 11.0 please skip the following, just install the drivers and enable effects from simple-ccsm.
To use NVIDIA driver directly to run Compiz, Compiz Fusion or KDE4 compositing effects, run the following commands and restart X (Logout and press <ctrl>-<alt>-<Backspace>). For KDE4, there exists a second HOWTO.
su - nvidia-xconfig --composite nvidia-xconfig --render-accel nvidia-xconfig --add-argb-glx-visuals -d 24
openSUSE 10.2
It is very easy, most of the time.
| WARNING: The NVIDIA driver RPMs for openSUSE 10.2 are built against the default kernel on the DVD and they should work after kernel updates provided trough YaST Online Update (YOU), but sometimes they don't, because the kernel update, forced by security reasons, broke compatibility with previous version. In this case you should follow instructions in the section The Hard Way to restore 3D. |
1. Import the NVIDIA GnuPG key. Login in console as root user and type, or simply copy and paste using mouse:
rpm --import ftp://download.nvidia.com/opensuse/10.2/repodata/repomd.xml.key
2. Add the NVIDIA rpm-md repository: ftp://download.nvidia.com/opensuse/10.2/ to the package manager.
- To do this in YaST, go to Software -> Installation Source. Now hit Add and then select Specify URL. In there, enter the above URL and then hit Next, and then Finish.
- Or, to do this in Zypper execute:
zypper sa ftp://download.nvidia.com/opensuse/10.2/ nvidia
3. Identify which 'nvidia' driver packages you need. This depends on the exact model of your card. For a newer card you'll probably need x11-video-nvidiaG01 and nvidia-gfxG01-kmp-default packages. If your card is part of the NVIDIA Legacy then you'll need x11-video-nvidia and nvidia-gfx-kmp-default. (The list is taken from http://www.suse.de/~sndirsch/nvidia-installer-HOWTO.html)
If you are running on a non-default kernel flavour, you may need nvidia-gfxG0-kmp-bigsmp instead of nvidia-gfxG0-kmp-default (or nvidia-gfx-kmp-bigsmp instead of nvidia-gfx-kmp-default). "bigsmp" here is a your kernel flavor. You can find out your kernel flavor by running uname -r.
4. Install the identified packages, e.g. x11-video-nvidiaG0 and nvidia-gfxG0-kmp-default.
- To do this with Zypper. for example, execute:
zypper install x11-video-nvidiaG0 nvidia-gfxG0-kmp-default
5. Restart X (Logout and press <ctrl>-<alt>-<Backspace>).
6. Enjoy!
6. The kernel update will trigger installation of new NVIDIA kernel drivers. This addition will leave the old versions present, they need to be removed manually. Run:
rpm -qa '*nvidia-gfx*'
If you have a new "nvidia-gfxG01-..." package in this list, you can remove the left over nvidia-gfx-... package(s).
SUSE Linux 10.1 and SLED 10
- Add the YUM repository
ftp://download.nvidia.com/novell/sle10sp1to the package manager (YAST or ZEN). - Install the packages
x11-video-nvidiaandnvidia-gfx-kmp-default - Restart X (Logout and press CTRL-ALT-Backspace).
- Done.
- Add the YUM repository
You will also get updated packages when NVIDIA publishes them on this site.
This is for those that want to have the latest NVIDIA drivers, and are not afraid to recompile driver after each kernel update. Or have updated your kernel from the DVD default version.
Prerequisites
- compiler gcc,
- program make and
- package
kernel-source
If you don't have them installed you can do it using YaST.
--Specific instructions for installing kernel-source-- Login to Console and type: "su", enter your root password, then, "yast". Under software, go into Software Management, and Press F2 (Search). Search "kernel-source". Select the module and press enter. There will now be a "+" in front of it. Press F10. It'll install. Press F9 a few times to exit Yast.
Download NVIDIA Drivers
First of all, if you tried using the script then you can find the NVIDIA installer package in /usr/share/doc/nvidia If the installer package is not there go to NVIDIA Download Page, and get the latest drivers for your computer.
Install the drivers
If you are in runlevel 5, go to runlevel 3 by typing the following comand as root in one of the consoles (which you can access by pressing ctrl-alt-f1 [f1 up to f6])
init 3
Now go to the directory containing the drivers.
cd /usr/share/doc/nvidia
or
cd /the/path/where/you/saved/the/drivers/from/nvidia/website
Now simply type the following and follow instructions
sh NVIDIA-Linux-<arch>-<version>-<build>-<pkg#>.run -q
Configure X.org
Note: This does not seem to be required for v177.68 on opensuse 11.0 as it is done in the installer.
The next step is to configure the X.org to use the new nvidia drivers. To do this, type the following
sax2 -r -m 0=nvidia
Sax2 will start it's configuration program in X. You can do more tweaking here, but this is your option. With 10.0 you won't need to specify -m 0=nvidia any more, sax automatically detects and uses it if you activate 3D acceleration.
Legacy chipset support
SUSE 10.0, 10.1 and openSUSE 10.2 support all NVIDIA chipsets, including the legacy via the open source "nv" driver, which unfortunately means degraded performance because it has no 3D acceleration. In order to enable accelerated 3D support on these cards via the closed source driver from NVIDIA.
For you convenience here is a complete list for all 3 branches (new unified, legacy 1.0-96xx and old legacy 1.0-71xx):
It can be used for orientation in which category is your chipset or graphic card.
NOTE: Nvidia is still maintaining drivers and releasing newer versions with bug fixes. It is impossible to put one link here that will be accurate for a long. To download latest drivers visit:
and using knowledge from list of supported chipsets select driver that is appropriate for you chipset.
Prior to installing the NVIDIA driver you have to shut down the X server. The easiest way to do this is to switch to the Linux console by pressing Ctrl+Alt+F1 and logging in as root. Then type
init 3
To install the driver run downloaded file, for instance:
sh NVIDIA-Linux-x86-1.0-7185-pkg0.run
Once the driver has been successfully installed, take a look at /etc/X11/xorg.conf to make sure that the "nvidia" driver is being used instead of the opensource "nv" driver. To see whether the X server is able to start up, type X on the console and press Enter. You should see the NVIDIA logo on a white screen. To quit the X server hit Ctrl+Alt+Backspace. If you've gotten this far successfully, you can safely switch to runlevel 5. Type in the following on the command line
init 5; exit
X-server won't start after installing NVIDIA driver on openSUSE 10.2
Check out the Cool Solutions article on this.
The problem is that the nvidia modules are installed in the wrong directory, /usr/X11R6/modules when it should be /usr/lib/xorg/modules or /usr/lib64/xorg/modules when using xorg 7.2.
Problem with some AGP graphics boards
Using AGP graphics boards with some motherboards you may need to manually add [Option "NvAGP" "2"] as shown below. This was the case with a Gigabyte GA-K8NS AMD64 motherboard and AGP Nvidia FX5200 graphics board. Without this command X failed to start.
Section "Device"
BoardName "GeForce FX 5200 (0x0322)" BusID "1:0:0" Driver "nvidia" Identifier "Device[0]" VendorName "NVidia" Option "NvAGP" "2"
EndSection
Compilation on FACTORY
Running the NVIDIA installer on FACTORY fails with undefined symbols problems, so you might need to follow the instructions this page to patch the driver sources.
Application freeze or crash when compositing/3D effects enabled
You have set Option "Composite" "Enable" in /etc/X11/xorg.conf to enjoy your eye candy or 3D desktop, but you see some applications crash or freeze?
Try to temporarily disable compositing with Option "Composite" "Disable" and restart your X server.
Do these applications now not crash or freeze any longer? If the answer is yes, your compositing is unstable.
There is a solution. nVidia drivers after 169.xx introduced a new option named UseCompositeWrapper. Put it in the device section of your xorg.conf: Option "UseCompositeWrapper" "true" and enable compositing again. Restart your X server. Your applications should now not freeze or crash any longer.
TwinView Resolution Issues
Sometimes, when configuring dual monitors by using nvidia-settings, there is no option to choose a resolution above 640x480 for a second monitor. This is caused by the default HorizSync for the monitor settings in /etc/X11/xorg.conf.
To increase the low resolution monitor, you will need to increase the HorizSync in order to enable a higher resolution on that particular monitor. To make this possible, perform the following actions:
1. From within nvidia-settings, set the resolution of the monitor in question to the highest available resolution. eg: 640x480. Make sure not to change it to Auto. This will help you identify the correct monitor when editing your /etc/X11/xorg.conf file. Save to xorg.conf and exit.
2. Open /etc/X11/xorg.conf and find the following section (minor details will vary slightly):
Section "Screen" Monitor "Monitor0" Option "metamode" "CRT: 640x680 +1280+0, DFP: 1280x1024 +0+0" EndSection
3. Change the resolution to the desired resolution.
4. Locate the corresponding monitor section (details will vary slightly):
Section "Monitor" Identifier "Monitor0" HorizSync 28.0 - 33.0 EndSection
5. Increase the HorizSync right-hand value to 65.0 (or higher if monitor still doesn't work after restarting X)
6. Save the file and restart X server.
7. If the second monitor still does not display, repeat Steps 4 through 7, making HorizSync more than 65.0
Problems with 1-Click install
If you have problems with 1-Click install please consult people on opensuse@opensuse.org mail list, that will help you in troubleshooting. For details how to subscribe please see Communicate page.
"Corrections" like this:
These 1-Click-Installs still somehow point to the old NVIDIA drivers compile against kernel-source-2.6.22.13-0.3
To get the latest NVIDIA drivers compiled agains kernel-source-2.6.22.17-0.1, manually download the appropriate files from ftp://download.nvidia.com/opensuse/10.3/
This currently does not work for:See the hard way or wait until the click once installer is updated.
- 9800 GT (nVidia Corporation Device 0605)
doesn't help much to resolve problems. It can be given with good intentions, but it doesn't give a hint how error happened and there is no way to correct it. Workarounds and reports like this defeat the purpose of 1-Click install, ie. simple installation.
Quick check of 1-Click files showed that they point to the proper repository http://download.nvidia.com/opensuse/10.3/ which is the same that correction notice points to, and there is no pointer to specific files, so error is not in the link, but elsewhere.
Note - if you have updated your kernel (e.g. with the automatic Susewatcher service) to a version that is not specifically supported on the download.nvidia.com site, the installer will try to recompile the driver for your kernel flavour. For this to be successful, you MUST have the C-complier (gcc) and kernel-sources installed. The manual method of su to become root, going to init 3, (still as root) executing the downloaded file with sh <filename> and then returning with init 5 should then work.
See also
- Laptops and external VGA
- NVidia Suspend HOWTO
- NVidia framebuffer console HOWTO
- Use Nvidia driver with Xen
- Beryl with nVidia drivers



