Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112976 - >nvidia-kernel-1.0.6629-r4 fails to work with >gentoo-sources-2.6.12-r10
Summary: >nvidia-kernel-1.0.6629-r4 fails to work with >gentoo-sources-2.6.12-r10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 118030 127393 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-11-19 02:16 UTC by postmodern
Modified: 2006-11-10 17:21 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postmodern 2005-11-19 02:16:21 UTC
When I either upgrade nvidia-kernel or gentoo-sources, do modules-rebuild,
reboot and get back into X, xorg reports No Screens found. For some reason only
the combination of nvidia-kernel-1.0.6629-r4 and gentoo-sources-2.6.12-r10 seems
to work for me. This perplexes me.

Reproducible: Always
Steps to Reproduce:
1. Install gentoo-sources-2.6.13-r{3,5}
2. Or, echo "media-video/nvidia-kernel ~amd64" >> /etc/portage/package.keywords
&& emerge nvidia-kernel

Actual Results:  
Xorg finds No Screens

Expected Results:  
Xorg works, glxgears works, etc.

Gentoo Base System version 1.6.13
Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.12-gentoo-r10 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r10 x86_64 AMD Athlon(tm) 64 Processor 3400+
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O3 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O3 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa audiofile avi berkdb bitmap-fonts bzip2 cdr crypt curl dvd
dvdread eds emboss encode esd ethereal exif expat fam flac foomaticdb fortran
gif glut gnome gpm gstreamer gtk gtk2 idn imlib ipv6 java jpeg lcms libvisual
lzw lzw-tiff mng mp3 mpeg ncurses network nls ogg oggvorbis opengl pam pcre
pdflib perl png python quicktime readline samba sdl softmmu speex spell sqlite
ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev usb userlocales
vorbis xine xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Daniel Nilsson 2005-11-23 10:18:40 UTC
I seem to have a similar problem (note that I have an x86 not amd64):
I just upgraded from gentoo-sources-2.6.12-r9 to 2.6.14-r2. Reemerged
nvidia-kernel-1.0.6629-r4 and rebooted. Now X won't start, it complains about
not being able to initialize the nvidia driver. I double checked that the nvidia
kernel module was loaded.
I traced the problem to that /dev/nvidia0 and /dev/nvidiactl has disappeared
(they reappear of I reboot the old kernel). A workaround is to create them manually.
Seems something happend between kernel 2.6.12 and 2.6.{13,14} that broke udev's
detection of nvidia kernel module.

emerge --info
Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6
4-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/
1/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo"
LANG="C"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac alsa apache2 apm audiofile avi bash-completion b
kdb bitmap-fonts browserplugin bzip2 cdr crypt cups eds emboss ethereal exif e
at foomaticdb fortran gdbm gif glut gpm gstreamer gtk gtk2 imlib java javascri
 jpeg lcms libg++ libwww mhash mmx mmxext mng mozilla mp3 mpeg mysql ncurses n
 nsplugin nvidia offensive ogg oggvorbis openal opengl pam pcre pdflib perl ph
png python quicktime readline real recode samba sse ssl svg tcpd tga tiff true
pe truetype-fonts type1-fonts udev vorbis win32codecs wmf xinerama xml2 xmms x
xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Peter Kasting 2005-11-23 11:20:23 UTC
I can verify that this also reproduces with vanilla-sources-2.6.14.2, not just
gentoo-sources.  I too am missing /dev/nvidia* now.  How do you manually create
the correct entries?
Comment 3 Peter Kasting 2005-11-23 11:55:50 UTC
NM, got it.  For anyone else who needs to do this:

mknod /dev/nvidia0 c 195 0
mknod /dev/nvidiactl c 195 255
chmod /dev/nvidia* 666

After performing these steps I can once again startx successfully.
Comment 4 Daniel Nilsson 2005-11-23 13:44:14 UTC
I did some more searching and there seems to be some problems with the nvidia
drivers and udev. One bug that might be related is bug #58294.
Comment 5 Wiebe Cazemier 2005-11-27 06:57:38 UTC
Peter Kasting, the last fine of your fix should be

chmod 666 /dev/nvidia*

But your right in that it works. Is there going to be a fix for version 6629?
Installing the newer nvidia-kernel doesn't work for <= GeForce 2 users.

Well, let's edit some udev rules now.
Comment 6 Peter Kasting 2005-11-28 11:09:59 UTC
(In reply to comment #5)
> Peter Kasting, the last fine of your fix should be
> 
> chmod 666 /dev/nvidia*

Oops!  You're completely correct.  Sorry for the typo.
Comment 7 matthew.cline 2005-12-07 18:59:06 UTC
I also ran into this problem. If I create the device nodes as mentioned above,
will the devices remain after I reboot the system? I really don't know that much
about udev.
Comment 8 postmodern 2005-12-07 19:07:28 UTC
If you put the commands mentioned in your /etc/modules.d/nvidia file they will
be created at every bootup. This works for me and once again allowing me to
waste hours playing enemy-territory.
Comment 9 matthew.cline 2005-12-09 16:35:43 UTC
Thanks for the tip, I had put the commands into /etc/conf.d/local.start

Is there a simple way to make udev take care of this automatically, wouldn't
that be a "cleaner" solution?
Comment 10 Martin von Gagern 2005-12-23 09:16:09 UTC
Of course there are the options to run /sbin/NVmakedevices.sh or to set RC_DEVICE_TARGALL="yes" in /etc/conf.d/rc, but all that looks rather ugly, so I hope someone will find a way to make this module udev-compatible.
Comment 11 Peter Kasting 2005-12-24 21:27:08 UTC
Because this bug doesn't seem to have anything to do with AMD64 specifically (reproduces on x86), I think Hardware should be set to All.  (I don't have permissions to do this myself.)
Comment 12 postmodern 2005-12-26 18:03:35 UTC
Good eye, done now.
Comment 13 Christian Schmitt 2006-02-20 08:01:17 UTC
Since this problem still exists with 1.0.6629-r5 and since this ist the latest stable version, the problem should either be fixed asap or a newer driver without this issue should be marked stable.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2006-03-24 00:11:56 UTC
*** Bug 118030 has been marked as a duplicate of this bug. ***
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-03-24 00:12:11 UTC
*** Bug 127393 has been marked as a duplicate of this bug. ***
Comment 16 Matthew Schultz 2006-06-14 11:11:13 UTC
A patched 7174 driver using the latest 2.6.16 kernel will work and is reportedly stable on the x86 arch: 

http://bugs.gentoo.org/show_bug.cgi?id=127618
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 17:21:32 UTC
All the recent drivers work just fine here w/ udev. Closing.