Mark Knecht wrote: > Hi, > I've been trying to get an nvidia controller working today and not > having much luck. It's complaining about failing to load kernel > module. > > As a starting point I'm following this guide: > > http://www.gentoo.org/doc/en/nvidia-guide.xml > > My nvidia device is (I think) a GeForce 6 family card: > > dragonfly ~ # lspci | grep VGA > 01:00.0 VGA compatible controller: nVidia Corporation NV44A [GeForce > 6200] (rev a1) > dragonfly ~ # > > and from this nVidia page seems to be supported by the 173.xx series drivers: > > http://www.nvidia.com/object/linux_display_ia32_173.14.25.html > > Because modinfo nvidia suggested it depended on them I've added > agpgart and i2c-core to modules.autoload and after booting this is > what's loaded: > > dragonfly ~ # lsmod > Module Size Used by > ipv6 176929 18 > sg 19077 0 > usb_storage 29021 0 > usbhid 18281 0 > snd_intel8x0 19155 0 > snd_ac97_codec 76628 1 snd_intel8x0 > ac97_bus 662 1 snd_ac97_codec > snd_pcm 42338 2 snd_intel8x0,snd_ac97_codec > ehci_hcd 27089 0 > uhci_hcd 15779 0 > snd_timer 11966 1 snd_pcm > usbcore 87247 4 usb_storage,usbhid,ehci_hcd,uhci_hcd > agpgart 19136 0 > snd 31592 4 snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer > 8139cp 12993 0 > soundcore 3607 1 snd > rtc 6022 0 > 8139too 14560 0 > i2c_core 11618 0 > snd_page_alloc 4685 2 snd_intel8x0,snd_pcm > processor 20861 0 > thermal 9266 0 > button 3526 0 > thermal_sys 8333 2 processor,thermal > dragonfly ~ # > > When I try to load the nvidia driver it just complains: > > dragonfly ~ # modprobe nvidia > FATAL: Error inserting nvidia > (/lib/modules/2.6.33-gentoo/video/nvidia.ko): No such device > dragonfly ~ # > > dragonfly ~ # modprobe --show-depends nvidia > insmod /lib/modules/2.6.33-gentoo/kernel/drivers/i2c/i2c-core.ko > insmod /lib/modules/2.6.33-gentoo/kernel/drivers/char/agp/agpgart.ko > insmod /lib/modules/2.6.33-gentoo/video/nvidia.ko > NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=27 > NVreg_ModifyDeviceFiles=1 > dragonfly ~ # > > dragonfly ~ # modprobe -v nvidia > insmod /lib/modules/2.6.33-gentoo/video/nvidia.ko > NVreg_DeviceFileMode=432 NVreg_DeviceFileUID=0 NVreg_DeviceFileGID=27 > NVreg_ModifyDeviceFiles=1 > FATAL: Error inserting nvidia > (/lib/modules/2.6.33-gentoo/video/nvidia.ko): No such device > dragonfly ~ # > > The driver exists: > > dragonfly ~ # ls -al /lib/modules/2.6.33-gentoo/video/nvidia.ko > -rw-r--r-- 1 root root 7859091 Mar 1 13:35 > /lib/modules/2.6.33-gentoo/video/nvidia.ko > dragonfly ~ # > > I'm not clear what it means by 'no such device'. Is that a message > that this driver doesn't support this card? > > I tried going down to the 96 series drivers but got the same results. > > Sort of obvious stuff in the kernel config I could think of before > sending this email is here: > > dragonfly ~ # zcat /proc/config.gz | grep AGP > CONFIG_AGP=m > # CONFIG_AGP_ALI is not set > # CONFIG_AGP_ATI is not set > # CONFIG_AGP_AMD is not set > # CONFIG_AGP_AMD64 is not set > CONFIG_AGP_INTEL=m > # CONFIG_AGP_NVIDIA is not set > # CONFIG_AGP_SIS is not set > # CONFIG_AGP_SWORKS is not set > # CONFIG_AGP_VIA is not set > # CONFIG_AGP_EFFICEON is not set > dragonfly ~ # zcat /proc/config.gz | grep NVIDIA > # CONFIG_AGP_NVIDIA is not set > # CONFIG_FB_NVIDIA is not set > dragonfly ~ # zcat /proc/config.gz | grep DRM > CONFIG_DRM=m > # CONFIG_DRM_TDFX is not set > # CONFIG_DRM_R128 is not set > # CONFIG_DRM_RADEON is not set > # CONFIG_DRM_I810 is not set > # CONFIG_DRM_I830 is not set > # CONFIG_DRM_I915 is not set > # CONFIG_DRM_MGA is not set > # CONFIG_DRM_SIS is not set > # CONFIG_DRM_VIA is not set > # CONFIG_DRM_SAVAGE is not set > dragonfly ~ # > > I assumed the Intel AGP might be usefull since it's an Intel > motherboard but it didn't help so I blacklisted it and it's not > loaded. > > Anyone able to spot what must be an obvious mistake? > > Current xorg.conf file it attached. It was done by hand so it could > easily have big problems. I tried running with no xorg.conf file but > it didn't work either. > > hald is running. > > Thanks, > Mark > > > dragonfly ~ # cat /etc/X11/xorg.conf > Section "Files" > ModulePath "/usr/lib/xorg/modules" > FontPath "/usr/share/fonts/misc/" > FontPath "/usr/share/fonts/TTF/" > FontPath "/usr/share/fonts/OTF" > FontPath "/usr/share/fonts/Type1/" > FontPath "/usr/share/fonts/100dpi/" > FontPath "/usr/share/fonts/75dpi/" > EndSection > > Section "Module" > Load "extmod" > Load "glx" > # Load "dri" > EndSection > > Section "DRI" > Mode 0666 > EndSection > > Section "InputDevice" > Identifier "Keyboard0" > Driver "kbd" > EndSection > > Section "InputDevice" > Identifier "Mouse0" > Driver "mouse" > Option "Protocol" "auto" > Option "Device" "/dev/input/mice" > Option "ZAxisMapping" "4 5 6 7" > EndSection > > Section "Extensions" > Option "Composite" "Enable" > EndSection > > Section "Device" > ### Available Driver options are:- > ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", > ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" > ### [arg]: arg optional > #Option "NoAccel" # [<bool>] > #Option "SWcursor" # [<bool>] > #Option "ColorKey" # <i> > #Option "CacheLines" # <i> > #Option "Dac6Bit" # [<bool>] > #Option "DRI" # [<bool>] > #Option "NoDDC" # [<bool>] > #Option "ShowCache" # [<bool>] > #Option "XvMCSurfaces" # <i> > #Option "PageFlip" # [<bool>] > Identifier "Card0" > Driver "nvidia" > Option "monitor-VGA1" "Samsung740n" > EndSection > > Section "Monitor" > Identifier "Samsung740n" > VendorName "Samsung" > ModelName "740n" > Option "PreferredMode" "1280x1024" > HorizSync 30-81 > VertRefresh 56-75 > EndSection > > Section "Screen" > Identifier "Screen0" > Device "Card0" > Monitor "Samsung740n" > DefaultDepth 24 > SubSection "Display" > Viewport 0 0 > Depth 8 > Modes "1280x1024" "1024x768" "800x600" > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 16 > Modes "1280x1024" "1024x768" "800x600" > EndSubSection > SubSection "Display" > Viewport 0 0 > Depth 24 > Modes "1280x1024" "1024x768" "800x600" > EndSubSection > EndSection > > > Section "ServerLayout" > Identifier "dragonfly" > Screen 0 "Screen0" 0 0 > InputDevice "Mouse0" "CorePointer" > InputDevice "Keyboard0" "CoreKeyboard" > EndSection > > dragonfly ~ # > > > > dragonfly ~ # rc-update show > bootmisc | boot > checkfs | boot > checkroot | boot > clock | boot > consolefont | boot > hald | default > hostname | boot > keymaps | boot > local | default nonetwork > localmount | boot > modules | boot > net.eth0 | default > net.lo | boot > netmount | default > ntp-client | default > ntpd | default > rmnologin | boot > sshd | default > syslog-ng | default > udev-postmount | default > urandom | boot > dragonfly ~ # > > > dragonfly ~ # cat /var/log/Xorg.0.log > > X.Org X Server 1.6.5 > Release Date: 2009-10-11 > X Protocol Version 11, Revision 0 > Build Operating System: Linux 2.6.33-gentoo i686 > Current Operating System: Linux dragonfly 2.6.33-gentoo #5 SMP PREEMPT > Mon Mar 1 12:49:22 PST 2010 i686 > Build Date: 01 March 2010 12:27:33PM > > Before reporting problems, check http://wiki.x.org > to make sure that you have the latest version. > Markers: (--) probed, (**) from config file, (==) default setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 1 12:55:09 2010 > (==) Using config file: "/etc/X11/xorg.conf" > (==) ServerLayout "dragonfly" > (**) |-->Screen "Screen0" (0) > (**) | |-->Monitor "Samsung740n" > (**) | |-->Device "Card0" > (**) |-->Input Device "Mouse0" > (**) |-->Input Device "Keyboard0" > (==) Automatically adding devices > (==) Automatically enabling devices > (WW) The directory "/usr/share/fonts/misc/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/TTF/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/OTF" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/Type1/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/100dpi/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/75dpi/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/misc/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/TTF/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/OTF" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/Type1/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/100dpi/" does not exist. > Entry deleted from font path. > (WW) The directory "/usr/share/fonts/75dpi/" does not exist. > Entry deleted from font path. > (**) FontPath set to: > > (**) ModulePath set to "/usr/lib/xorg/modules" > (**) Extension "Composite" is enabled > (WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or > 'vmmouse' will be disabled. > (WW) Disabling Mouse0 > (WW) Disabling Keyboard0 > (II) Loader magic: 0x1aa0 > (II) Module ABI versions: > X.Org ANSI C Emulation: 0.4 > X.Org Video Driver: 5.0 > X.Org XInput driver : 4.0 > X.Org Server Extension : 2.0 > (II) Loader running on linux > (++) using VT number 7 > > (--) PCI:*(0:1:0:0) 10de:0221:3842:a401 nVidia Corporation NV44A > [GeForce 6200] rev 161, Mem @ 0xf8000000/16777216, > 0xf9000000/16777216, BIOS @ 0x????????/131072 > (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) > (II) No APM support in BIOS or kernel > (II) System resource ranges: > [0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B] > [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] > [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] > [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] > [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] > [5] -1 0 0x00000000 - 0x00000000 (0x1) IX[B] > (II) "extmod" will be loaded. This was enabled by default and also > specified in the config file. > (II) "dbe" will be loaded by default. > (II) "glx" will be loaded. This was enabled by default and also > specified in the config file. > (II) "record" will be loaded by default. > (II) "dri" will be loaded by default. > (II) "dri2" will be loaded by default. > (II) LoadModule: "extmod" > (II) Loading /usr/lib/xorg/modules/extensions//libextmod.so > (II) Module extmod: vendor="X.Org Foundation" > compiled for 1.6.5, module version = 1.0.0 > Module class: X.Org Server Extension > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension MIT-SCREEN-SAVER > (II) Loading extension XFree86-VidModeExtension > (II) Loading extension XFree86-DGA > (II) Loading extension DPMS > (II) Loading extension XVideo > (II) Loading extension XVideo-MotionCompensation > (II) Loading extension X-Resource > (II) LoadModule: "glx" > (II) Loading /usr/lib/xorg/modules/extensions//libglx.so > (II) Module glx: vendor="NVIDIA Corporation" > compiled for 4.0.2, module version = 1.0.0 > Module class: X.Org Server Extension > (II) NVIDIA GLX Module 190.53 Tue Dec 8 20:47:42 PST 2009 > (II) Loading extension GLX > (II) LoadModule: "dbe" > (II) Loading /usr/lib/xorg/modules/extensions//libdbe.so > (II) Module dbe: vendor="X.Org Foundation" > compiled for 1.6.5, module version = 1.0.0 > Module class: X.Org Server Extension > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension DOUBLE-BUFFER > (II) LoadModule: "record" > (II) Loading /usr/lib/xorg/modules/extensions//librecord.so > (II) Module record: vendor="X.Org Foundation" > compiled for 1.6.5, module version = 1.13.0 > Module class: X.Org Server Extension > ABI class: X.Org Server Extension, version 2.0 > (II) Loading extension RECORD > (II) LoadModule: "dri" > (WW) Warning, couldn't open module dri > (II) UnloadModule: "dri" > (EE) Failed to load module "dri" (module does not exist, 0) > (II) LoadModule: "dri2" > (WW) Warning, couldn't open module dri2 > (II) UnloadModule: "dri2" > (EE) Failed to load module "dri2" (module does not exist, 0) > (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: X.Org Video Driver > (EE) NVIDIA: Failed to load the NVIDIA kernel module. Please check your > (EE) NVIDIA: system's kernel log for additional error messages. > (II) UnloadModule: "nvidia" > (II) Unloading /usr/lib/xorg/modules/drivers//nvidia_drv.so > (EE) Failed to load module "nvidia" (module-specific error, 0) > (EE) No drivers available. > > Fatal server error: > no screens found > > Please consult the The X.Org Foundation support > at http://wiki.x.org > for help. > Please also check the log file at "/var/log/Xorg.0.log" for additional > information. > > dragonfly ~ # > Nvidia's site seems to say that your card is supported up to the current release; perhaps try the latest version and see if it works? I seem to remember Nvidia's driver is rather kernel-version specific; if you're using a recent kernel, you should probably use a recent driver.
http://www.nvidia.com/object/linux_display_ia32_190.53.html John Moe