LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-11-2011, 03:46 AM   #1
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Rep: Reputation: 0
Installing nVidia GeForce 2 MX 400


I have installed Arch Linux quite a few weeks ago; but I'm still trying my best to install the nividia display driver for my graphics card (nVidia Geforce 2 MX 400). Not only in Arch but have tried installing on other distros and still failed.

I have read up all the documentations and I still find it hard to do this task.

When I used the terminal and executed the NVIDIA-Linux-x86-94.43.01-pkg1.run file without any window manager running, I get this problem:

Quote:
ERROR: Unable to determine the version of the kernel sources located in '/lib/modules/2.6.35-ARCH/build'. Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the 'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.

ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
Now I'm using Arch Linux Kernel 2.6.35 and I have got the source.
But where am I suppose to put it now? I do not want to change the kernel. I just want the nVidia installer to identify that there is a kernel source so that it can install. I have searched up a lot on websites and ended up with no proper guide.

This is a very old driver. So since now I have the nVidia driver installation package and also the kernel source, can anyone please help me out with
installing my graphics card driver?
Thanks in advance.
 
Old 01-11-2011, 04:12 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,985

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Had one of those cards - retired it because the proprietary mesa libs are getting a bit old. Problem is it now compiles code in your kernel tree.

Here's what you do.
1. Install kernel source and copy the /boot/config-version of your kernel to /usr/src/linux-<version>/.config
2. make sure /lib/modules/<kernelversion>/build is a symlink to your kernel source
3. cd to /lib/modules/<kernelversion>/build
4. Run 'make clean && make'
5. run the nvidia installer from any directory.
 
Old 01-11-2011, 04:45 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,118

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
AFAIK you only need the linux headers installed in order to compile the NVIDIA driver, but I think the complete source is ok as well.

The source you put in /usr/src/kernel-version-name, and then create a symlink linux to this directory:
Code:
cd /usr/src
ln -s kernel-version-name linux
No need to compile the kernel again.

jlinkels
 
Old 01-11-2011, 06:22 AM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
As a plus to the above; with my mx4000 card I had to actually start "make" in the kernel source tree, let it run for like 20 seconds, then hit cntrl-c and dont do "make clean", then it installed OK for me.

cd /usr/src/linux
make

then hit cntrl-c after 20sec or so, then try to install the driver
hope that helps somebody
 
Old 01-11-2011, 08:54 AM   #5
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
^ Thanks a lot to everyone for their support. I finally got it installed.
Now I have another problem. Since my graphics card drivers are installed, I do not feel any difference. It feels the same as before. So I checked up my /var/log/Xorg.0.log and searched for nVidia.
I got this:
Quote:
[21.609] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
I guess I don't have some GLX extension. If that is not the case then how do I add my compatible NVIDIA X driver at boot up?
 
Old 01-11-2011, 08:58 AM   #6
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Can you go over in detail the procedure you used to install it?

also, try "modprobe nvidia" as root, then startx, etc

here is my output for "lsmod"

Code:
Module                  Size  Used by
nvidia               4658277  22 
oss_usb               105302  4 
oss_ich                15403  8 
osscore               525782  6 oss_usb,oss_ich
ipv6                  231887  20 
pcmcia                 32191  0 
pcmcia_core            10932  1 pcmcia
lp                      7105  0 
video                  16780  0 
output                  1488  1 video
fuse                   56089  3 
ppdev                   4997  0 
parport_pc             18122  1 
processor              26435  0 
fan                     2746  0 
parport                25467  3 lp,ppdev,parport_pc
i2c_nforce2             4736  0 
nvidia_agp              4216  1 
i2c_core               16118  2 nvidia,i2c_nforce2
rtc_cmos                7938  0 
thermal                10433  0 
agpgart                23894  2 nvidia,nvidia_agp
rtc_core               11999  1 rtc_cmos
thermal_sys            11490  4 video,processor,fan,thermal
shpchp                 27141  0 
forcedeth              47729  0 
ac97_bus                 834  0 
psmouse                41621  0 
button                  4005  0 
rtc_lib                 1534  1 rtc_core
hwmon                   1097  1 thermal_sys
serio_raw               3574  0 
evdev                   7008  7 
sg                     21381  0
also, what is in /proc/driver/nvidia/cards?
use a editor to open the file in there
heres mine for ref
Code:
Model: 		 GeForce4 MX 4000
IRQ:   		 19
Video BIOS: 	 04.18.20.39.02
Card Type: 	 AGP
DMA Size: 	 32 bits
DMA Mask: 	 0xffffffff

Last edited by linus72; 01-11-2011 at 09:03 AM.
 
Old 01-11-2011, 09:07 AM   #7
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Sure, linus72. I searched a lot on the ArchWiki Documentation and used a program called pacman and installed the package "nVidia-96xx-utils (96.43.19-1)" and also "nVidia-96xx". Previousl I had already installed the "mesa" and the "xorg" package.
Since I am using Openbox window manager, I have not edited anything in the boot up cause I do not know how to. And also I can say the nVidia driver is installed cause I can see the nVidia X Server Settings in the menu here.
To me it feels like even after installation the nvidia driver is not starting up...
Also when I execute modprobe nvidia as root; I get this:
Quote:
FATAL: Error inserting nvidia (/lib/modules/2.6.35-ARCH/kernel/drivers/video/nvidia.ko): No such device

Last edited by Auzern; 01-11-2011 at 09:09 AM.
 
Old 01-11-2011, 09:14 AM   #8
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,118

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
In addition check the name of your driver loaded in /var/log/Xorg.0.log

Code:
(II) LoadModule: "nvidia"
(II) Loading /usr/lib/xorg/modules/drivers//nvidia_drv.so
(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: XFree86 Video Driver
The module loaded should look like "nvidia", not "nv"

This is the corresponding line in /etc/X11/xorg.conf:
Code:
Section "Device"
    Identifier     "NVIDIA MX440"
    Driver         "nvidia"
EndSection
Now I also remember some modules have to be disabled in /etc/X11/xorg.conf:
Code:
Section "Module"

#       Load    "bitmap"
#       Load    "dri"
#       Load    "vbe"
#       Load    "ddc"
#       Load    "int10"
    Load           "dbe"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
    Load           "record"
    Load           "type1"
    Load           "fbdevhw"
EndSection
 
Old 01-11-2011, 09:17 AM   #9
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
it doesnt seem to have installed?

this is what I did for my card, first remove nvidia-96xx, etc using pacman
pacman -R nvidia-96xx

I grabbed the latest drivers from here
ftp://download.nvidia.com/XFree86/Linux-x86/96.43.19/

and did this as root:
I put the nVidia driver in /usr/src and then did in terminal as root

sh NVIDIA-Linux-x86-96.43.19-pkg0.run

and when it was done it made a xorg.conf, then I did "modprobe nvidia"
then startx

also make sure to remove any vga= from your grub menu.lst or grub.conf, see here
http://www.linuxquestions.org/questi...ml#post4156227
 
Old 01-11-2011, 09:37 AM   #10
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks for the replies. I just saw my /etc/X11/xorg.conf.d folder (there is no xorg.conf in /etc/X11). And I saw a few files with a 10,20,30 prefix. Here they are:
10-evdev.conf
10-quirks.conf
10-synaptics.conf
20-gpudriver.conf
20-nvidia.conf
50-wacom.conf
But there is not xorg.conf again.

Now according to linus72. I did exactly as you said. I put the script file in /usr/src and ended up with the same result that the kernel source cannot be found.
In the /usr/src directory, I have these two files: linux-2.6.35-ARCH and the NVIDIA-Linux-x86-96.43.19-pkg0.run. I executed the file from this directory itself.

Last edited by Auzern; 01-11-2011 at 09:38 AM.
 
Old 01-11-2011, 09:41 AM   #11
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
and to be sure pacman installed kernel26-headers?
 
Old 01-11-2011, 09:55 AM   #12
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
I just installed kernel26-headers and ran the script again. Still no luck.
 
Old 01-11-2011, 10:14 AM   #13
Auzern
Member
 
Registered: Jul 2010
Posts: 44

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
Had one of those cards - retired it because the proprietary mesa libs are getting a bit old. Problem is it now compiles code in your kernel tree.

Here's what you do.
1. Install kernel source and copy the /boot/config-version of your kernel to /usr/src/linux-<version>/.config
2. make sure /lib/modules/<kernelversion>/build is a symlink to your kernel source
3. cd to /lib/modules/<kernelversion>/build
4. Run 'make clean && make'
5. run the nvidia installer from any directory.
I just followed the steps like you said. Also I went through linus72's steps.

According to business_kid,
I got stuck at step 4.
Here is what I get:
Quote:
# make clean && make
scripts/Makefile.clean:17: /usr/src/linux-2.6.35-ARCH/arch/x86/boot/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.35-ARCH/arch/x86/boot/Makefile'. Stop.
make: *** [archclean] Error 2
 
Old 01-12-2011, 04:03 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,985

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
You should run that command from /usr/src/linux-2.6.35-ARCH/

If that's where you ran it from, it looks as if your kernel sources are incomplete. Try removing & installing them or I can put up a Makefile from 2.6.35.4/arch/x86/boot and you can grab that and try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3D Acceleration on nVidia GeForce MX/MX 400 card Person_1873 Linux - Hardware 9 01-04-2008 11:24 PM
Slow FPS full screen FC5 using Nvidia GeForce MMX 400 sponghead Linux - Hardware 6 07-28-2006 09:47 AM
help editing xf86config for nvidia geforce mx440 after installing nvidia driver linguist Linux - Newbie 11 06-13-2006 06:31 AM
Installing a driver for Nvidia GeForce2 MX/400 Moses420ca Linux - Newbie 20 03-04-2006 11:59 AM
1024x768 geforce 2 mx 400 hendrata Linux - Hardware 1 08-04-2005 06:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration