Thursday, July 5, 2007

HOWTO replace ati with nvidia graphic card on ubuntu 7.04

Ok,
so you bought yourself a brand new Nvidia graphics card to replace your old ati card that gave you hell of problems or was just out of date. You pull your old card out of computer and put in the new one. Start the computer and TADA. Xorg error. You got the wrong drivers.

So,
what to do. Say yes to all errors. You don't need to see logs or anything. Just get to the point you can log into your ubuntu machine via shell. Log in. Now type:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_oldati

With this you will save configuration of your monitor, mouse, keybord and maybe some other things.

Now type:

sudo apt-get install nvidia-glx nvidia-settings

With this you will install necessary drives and graphic menu for your new card. Now type:

sudo nano /etc/X11/xorg.conf

It should open xorg.conf file. Find the part where it says (you can find it by pressing ctrl+w and type ati ) :

Driver "ati"

and replace it with

Driver "nvidia"


Save the file by pressing ctrl+o and enter twice. Save the new xorg.conf by typing:


sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_oldnvidia

Now reboot your computer and everything should be fine. If it's still not working log into the shell again and type:

sudo dpkg-reconfigure xserver-xorg

Reed what it say and if you don't know what to do better leave everything at default. After finishing type:

sudo cp /etc/X11/xorg.conf_oldnvidia /etc/X11/xorg.conf

Reboot and TADA. It works. C'est ca. Enjoy.

ps.

You can change the settings of your new card by opening terminal and writing

sudo nvidia-settings

No comments: