This is, neither the stable nor the unstable nvidia-kernel module works with the updated xorg-x11. Reproducible: Always Steps to Reproduce: 1. use nvidia instead of nv as driver 2. X unable to start double-check: 1. use nv instead of nvidia 2. X starts as expected Actual Results: Message: Fatal server error: no screens found when starting X. Expected Results: run X smoothly Portage 2.0.51.19 (default-linux/x86/2005.0/2.4, gcc-3.4.3, glibc-2.3.4. 20041102-r1, 2.4.30 i686) ================================================================= System uname: 2.4.30 i686 AMD Athlon(tm) XP 2700+ Gentoo Base System version 1.6.12 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#1, Apr 30 2005, 09:29:08)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.2.3-r5, 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.4.19-r1, 2.4.22-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon-xp -msse -mmmx -m3dnow - fstack-protector" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/ 3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/ shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/ kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/ config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/ share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/ texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=athlon-xp -msse -mmmx -m3dnow - fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages loadpolicy sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aac aalib aavm acpi acpi4linux alsa apache2 apm arts artswrappersuid audiofile avi bash-completion bdf berkdb bitmap-fonts bluetooth bonobo bzlib caps cddb cdf cdparanoia cdr chroot cjk codecs cpdflib crypt cscope cups curl curlwrappers dbase dbm dbx dga dio divx4linux doc dv dvb dvd dvdr dvdread emboss encode erandom esd exif f2c f77 faac faad fam ffmpeg fftw firebird flac font-server foomaticdb fortran gcj gd gif gimp gimpprint glut gnokii gnome gphoto2 gpm gps graphviz gs gtk gtk2 gtkhtml guile hardened hardenedphp hbci ieee1394 image imagekits imagemagick imap imlib imlib2 innodb ipv6 irda java javacomm javascript jikes jp2 jpeg junit kde lcms ldap libg++ libwww lirc live lzo lzw lzw-tiff mad mailbox maildir mailwrapper makecheck mbox mcal md5sum memlimit mhash mikmod mime mmx mmx2 mng moneyplex monkey motif mozcalendar mozilla mp3 mpeg mpeg4 mpi mplayer msdav mule mysql mythtv native ncurses netcdf nis nls nvidia oav odbc offensive ogg oggvorbis ooo-kdeopenal opengl oss pam pam-mysql pcre pda pdflib perl php physfs pic pie plotutils png pnp portaudio posix postgres ppds python qt quicktime quotas readline rtc ruby samba sasl scanner sdl slang smime sockets speedo speex spell spl sqlite sse ssl stencil-buffer svga tcltk tcpd tetex theora tidy tiff tokenizer transcode truetype truetype-fonts trusted type1 type1-fonts usb uudeview v4l videos vorbis wmf xemacs xfs xine xml xml2 xmms xosd xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 63246 [details] xorg-x11 log file attached xorg-x11 log file generated when failing As a side note: With several non-trivial bugs open, how come xorg-x11 rev. 6.8.2-r2 is marked 'stable'?
Created attachment 63248 [details] xorg works when using nv instead of nvidia
It would be appreciated if you attach your xorg.conf for the non-working configuration.
Created attachment 65161 [details] non-working version of XF86Config Replace string "nvidia" in attachment with "nv" and X11 works.
Ah, I was unaware the difference was that small. Do you have the latest nvidia-glx installed? If so, could you attach the contents of lspci?
Here are the installed version numbers: media-video/nvidia-kernel Latest version available: 1.0.7667 Latest version installed: 1.0.7667 media-video/nvidia-glx Latest version available: 1.0.7667 Latest version installed: 1.0.7667 ..and here comes the lspci output: 0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333] 0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 A GP] 0000:00:09.0 Multimedia video controller: Brooktree Corporation Bt848 Video Capt ure (rev 12) 0000:00:0a.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 05 ) 0000:00:0a.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 05) 0000:00:0b.0 Ethernet controller: 3Com Corporation 3c900 10Mbps Combo [Boomerang ] 0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 80) 0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 80) 0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Contr oller (rev 80) 0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) 0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge 0000:00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT82 3x/A/C PIPC Bus Master IDE (rev 06) 0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8 237 AC97 Audio Controller (rev 50) 0000:00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74) 0000:01:00.0 VGA compatible controller: nVidia Corporation NV36.1 [GeForce FX 57 00 Ultra] (rev a1)
Think I may know what the fix may be. Looks exactly like what just happened to me after a big system update. * x11-base/xorg-x11-6.8.2-r2 * sys-devel/gcc-3.4.3-r1 Was trying to install nvidia-kernel-1.0.7667, but kept getting error during boot that nvidia module not loading. If manually modprobed it got that: 'Error inserting nvidia: .... Invalid module format. Googled and found someone mention about different version of gcc used to compile the kernel and nvidia-kernel. But this happens all the time, so would guess there has to be a big diff in the gcc versions. Tried various unmerges, merging different version of nvidia and same error. Went back to the different gcc versions. Checked dmesg found this: nvidia: version magic '2.6.10-gentoo-r6 preempt K7 gcc-3.4' should be '2.6.10-gentoo-r6 preempt K7 gcc-3.3' Also ran /usr/bin/nvidia-bug-report.sh and got same report at the end. Recompiled the same kernel, with same .config, modprobe still gave same error, moved new bzImage into /boot. Not sure necessary though. Remerged nvidia-kernel and glx. Rebooted and nvidia module loaded fine. In it right now. So check dmesg for the gcc version difference and if so recompile the kernel.
Did forget to mention that above is for an x86 system. Just incase it does make a diff. But is still worth a look.
Thank you for the hint, also I believe my problem is a tad different. In my case, the nvidia kernel module loads alright: > modprobe nvidia Note: /etc/modules.conf is more recent than /lib/modules/2.4.30/modules.dep Warning: loading /lib/modules/2.4.30/video/nvidia.o will taint the kernel: non-GPL license - NVIDIA See http://www.tux.org/lkml/#export-tainted for information about tainted modules Module nvidia loaded, with warnings > dmesg ... NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7667 Fri Jun 17 07:01:04 PDT 2005 ... > lsmod | grep nvidia nvidia 3421804 0 (unused)
...and after a > depmod -a even the modules.conf warning vanishes, when loading the module: > rmmod nvidia; modprobe nvidia Warning: loading /lib/modules/2.4.30/video/nvidia.o will taint the kernel: non-GPL license - NVIDIA See http://www.tux.org/lkml/#export-tainted for information about tainted modules Module nvidia loaded, with warnings
Is it possible that for some reason Xorg does not recognize the video card in combination with the nvidia kernel module (note last line)? > X -scanpci Probing for PCI devices (Bus:Device:Function) (0:0:0) VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333] (0:1:0) VIA Technologies, Inc. VT8366/A/7 [Apollo KT266/A/333 AGP] (0:9:0) Brooktree Corporation Bt848 Video Capture (0:10:0) unknown card (0x1102/0x0020) using a Creative Labs SB Live! EMU10k1 (0:10:1) unknown card (0x1102/0x0020) using a Creative Labs SB Live! MIDI/Game Port (0:11:0) 3Com Corporation 3c900 Combo [Boomerang] (0:16:0) unknown card (0x1106/0x3038) using a VIA Technologies, Inc. USB (0:16:1) unknown card (0x1106/0x3038) using a VIA Technologies, Inc. USB (0:16:2) unknown card (0x1106/0x3038) using a VIA Technologies, Inc. USB (0:16:3) unknown card (0x1106/0x3104) using a VIA Technologies, Inc. USB 2.0 (0:17:0) unknown card (0x1106/0x3177) using a VIA Technologies, Inc. VT8235 ISA Bridge (0:17:1) unknown card (0x1106/0x0571) using a VIA Technologies, Inc. VT82C586A/ B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (0:17:5) unknown card (0x1695/0x3005) using a VIA Technologies, Inc. VT8233/A/ 8235 AC97 Audio Controller (0:18:0) unknown card (0x1695/0x3005) using a VIA Technologies, Inc. VT6102 [Rhine-II] (1:0:0) unknown card (0x147b/0x8f27) using a nVidia Corporation GeForce FX 5700 Ultra
Tried anything I could think of: reemerged glibc, xorg-x11, nvidia-kernel, nvidia-glx ... rebooted. What's weird, though, is the fact that I have to manually create the nodes for nvidiactl and nvidia0 in /dev. Also, even though the nvidia module is loaded, there's no interrupt assigned to the graphics board. The BIOS settings, however, _do_ assign a VGA IRQ. Strange... :(
Note to self: Even though the config file asks for several modules to be loaded, the log file does not show a single load operation in either case, working and non-working.
i think i figured out where the problem is and solved it (i hope, its not working for me only). first of all my log file had much more information then yours. It was telling me: ... (II) LoadModule: "nvidia" (WW) Warning, couldn't open module nvidia (II) UnloadModule: "nvidia" (EE) Failed to load module "nvidia" (module does not exist, 0) ... so i checked the X11 modules dir (/usr/X11R6/lib/modules/drivers/) and found out that there was NO nvidia_drv.so or nvidia_drv.o so i reemerged nvidia-kernel but it still wasn't there. Then i installed the drivers manually with the .run file from nvidia. After that i got a nearly working X it crashes without a warning after a quick look in the ModulePath i found two modules for nvidia: nvidia_drv.o nvidia_drv.so i deleted the first one (.o) couse all other files there where .so's after that all works fine Summery: the install routines from the nvidia drivers must be corrected i don't know how to do it but i think you know how
Nope, does not work for me. I still get: (EE) No devices detected. Fatal server error: no screens found I had both the .o and .so drivers in the ModulePath, removed both and reinstalled -- to no avail. :(
(In reply to comment #14) > i think i figured out where the problem is and solved it (i hope, its not > working for me only). > > first of all my log file had much more information then yours. It was telling > me: > ... > (II) LoadModule: "nvidia" > (WW) Warning, couldn't open module nvidia > (II) UnloadModule: "nvidia" > (EE) Failed to load module "nvidia" (module does not exist, 0) bug desribed here tooks me 5h (till now) and still is kicking my *** :| what I've found for this 5h was this: https://forums.gentoo.org/viewtopic.php?p=2728219 (look at the last message) unfortunatelly - glx extension still doesn't work. after playing a bit, I've found this: $ troll@troll /usr/lib/modules/extensions $ ldd libglx.so linux-gate.so.1 => (0xffffe000) libGLcore.so.1 => not found libnvidia-tls.so.1 => not found missing libs.... I'm trying to do something with this bug.... it's irritating..... Cheers, Przemek
Done it! Complete solution that helped me: 1. cd /usr/lib/modules/drivers ln -s /usr/lib/xorg/modules/drivers/nvidia_drv.o after this xorg should start - but still no GLX is available 2. create file /etc/env.d/99glx (ex. vim /etc/env.d/99glx) and put there: LDPATH=/usr/lib/opengl/nvidia/lib:/usr/lib/opengl/nvidia/tls 3. env-update && restart xorg finally it works! check - maybe it will help you :) Regards, Przemek
The directory /usr/lib/xorg/ didn't even exist on my machine. After creating it with all mentioned subdirectories, I reemerged nvidia-glx. This populated directory /usr/lib/xorg/modules/extensions/ with libglx.so. I created the symlink as adviced, augmented the environment variables -- but it still won't work. Xorg does not even try to load the nvidia module: (II) Primary Device is: PCI 01:00:0 (EE) No devices detected. Fatal server error: no screens found Trying to check linking problems yields the following: ldd /usr/lib/modules/extensions/libglx.so libGLcore.so.1 => //usr/lib/opengl/nvidia/lib/libGLcore.so.1 (0x400ca000) libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0x40833000) ldd /usr/lib/modules/drivers/nvidia_drv.so statically linked Will I have to upgrade to a 2.6.x kernel to get that darn driver working? Did anyone actually succeed with a 2.4.x kernel?
Problem solved! Key to the solution was my suspicion that Xorg didn't really load a single module. Checking other machines' logs confirmed that suspicion, as my Xorg log was missing the line: "Module Loader present" right after reporting the build date upon X11 start. After adding the USE flag dlloader and issuing a > echo "x11-base/xorg-x11 dlloader" >> /etc/portage/package.use I could successfully start Xorg with the nvidia driver. It seems that using: > x11-base/xorg-x11 static implies the need for > x11-base/xorg-x11 dlloader in the package.use file. Thank you guys for your continued support, as it kept me trying to solve this problem!
closing as user reports the problem is solved