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 or (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 :
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/
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.


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

Roderick789 said...

Dude,!!! Thanks soo much, i'm new at Ubuntu and i was a lil bit disapointed. But u saved my S.O.! xD heheh thanks bro!.

My problem was the resolution thing, i just added the vert. and hor. things but mine is
H 30-70
V 50-60

and done!



computer (48) ubuntu (46) linux (28) tutorial (20) opinion (17) programming (14) software overview (13) terminal (12) troubleshooting (8) life (7) literature (7) poem (7) human languages (6) vim (6) bash (5) google (5) python (5) android (4) cars (4) phpBB (4) suggestion (4) tips (4) 12.04 (3) Chef (3) extension and addons (3) firefox (3) java (3) personal (3) russian (3) shell (3) windows (3) 64bit (2) Calligraphy (2) Chicago (2) Vagrant (2) apple (2) backup (2) bug (2) code (2) eclipse (2) funny (2) google chrome (2) idea (2) monitor (2) php (2) phpBB3 (2) shorter prompt (2) ssh (2) virtualbox (2) $_SERVER['REQUEST_URI'] (1) 2.7 (1) ALT+Backspace (1) AVR (1) Alt-Printscreen-K (1) AutoRotate (1) CTRL+ALT+DELETE (1) DRM (1) Debugging (1) Gimp (1) Gimp 2.8 (1) Microcontroler (1) Restart X (1) UML (1) Ventra (1) adsense (1) amazon (1) audio (1) aws (1) background process (1) battery (1) bing (1) blank (1) blogging (1) bmw (1) boot (1) business review (1) car (1) cd (1) chrome (1) comcast (1) computer kubuntu (1) conference (1) cookie (1) cron (1) database (1) date (1) display (1) domain name (1) download manager (1) dual boot (1) dual monitor (1) extensions (1) feature request (1) file (1) folder (1) freeze (1) gimp single window (1) git (1) gnome 3.10 (1) google docs (1) google plust (1) google+ (1) grep (1) icon (1) install (1) iterator (1) links (1) linu (1) linux links (1) list (1) mac os (1) media server (1) microsoft (1) moonlight (1) music (1) mysql (1) name (1) nautilus (1) netflix (1) notepad++ (1) parking (1) permission (1) philosophy (1) photo (1) prompt (1) protest (1) ps3mediaserver (1) putty (1) read from file (1) realtek (1) resolution (1) roku (1) samsung (1) scala (1) screenshot (1) security (1) selinux (1) server (1) skype (1) space (1) spam (1) spambot (1) sql (1) suspension (1) system monitor (1) tar (1) task manager (1) template design (1) th23 domain (1) thinking (1) ubuntu 13.10 (1) unity (1) vimrc (1) virtual machine (1) weblogic (1) wget (1) with space (1) xorg (1) xrand (1)