Monday, January 18, 2010

How To Install ATI Or NVidia Video Card In Linux

One of my servers was running Slackware 12.0 not too long ago, so I decided to update it to Slackware 13.0
The first problem I found was that the installation media was not detected automatically, so I checked under which device I had the DVD-RW.
In Linux each piece of hardware is a device and has a link in /dev.
In this case, the DVD-RW was under /dev/hdb.
Once I had the installation going and finished, I tried to start the windows manager by logging in and typing "startx" (without the quotation marks).
My big surprise was that I got an error message:

No devices detected. Fatal server error:
   No screens found

I run "lspci" to see if I had a video card and, lo and behold, I had not one, but two cards:

00:0e.0 VGA compatible controller: nVidia Corporation NV11DDR [GeForce2 01:00.0 VGA compatible controller: Trident Microsystems CyberBlade/i1

I even tried to run "xorgconfig", which would normally run up to Slackware 12.0, but it was not available.

Upon running "vi /var/log/Xorg.log", there were two devices detected:

(!!) More than one possible primary device found
(--) PCI: (0:0:14:0) 10de:0111:1545:0027 rev 178, Mem @ 0xe9000000/16777216, 0xe0000000/134217728, BIOS @ 0x????????/
65536
(--) PCI: (0:1:0:0) 1023:8500:1023:8500 rev 0, Mem @ 0xeb800000/8388608, 0xec000000/131072, 0xeb000000/8388608, BIOS
@ 0x????????/65536

The solution came by modifying the "xorg.conf" file and adding:

    BusID          "0:14:0"

under Section "Device"

The section now looks like this:

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "0:14:0"
EndSection

I had to use vi to edit it:

vi /etc/X11/xorg.conf

Once saved, I was able to start the windows manager.

Regards,

F. Bobbio C.

No comments:

Post a Comment