Jump to content

Nvidia drivers installation


R0ck80y
 Share

Recommended Posts

I'm running mandriva 2006 on amd 64 bit with nvidia geforce 5200fx (128mb). The control center detects the graphics card but there is no seperate nvidia display config menu. Games dont run on linux; even some heavy flash games (like 3D logic) run slowly. I tried to install drivers thru urpmi:

 

[root@localhost parag]# urpmi --proxy=netmon.iitb.ac.in:80 --proxy-user=ask nvidia (i access net thru proxy where i stay)

 

i get the following :

 

One of the following packages is needed:

1- kernel-source-stripped-2.6.14.2mdk-2.6.14-2mdk.i586 : The source code of the Linux kernel stripped for post build. (to install)

2- kernel-source-2.6.14.2mdk-2.6.14-2mdk.i586 : The source code for the Linux kernel. (to install)

3- kernel-multimedia-source-2.6.14-0.mm.3.i586 : The source code for the Linux kernel (to install)

4- kernel-source-2.6-2.6.12-22mdk.i586 : The source code for the Linux kernel. (to install)

5- kernel-source-stripped-2.6-2.6.12-22mdk.i586 : The source code of the Linux kernel stripped for post build. (to install)

6- kernel-source-stripped-2.6.16.1mdk-1-1mdk.i586 : The source code of the Linux kernel stripped for post build. (to install)

7- kernel-source-2.6.16.1mdk-1-1mdk.i586 : The source code for the Linux kernel. (to install)

What is your choice? (1-7)

 

Am a little wary of recompiling the kernel nd so dunno where to go from here. I think my kernel is 2.6.12-12mdk ( as in /lib/modules/ folder). Me a noob in linux so plz help me out in installing the drivers. Thanx :)

Link to comment
Share on other sites

It's not re-compiling the kernel, it's just that the Nvidia drivers need the kernel-source to compile from (they do this automatically). Install the correct kernel-source for your kernel, and you'll be fine.

 

Which choice should i enter?? none of the entries match the kernel make that i have (ie 2.6.12-12mdk ). Pardon me if i misunderstood ur reply.

Link to comment
Share on other sites

If you are using the 2.6.12-12 kernel, then you need to install kernel-source-2.6.12-12mdk.

 

Are you familiar with how to install packages (software)?

 

If you type mcc as root from the console, you can do package installation using a GUI.

 

mcc

Software Management

Look at Installable Software and Install......

Link to comment
Share on other sites

Well i guess i dont have a kernel-source after all :D as the /usr/src/ dir doesnt have a linux folder( or a soft link to it). Even the /usr/src/RPM/SOURCES/ folder is empty.

The lilo.conf file looks like this:

 

 

# File generated by DrakX/drakboot

# WARNING: do not forget to run lilo after modifying this file

 

default="linux"

boot=/dev/hda

map=/boot/map

keytable=/boot/us.klt

menu-scheme=wb:bw:wb:bw

prompt

nowarn

timeout=100

message=/boot/message

image=/boot/vmlinuz

label="linux"

root=/dev/hda6

initrd=/boot/initrd.img

append="resume=/dev/hda5 splash=silent"

vga=788

image=/boot/vmlinuz

label="linux-nonfb"

root=/dev/hda6

initrd=/boot/initrd.img

append="resume=/dev/hda5"

image=/boot/vmlinuz

label="failsafe"

root=/dev/hda6

initrd=/boot/initrd.img

append="failsafe resume=/dev/hda5"

other=/dev/hda1

label="windows"

table=/dev/hda

other=/dev/hda2

label="windows1"

table=/dev/hda

..............

 

So now do i have to install a kernel source?? and which one??

P.S. i have this dir structure---> /lib/modules/2.6.12-12mdk/kernel/ which contains drivers, sound etc as subfolders. Does this have something to do with the installed kernel??

Link to comment
Share on other sites

So now do i have to install a kernel source?? and which one??

P.S. i have this dir structure---> /lib/modules/2.6.12-12mdk/kernel/ which contains drivers, sound etc as subfolders. Does this have something to do with the installed kernel??

 

Actually, it *has* something to do with your kernel and it's version. However, it's possible to keep different kernel versions on one system. To be sure which one you're using, type in the following in a console window:

 

"uname -a"

 

The output tells you the correct version.

 

Regards,

 

Scoonma

Link to comment
Share on other sites

ok,thanx Scoonma......uname -a shows me this:-

Linux localhost 2.6.12-12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686 AMD Athlon 64 Processor 2800+ unknown GNU/Linux

 

So i guess the kernel i'm using is 2.6.12-12mdk....

 

Now for installation of the drivers i need to :

1) install the above kernel-source

2) configure nd compile it ..i was planning to refer to the link :

http://www.linuxheadquarters.com/howto/tun...nelconfig.shtml

for this step.

3) then use the urpmi command to install nvidia drivers

 

Is that ok?? or am i missing some steps in between?? :unsure:

Edited by R0ck80y
Link to comment
Share on other sites

The link you have posted is for Configuring A New Kernel. You do not need to do this.

 

Have a look at the FAQ here:

https://mandrivausers.org/index.php?showtopic=4567

 

 

Then where will i get drivers for nvidia geforce 5200fx ( for free :P )?? Can u plz give some links?? Will urpmi take care of it after i have installed the source??

Edited by R0ck80y
Link to comment
Share on other sites

To get the NVIDIA driver you go directlty to Nvidias own website and download the driver for free. They also have a very detailed but easy and simple to follow description to follow how to install the driver in Linux shown there as well.

What the members have been trying to tell you is that you must also have the kernel-source version that exactly matches your kernel version. Kernel and kernel-source are two entirely different packages. Open Mcc and look at Software Management and then installed software. If you cannot see kernel-source2.6.12-12 in there then it is not installed. Go to the Install Software part and scroll through the list for it there and click on it to install it.

 

Cheers. John.

Link to comment
Share on other sites

Hi there,

 

ok i installed the nvidia drivers thru urpmi including dkms-nvidia, dkms-minimal and dkms. The source and the kernel match. Made necessary (seemingly correct) changes in xorg.conf....here's a copy of what it looks like:

 

# File generated by XFdrake.

 

# **********************************************************************

# Refer to the XF86Config man page for details about the format of

# this file.

# **********************************************************************

 

Section "Files"

# Multiple FontPath entries are allowed (they are concatenated together)

# By default, Mandrake 6.0 and later now use a font server independent of

# the X server to render fonts.

FontPath "unix/:-1"

EndSection

 

Section "ServerFlags"

#DontZap # disable <Crtl><Alt><BS> (server abort)

AllowMouseOpenFail # allows the server to start up even if the mouse does not work

#DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)

EndSection

 

Section "Module"

Load "dbe" # Double-Buffering Extension

Load "v4l" # Video for Linux

Load "extmod"

Load "type1"

Load "freetype"

Load "glx" # 3D layer

EndSection

 

Section "InputDevice"

Identifier "Keyboard1"

Driver "keyboard"

Option "XkbModel" "pc105"

Option "XkbLayout" "en_US"

Option "XkbOptions" "compose:rwin"

EndSection

 

Section "InputDevice"

Identifier "Mouse1"

Driver "mouse"

Option "Protocol" "ExplorerPS/2"

Option "Device" "/dev/mouse"

Option "ZAxisMapping" "6 7"

EndSection

 

Section "Monitor"

Identifier "monitor1"

VendorName "Plug'n Play"

ModelName "700B "

HorizSync 30-71

VertRefresh 50-160

 

# TV fullscreen mode or DVD fullscreen output.

# 768x576 @ 79 Hz, 50 kHz hsync

ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

 

# 768x576 @ 100 Hz, 61.6 kHz hsync

ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

EndSection

 

Section "Device"

Identifier "device1"

VendorName "nVidia"

BoardName "NVIDIA GeForce FX (generic)"

Driver "nvidia"

Option "DPMS"

EndSection

 

Section "Screen"

Identifier "screen1"

Device "device1"

Monitor "monitor1"

DefaultColorDepth 24

 

Subsection "Display"

Depth 8

Virtual 1024 768

EndSubsection

 

Subsection "Display"

Depth 15

Virtual 1024 768

EndSubsection

 

Subsection "Display"

Depth 16

Virtual 1024 768

EndSubsection

 

Subsection "Display"

Depth 24

Virtual 1024 768

EndSubsection

EndSection

 

Section "ServerLayout"

Identifier "layout1"

InputDevice "Keyboard1" "CoreKeyboard"

InputDevice "Mouse1" "CorePointer"

Screen "screen1"

EndSection

 

 

I make the changes in init3 then i log in. Now when i type

# glxgears

 

in the console, the screen blanks out and i enter the login screen again. It happens everytime i run any of the linux games.

What do i do now?? :sad:

Edited by R0ck80y
Link to comment
Share on other sites

All errors associated with the loading of /etc/X11/xorg.conf can be found in /var/log/Xorg.0.log or /var/log/messages. I would look at these two files for errors which may help determine your problem.

 

 

Also, as root type these commands from a terminal and post the output:

 

cat /proc/driver/nvidia/agp/status

 

cat /proc/driver/nvidia/agp/card

 

cat /proc/driver/nvidia/agp/host-bridge

 

The output from these diagnostic commands may also help us determine your problem.

 

 

Another thing just came to mind. You have a new Mandriva 2006 installation. Have you updated using urpmi? There are some problems with xorg as shipped with the Mandriva 2006 CD's that are resolved with an update.

Edited by daniewicz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...