openSUSE 11.1: How to install Nvidia video driver kernel module for Compiz
August 6, 2009After a freshly-minted openSUSE installation, one of the first things that an user will want to do is to set up Compiz with its awesome 3D desktop effects. I’ve yet to find a how-to guide online that cleanly explains the steps to take on an openSUSE system. After a number of attempts with trial and error, I was able to figure out the correct steps and decided to write up a guide to save time/energy for any enterprising users who want their openSUSE system with a Nvidia video card to work with Compiz.
It may be possible to luck out and get a working 3D desktop if attempting the 1-click installation of Nvidia drivers for openSUSE. While this step may seem to be trivial to have the Nvidia driver installed on the system, there is no control over the version of the driver. The version of the installed driver may not be fully compatible with the particular model of Nvidia video card on the running system.
For example, from my prior experience using Ubuntu on my system, Ubuntu recommends the older Nvidia Linux driver 180.44 for my video card which gives the best results, even when there are more recent Nvidia Linux drivers available. To alleviate a lot of frustration on the users part, I believe that openSUSE team should look at and mimic how Ubuntu recommends a specific video driver. Ubuntu is able to present this critical piece of information to the user and makes it simple to install the correct video driver.
The steps I list below will skip the openSUSE 1-click installation of Nvidia driver and will instead download and install a specific version from Nvidia website.
1. Install openSUSE 11.1 from media then do a full update, including any new kernel upgrades. (YaST2 -> Online Update)
2. Reboot to ensure you are running up-to-date system.
3. Via YaST2 (Software management) or zypper, make sure ‘kernel’, ‘make’, and ‘gcc’ packages are installed.
5. Visit Nvidia Linux Driver webpage and find the version you want. (will use 180.44 for this example)
6. Download the script NVIDIA-Linux-x86-180.44.pkg1.run to your Desktop
7. To exit the desktop environment to the shell so the driver can be installed, open a terminal, su to root, and type rcxdm stop
8. Once at shell, login as root
9. cd to the directory where you downloaded NVIDIA-Linux-x86-180.44.pkg1.run
10. sh NVIDIA-Linux-x86-180.44.pkg1.run -q
11. At this point, the Nvidia driver will be compiled and installed as a kernel module.
12. Reboot. This is the easiest way to ensure you are running up-to-date system.
13. Once back in the desktop environment, need to exit it so can re-config Xorg to use the Nvidia driver. Open a terminal, su to root, and type rcxdm stop
14. Login as root
15. sax2 -r -m 0=nvidia (The digit zero, not the letter o)
– Change configuration
– Select your monitor and resolution
– Save & exit
16. rcxdm start
17. open a terminal, su to root, and type nvidia-settings. If you have dual screens, can set them here using twin-view.
18. close nvidia-settings, go back to terminal, exit from root back to your user login prompt.
19. simple-ccsm and check the ‘Enable Desktop Effects’ check box.
20. At this point, Compiz should start working and you’ll see all kinds of nifty 3D desktop effects.
Important note for future, if you update your kernel, Nvidia kernel module needs to be recompiled and put back in place.
To do this: cd to the directory where the Nvidia script is and run as root:
sh NVIDIA-Linux-x86-180.44.pkg1.run -K
Comments openSuse
Related posts:


