BTW, you don't have to be a Tumbleweed user to use this method; it works in standard openSUSE too.
This article is for openSUSE 11.4 and higher, and for users who are a bit confused by the cryptic nature of the wiki edition. Advanced users will find it quicker to use the wiki edition provided they skirt the steps that are wrong for openSUSE versions 11.4+.
Get Ready Step 1: Gather some background information about your video card and your current drivers.
Have a look at your current status with this command:
Code:
/usr/sbin/hwinfo --gfxcard
Code:
john@opensuse114:~> /usr/sbin/hwinfo --gfxcard 27: PCI 100.0: 0300 VGA compatible controller (VGA) [Created at pci.318] Unique ID: VCu0.VDLXvujblSC Parent ID: vSkL.p_D9a9Gh3ZD SysFS ID: /devices/pci0000:00/0000:00:01.0/0000:01:00.0 SysFS BusID: 0000:01:00.0 Hardware Class: graphics card Model: "nVidia G98 [GeForce 8400 GS]" Vendor: pci 0x10de "nVidia Corporation" Device: pci 0x06e4 "G98 [GeForce 8400 GS]" SubVendor: pci 0x19da "ZOTAC International (MCO) Ltd." SubDevice: pci 0x9044 Revision: 0xa1 Driver: "nouveau" Driver Modules: "drm" Memory Range: 0xfd000000-0xfdffffff (rw,non-prefetchable) Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable) Memory Range: 0xfa000000-0xfbffffff (rw,non-prefetchable) I/O Ports: 0xdc80-0xdcff (rw) Memory Range: 0xfea00000-0xfea1ffff (ro,non-prefetchable,disabled) IRQ: 16 (13 events) I/O Ports: 0x3c0-0x3df (rw) Module Alias: "pci:v000010DEd000006E4sv000019DAsd00009044bc03sc00i00" Driver Info #0: Driver Status: nvidiafb is not active Driver Activation Cmd: "modprobe nvidiafb" Driver Info #1: Driver Status: nouveau is active Driver Activation Cmd: "modprobe nouveau" Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #9 (PCI bridge)
If you want to see whether you have the Static RPMs for Nvidia drivers installed, run this command: rpm -qa | grep nvidia, and if they're installed you'll see a response like this:
Code:
john@opensuse114:~> rpm -qa | grep nvidia nvidia-gfxG02-kmp-desktop-270.41.06_k2.6.37.1_1.2-4.1.x86_64 nvidia-computeG02-270.41.06-5.1.x86_64 x11-video-nvidiaG02-270.41.06-5.1.x86_64
Get Ready Step 2: Get rid of the RPM-based Nvidia driver installation
You're going to stop using your base distro's Nvidia drivers (via RPMs) so if you have RPMs installed, remove them in Yast --> Software --> Software management -> search term: nvidia. Remove the three RPMs listed above in the code box. Be careful not to uninstall the nouveau driver. Switch to Yast --> Software --> Repositories and remove the Community repo for Nvidia. Then reboot and you will regress to the nouveau drivers.
{NB FYI: when you uninstall these three Nvidia RPMs in Yast, the process automatically takes out the nouveau blacklist file (/etc/modprobe.d/nvidia.conf) so that "nouveau" returns. If you can't get nouveau when you reboot, check that the file nvidia.conf is gone from directory modprobe.d and also that you haven't blacklisted nouveau at the bottom of the file "50-blacklist.conf" (by mistake lol).}
Get Ready Step 3: Install prerequisite RPMs Install these RPMs ==> gcc, make, kernel-source
Get Ready Step 4: Download the new driver. You'll need the information you got when you ran the command /usr/sbin/hwinfo --gfxcard so you can pick the correct driver from the Nvidia site http://www.nvidia.com/Download/index.aspx?lang=en-us. The driver package will be named similar to this: NVIDIA-Linux-x86_64-295.33.run. You'll be installing it as root after booting to a console subsequent to every kernel upgrade, so you should place it in the directory /root. Use a superuser file browser to do that (or the commands mkdir and mv).
Get Ready Step 5: Blacklist the nouveau driver. You should switch out nouveau by blacklisting it before you install the new Nvidia drivers from the "run" file.
Look in the directory /etc/modprobe.d/ for a file named variously: "nvidia.conf" or "nvidia-installer-disable-nouveau.conf" or similar. It must contain these two lines:
Code:
blacklist nouveau options nouveau modeset=0
After you do that, the GUI will continue to run with nouveau until you install the Nvidia "run" file. Once that's in place, the blacklisting becomes effective.
Now Install the Driver from the "run" File
Reboot and select to boot to runlevel 3, do this: boot to the grub menu, press the numeral key 3, then Enter and you'll boot to runlevel 3
At the console login prompt, log in as root.
Open the "run" file as follows: if you put the run file in directory /root as I advised, then type this in the console:
Code:
sh /root/NVIDIA
Code:
sh /root/NVIDIA-Linux-x86_64-295.33.run
Here's the normal progress:
- licence dialogue is displayed => accept
- simply observe and wait through dialogue for building scripts and modules
- if asked whether to install 32-bit compatibility OpenGL libs ==> select yes
- simply observe and wait through searches for conflicting files
- simply observe and wait through installation of driver dialogue
- when asked if you want to install and let run the nvidia-xconfig utility, 99% of people should ==> select no
- when told that installation is complete ==> select OK
You will return to the console prompt. Simply enter init 5 to complete the process and log in to your user account in GUI mode.
That's all folks
Note: if you need to adjust the display (e.g twin screens, e.g. resolution) run this command after you log in: nvidia-settings
swerdna 19 June 2011; last update 5 May 2012
P.S. What about uninstalling the driver:
Code:
sh /root/NVIDIA-Linux-x86_64-295.33.run --uninstall
Message