Tuesday, April 29, 2008

NVIDIA Graphic card is not working properly (UBUNTU, Linux), Help!

I had some starting trouble in enabling my NVIDIA Graphic card in my Linux system. Though I still am a novice in Linux, I have searched net and found following steps that have helped me in enabling NVIDIA on my Linux System. Before going ahead to the method, I wish to tell that my Laptop is Dell Inspiron 1520 with NVIDIA GeForce 8400M GS. Following steps helped me enabling NVIDIA:

Prerequisites:

  1. linux-restricted-modules-2.6.22-14-386_2.6.22.4-14.9_i386 at Restricted Device manager, you can use synaptic package manager to install it or you can download and install manually from this locaiton. (Linux-Restricted-Modules)

  2. Envy (Download)

  3. Download and install both from the link given.

Steps:

  1. Download NVIDIA 100.14.19 driver from NVIDIA website to a location from where you can access it easily. Give the details about the NVIDIA graphic card and download.

  2. Logout (press Ctrl+Alt+F1) to go to test console and login.

  3. Stop gdm by

Code:

Sudo /etc/init.d/gdm stop

  1. Install NVIDIA driver by going to its location where you have downloaded it.

  2. Reboot system

Code

Sudo reboot

  1. Login and go to System Tools --> NVIDIA settings (if you can’t find it here it means driver was not installed, try again from step 2)

  2. In NVIDIA settings enable driver if it is not enabled by going to System -->Administration --> Restricted Device Manager and enable it (For this you need to have Linux restricted Module installed).

  3. After enabling NVIDIA driver from restricted driver manager reboot system (sudo reboot).

  4. After reboot Open NVIDIA settings from Applications--> System tools --> Nvidia Settings. It should display all the options under GPU0, select DFP-0 (in my case it was DFP0-seiko). Click “Acquire EDID”, you will be prompted to save file, save it somewhere i.e. ~/edid.bin and copy it to /etc/X11. Now get the EDID.

Code:

Sudo cp ~/edid.bin /etc/X11/edid.bin

  1. Logout and go to text console (press Ctrl+Alt+F1) and login in text console

  2. Run envy in text mode

Code:

Sudo envy -t

  1. Clear earlier NVIDIA driver installation (100.14.19) and install new NVIDIA driver, let envy configure xorg.conf, but do not reboot i.e. in default answers say ‘Y’ or yes if envy asks to configure xorg.conf and ‘N’ or no to reboot.

  2. Open xorg.conf file


Code:

Sudo nano /etc/X11/xorg.conf


Look for section “Device” and add the following line


Code:

Option “CustomEDID” “DFP-0:/etc/X11/edid.bin


  1. And under section “Screen”, subsection “Display” make sure that your default mode is listed, if not add “1280X800” “1024X768” “800X600” to the modes lines.

  2. Save and close xorg.conf and reboot.

  3. See if everything is ok! Change screen resolution if it’s not ok, else go ahead and make sure you can see all the options in NVIDIA-settings.

  4. Reboot once again to make sure that everything is working properly (optional).

  5. You are all set. NVIDIA driver must be working properly. It did for me.

  6. Thanks to someone! Destiny, God, Me or Salil (if u know him)


No comments: