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 10-29-2003, 12:23 PM   #1
oskernel
LQ Newbie
 
Registered: Sep 2003
Location: China
Posts: 25

Rep: Reputation: 15
nvidia driver installation in 2.6.0 kernel fails?


I have download the path for 2.6 kernel from minion.de and 'make install' successfully(lsmod will show nvidia; my kernel is 2.6.0-test8(and 2.6.0-test9); XFree86 has been modified), but when I startx, it says "cannot load nvidia"!!

Is there anybody who has met the same problem? and how to deal with it?
 
Old 10-30-2003, 01:39 AM   #2
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
thats because X looks to load nvidia.o module, but new kernel uses nvidia.ko module, in the rc.local file add the line: "/sbin/modprobe nvidia"
that should do it
also o not forget to compile/install the glx and change the xf86config file
 
Old 10-30-2003, 05:31 AM   #3
oskernel
LQ Newbie
 
Registered: Sep 2003
Location: China
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks! Now I have add "/sbin/modprobe nvidia" into /etc/rc.local and, my XFree86 is as followingI will reboot now and test it.)

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
#Load "dri"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unprobed Monitor"
HorizSync 30.0 - 60.0
VertRefresh 56.0 - 75.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 MX (generic)"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
 
Old 10-30-2003, 06:10 AM   #4
oskernel
LQ Newbie
 
Registered: Sep 2003
Location: China
Posts: 25

Original Poster
Rep: Reputation: 15
Oh, no, it still does not work !
what's the problem ???
 
Old 10-30-2003, 09:47 AM   #5
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
when it is booting see if it sais cannot load module nvidia anywhere before the login prompt.

note: if you recompile your kernel you need to re-install the module again every time you compile the kernel.
 
Old 10-30-2003, 10:02 AM   #6
oskernel
LQ Newbie
 
Registered: Sep 2003
Location: China
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks!
but i am not a linux newbie(have been using and developing linux for more than 5 years). i use insmod/modprobe nvidia(.ko) normally(it loaded successfully), and lsmod will show the module. i also have recompile the nvidia driver after recompile 2.6 kernel.
and my 2.6.0-test9 kernel(including Xwindow on "nv" driver) runs properly, it means everything goes well except "nvidia" driver.
(i have built nv driver into kernel(using Y, not m), does it matter? i will try building it as module to see whether it does matter or not.)
 
Old 10-30-2003, 11:29 AM   #7
melquiades
Member
 
Registered: Jul 2003
Location: Northern Scotland
Distribution: Slackware 9.1
Posts: 48

Rep: Reputation: 15
please keep us informed on how this turns out - I was thinking about trying the 2.6 kernel but have a nvidia geforce 4 MX like yours, and since I'm very less experienced than you I don't want to try it if there are big problems with the nvidia drivers.
hope it is working out for you, good luck
mlqds
 
Old 10-30-2003, 07:59 PM   #8
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,372

Rep: Reputation: 46
well nvidia and 2.6 normally run perectly.. one thing bugs me, you said you used y instead of m in the kernel for nv.. I do not recall the kernel actualyl having anything for nvidia other than framebuffer ( I recommend against ) certainly there is nothing builtin for nvidia X driver, but I am on test8 not 9, I will check that tonight. also the nvidia glx driver requires nvidia module to be loaded ()listed in modules) so I am betting you need it to be modular.
 
Old 10-30-2003, 09:09 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Quote:
Originally posted by oskernel
Thanks!
but i am not a linux newbie(have been using and developing linux for more than 5 years). i use insmod/modprobe nvidia(.ko) normally(it loaded successfully), and lsmod will show the module. i also have recompile the nvidia driver after recompile 2.6 kernel.
and my 2.6.0-test9 kernel(including Xwindow on "nv" driver) runs properly, it means everything goes well except "nvidia" driver.
(i have built nv driver into kernel(using Y, not m), does it matter? i will try building it as module to see whether it does matter or not.)
Every since test7 I have had to modprobe -f nvidia to get the module to load properly you may want to give that a try also I have nothing built into the kernel and if you are having trouble with getting the frame buffer working set CONFIG_FB_VGA16=n and just have the vesa set.

[edit]
Also I do not have the fbdevhw being loaded in the XF86Config-4.
[/edit]

Last edited by HappyTux; 10-30-2003 at 09:11 PM.
 
  


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
kernel source and nvidia driver installation issues - have searched timsch75 Slackware 7 11-12-2005 07:36 PM
nvidia driver fails on 3d but works on 2d samac Slackware 9 02-17-2005 06:58 AM
Kernel compile breaks both nvidia driver module and dirver installation darkleaf Linux - Software 9 08-19-2004 05:24 PM
Nvidia driver fails installation (again) SilenceX Mandriva 24 04-14-2004 10:28 AM
Kernel header files needed for Nvidia driver installation natalinasmpf Linux - Hardware 10 12-08-2003 06:55 AM


All times are GMT -5. The time now is 12:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration