4

For the past few days I've been trying to get compiz working on Ubuntu 12.04 with my NVIDIA graphics card - GeForce GT550M, but I couldn't get it to work. I've been searched for tips and tricks on how to do it but nothing has worked so far. This is the last one I tried - http://www.howtoforge.com/enabling-compiz-fusion-on-ubuntu-11.10-oneiric-ocelot.

It appears to be pretty easy but whenever I open the Additional Drivers tool, it says "no proprietary drivers are in use on this system". All the tutorials I have found include this step so none of them have worked.

I would really like to use compiz effects but I don't know what to try any more, so I could really use some help. Thanks in advance!

Jorge Castro
  • 73,717
Tim
  • 41

3 Answers3

6

***This approach is simpler and it allows for easier reversal.

Manual NVIDIA binary driver package install

Install the NVIDIA binary driver package manually. It will automatically blacklist the Nouveau default driver and make the kernel modules for you:

sudo apt-get install nvidia-current

Become root:

sudo -i

Then simply modify your "xorg.conf" to use it. Copy and paste the whole code snippet in the terminal where you ran "sudo -i":

echo 'Section "Screen"
        Identifier      "Default Screen"
        DefaultDepth    24
EndSection

Section "Module"
        Load    "glx"
EndSection

Section "Device"
        Identifier      "Default Device"
        Driver  "nvidia"
        Option  "NoLogo"        "True"
EndSection
' > /etc/X11/xorg.conf

Then reboot your machine.

Reversal

In case it doesn't work, you can get back to the default state by reverting the changes:

sudo rm /etc/X11/xorg.conf && sudo apt-get purge nvidia-current nvidia-settings

And of course then you need to reboot.

Afterwards you could attempt @conner_bw's suggestion as a last resort.

1

Have you tried the downloading and manually installing drivers? Fair warning: This is a pain to maintain yourself. This is how I was able to run 10.04 LTS for several months. My NVIDIA card (a GeForce GT430) was never detected. As a last resort, this worked great. As I type my video card now fine in 12.04... But, it never worked in 10.04 no matter how much I tried until I did this.

1) Download the newest drivers here:

http://www.nvidia.com/Download/index.aspx?lang=en-us

IMPORTANT: Keep these in a safe place in your home folder! Every time you update the kernel you will need to run the installer again. What happens is, every time Ubuntu auto updates the kernel and reboots, it complains and gets stuck. Don't panic. Simply drop to a console and run the installer again (Steps 6, 7, 8, and 9) when this happens.

2) Open module blacklist as root:

gksudo gedit /etc/modprobe.d/blacklist.conf

3) Add these lines to the bottom of the file and save:

blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv

4) Uninstall any previously installed Nvidia drivers:

sudo apt-get --purge remove nvidia-*

5) Reboot your computer

6) When an error message pops up saying that Ubuntu cannot load Nvidia drivers, choose Exit to terminal (Exit to console)

6b) If it boots without error, try Ctrl+Alt+F1, login as yourself, sudo service gdm stop

7) Install drivers (change REPLACE_ME accordingly):

cd __REPLACE_ME__
sudo sh NVIDIA-Linux-__REPLACE_ME__.run

8) Answer the questions in the installer, follow-through, exit.

9) Restart:

sudo shutdown -r now

Source: http://ubuntuforums.org/showthread.php?t=1467074

PS: To uninstall, if ever, it's sudo sh NVIDIA-Linux-__REPLACE_ME__.run --uninstall

0

The output of sudo apt-get install mesa-utils && glxinfo | grep direct is direct rendering: Yes

It's working now ; I'm not sure why. I did the suggested 3D check, which was positive, then I checked my desktop session with echo $DESKTOP_SESSION which returned "ubuntu". As far as I know that means it's running unity 3D. Then I did "unity --reset" and suddenly I had wobbly windows. I'm not sure what exactly did make it work.

belacqua
  • 23,540
Tim
  • 1