____

Saturday, April 21, 2007

Issues I had to install my graphic card in ubuntu -Nvidia Rivia TNT2-

I can tell you installing the "right" driver for your graphic will boost your ubuntu speed and also its appearance and it really becomes faster !

not installing my graphic card driver I had some problems ,
I used to see Firefox uses a lot of CPU while opening Digg.com or Blogger.com (other people also had the same problem )
I fixed that problem by installing the right driver for my TNT2 graphic card , and now Firefox and my other programs like Ktorrent or Tomboy load so much faster !

it may be a reall headache to install the "right" driver for your card, but it worth it and I tell you Ubuntu without right graphic card driver, is not Ubuntu ! it is Half of Ubuntu .

First of all I make a back up of my Xorg.conf like a good boy !
So here is how I installed my Nvidia TNT2 graphic card :
I first backed up my Xorg.conf using this command (you should really do that before installing any graphic driver program )
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
then I installed the drive using the menu , system--> adminstrator --> restricted driver manager ,then it automaticly installed my graphic card.

(I made sure I had not installed the driver using other programs like "automatix2" or "envy" , in that case I uninstalled the driver installed by them first )

How to make sure if the Graphic driver is installed and enabled ?

try this
sudo nvidia-glx-config enable
and also this :
glxgears
this should show a 3D animation and also some numbers in the terminal like

909 frames in 5.0 seconds = 181.725 FPS
1060 frames in 5.0 seconds = 211.880 FPS
1115 frames in 5.0 seconds = 222.946 FPS
998 frames in 5.0 seconds = 199.475 FPS
if those numbers which I marked in red, are less than 1000 (like 150 , 300...) then you have not enabled / installed it right !

Ah , Low Screen Reolution Problem !
but after installing I found out my screen resolution is 800*600 and it doesn't let me change it . some others also have the same problem , and a bug is listed in luanch pad for this !

the problem is the Ubuntu fails to detect the monitor Horizontal and Vertical Refresh Rate numbers, (on ubuntu site they have explained this fix in detail) .
to fix this problem I do this (I have made backup of the xorg.conf ! okay?)
sudo gedit /etc/X11/xorg.conf
(if you are in not graphic mode , you should use nano instead of gedit)

now find the Section "Monitor"
and add these lines just before EndSection :
HorizSync 30-96
VertRefresh 50-160

mind that those numbers (30-96 and 50-160) are default numbers which should work with most monitors ,but your monitor may be different , so google for it to find the right numbers.
for your own monitor .

now save the file and then restart your Ubuntu !



I was also told on the forums to add this to my Section "Screen" in Xorg.conf for better performance (this is just for my card -TNT2-)
Option "AllowGLXWithComposite" "1"

Now I have installed the driver and I am enjoying it !

+For Nividia and ATI cards there is an Automatic tool to install drivers called Envy , many people used it and they liked it ,so you may give it a try !


If you messed up your graphic in Ubuntu...
You no longer see any graphic but a black page with terminal (command prompt) ?
Don't get scared (terminal is not gonna bite you) , it is easy to recover , fix everything using commands .
cd /etc/X11/
Then
dir
this shows list of files in that folder
mv xorg.conf.backup xorg.conf
If your backup file name is diffrent change xorg.conf.backup , for exmple
mv xorg.conf.backup20070404 xorg.conf

To find out the name of the back up file just look at the list of files which "dir" command gave you.

9 comments:

Narf said...

Thanks! That helped me a lot.

Alan_New said...

Thanks also from me! Simple and usefull post. ;)

Stijn said...

Thanks a lot! I'm new in Ubuntu and posts like this help me a lot, especially the terminal commands

Zian said...

I have a NVIDIA Riva TNT2 64 Pro and after install nvidia drivers for Ubuntu Feisty, i have the resolution problem, but that fixes with your post.

This work great for me!!!

Myelin said...

Thanks for sharing your info about TNT2, i have the same card and ran into the same problem. Thanks for posting this blog. :)

IsraeliHawk said...

hard for me to believe anyone will answer.. but i'll try..
it didn't work for me (i have an Aladdin TNT2 32MB card..) and i did everything "by the book" and after a reboot - i ma using Xubuntu 7.10 - X told me the same thing - low res. only..

any ideas? i'll need any help i can get.. :/

thanks in advance..

Anonymous said...

Thanks for the pointer on the refresh and sync being missing for the monitor. I was tearing my hair out over that for ages!

Anonymous said...

Thanks a lot! Worked perfectly, just as described. Still can't play Audiosurf, but maybe that's just because it's almost 10 years old :P

masterbation said...

thank you so much I followed the instructions and it worked perfectly. I just added the 2 lines and had no problem with the resolution. just in case I have a very weird monitor (e900 princeton) and it worked. though i doubt anybody else has another of those. I have a geforce mx4000

Related Posts: