View previous topic :: View next topic |
Author |
Message |
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Sun Oct 23, 2005 3:54 pm Post subject: Nvidia Problem [SOLVED] |
|
|
I just finished installing Gentoo and having a little problem with Nvidia drivers and Xorg. Everything compiled withour errors until I did nvidia-kernel.
Code: | insomnia ~ # emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6629-r4 to /
>>> md5 files ;-) nvidia-kernel-1.0.7167-r1.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7174.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.6629-r4.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.6111-r3.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7676.ebuild
>>> md5 files ;-) nvidia-kernel-1.0.7667.ebuild
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.6111-r3
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.6629-r4
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7167-r1
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7174
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7667
>>> md5 files ;-) files/digest-nvidia-kernel-1.0.7676
>>> md5 files ;-) files/nvidia
>>> md5 files ;-) files/1.0.6111/nv-pci_find_class.patch
>>> md5 files ;-) files/1.0.6111/conftest_koutput_includes.patch
>>> md5 files ;-) files/1.0.6111/power-suspend-2.6.9-changes.patch
>>> md5 files ;-) files/1.0.6111/vmalloc-reserve.patch
>>> md5 files ;-) files/1.0.6111/nv_enable_pci.patch
>>> md5 files ;-) files/1.0.6111/nv-remap-range.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1161283.patch
>>> md5 files ;-) files/1.0.6629/nv-shutup-warnings.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1165235.patch
>>> md5 files ;-) files/1.0.6629/nv-disable-preempt-on-smp_processor_id.patch
>>> md5 files ;-) files/1.0.6629/conftest_koutput_includes.patch
>>> md5 files ;-) files/1.0.6629/nv-amd64-shutup-warnings.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1189413.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1175225.patch
>>> md5 files ;-) files/1.0.6629/nv-fix-memory-limit.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1162524.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-agp_bridge_data.patch
>>> md5 files ;-) files/1.0.6629/nv-pgprot-speedup.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1155389.patch
>>> md5 files ;-) files/1.0.6629/nv-pgd_offset.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1182399.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1171869.patch
>>> md5 files ;-) files/1.0.6629/nv-vm_flags-no-VM_LOCKED.patch
>>> md5 files ;-) files/1.0.6629/NVIDIA_kernel-1.0-6629-1201042.diff
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-1233959.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-disable-preempt-on-smp_processor_id.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-1237815.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-conftest-koutput-includes.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-x86-shutup-warnings.patch
>>> md5 files ;-) files/1.0.7167/NVIDIA_kernel-1.0-7167-amd64-shutup-warnings.patch
>>> md5 files ;-) files/1.0.7667/NVIDIA_kernel-1.0-7667-KERNEL_VERSION-moved.patch
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6629-pkg1.run
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.13-gentoo-r3
find: invalid predicate `-quit'
*
* Unable to detect what version of GCC was used to compile
* the kernel. Build will continue, but you may experience problems.
* Checking for MTRR support ... |
It does finish compiling, you can modprobe it and it appears in lsmod, but X server fails to start. /var/log/Xorg.0.log
Code: | (II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "AllowGLXWithComposite" "true"
(--) NVIDIA(0): Linear framebuffer at 0xF4000000
(--) NVIDIA(0): MMIO registers at 0xFC000000
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(II) UnloadModule: "nvidia" |
Code: | [ebuild R ] x11-base/xorg-x11-6.8.2-r4
[ebuild R ] media-video/nvidia-kernel-1.0.6629-r4
[ebuild U ] sys-devel/gcc-3.3.6 [3.3.5.20050130-r1] |
Any idea whats up?
Last edited by Vitaliy on Mon Oct 24, 2005 2:01 am; edited 1 time in total |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 23, 2005 4:05 pm Post subject: |
|
|
The compilation error is maybe related to this change (that you don't have)
Code: | # ChangeLog for media-video/nvidia-kernel
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/www/www.gentoo.org/raw_cvs/gentoo-x86/media-video/nvidia-kernel/ChangeLog,v 1.121 2005/08/15 03:50:09 augustus Exp $
*nvidia-kernel-1.0.7676 (15 Aug 2005)
....
16 Jul 2005; Martin Schlemmer <azarah@gentoo.org>
+files/1.0.7667/NVIDIA_kernel-1.0-7667-KERNEL_VERSION-moved.patch,
nvidia-kernel-1.0.7667.ebuild:
Add support for latest kernels that no longer define KERNEL_VERSION in
version.h. Cleanup warnings users do not need to see. |
But I don't think that this can cause problems if you're able to modprobe the module. It could be that your card is not recognized. Which model is it? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Sun Oct 23, 2005 4:06 pm Post subject: |
|
|
dgaffuri wrote: | The compilation error is maybe related to this change (that you don't have)
Code: | # ChangeLog for media-video/nvidia-kernel
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/www/www.gentoo.org/raw_cvs/gentoo-x86/media-video/nvidia-kernel/ChangeLog,v 1.121 2005/08/15 03:50:09 augustus Exp $
*nvidia-kernel-1.0.7676 (15 Aug 2005)
....
16 Jul 2005; Martin Schlemmer <azarah@gentoo.org>
+files/1.0.7667/NVIDIA_kernel-1.0-7667-KERNEL_VERSION-moved.patch,
nvidia-kernel-1.0.7667.ebuild:
Add support for latest kernels that no longer define KERNEL_VERSION in
version.h. Cleanup warnings users do not need to see. |
But I don't think that this can cause problems if you're able to modprobe the module. It could be that your card is not recognized. Which model is it? |
Note that I had Gentoo on the same box yesterday working with that same card; its Nvidia GeForce 3 Ti 500. |
|
Back to top |
|
|
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Sun Oct 23, 2005 4:12 pm Post subject: |
|
|
Also it appears in lsmod as Code: | agpgart 36808 2 nvidia,intel_agp
| What is this intel_agp stuff? |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 23, 2005 4:25 pm Post subject: |
|
|
Vitaliy wrote: | What is this intel_agp stuff? |
It's the kernel module that provide AGP support for Intel chipsets. Look for AGP_INTEL in kernel config. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sun Oct 23, 2005 4:29 pm Post subject: |
|
|
Vitaliy wrote: | Note that I had Gentoo on the same box yesterday working with that same card; its Nvidia GeForce 3 Ti 500. |
I made a bad guess, it's supported. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Mon Oct 24, 2005 2:00 am Post subject: |
|
|
It looks like I fixed the problem with some fix's. To get rid of the error when compiling nvidia-kernel, you have to edit /usr/portage/eclass/linux-mod.eclass and find the line
Code: | tmpfile=`find ${KV_DIR}/ -iname "*.o.cmd" -exec grep usr/lib/gcc {} \; -quit` | and simply remove -quit, since find does not support -quit option.
And to fix the nvidia error when trying to start X, simply run /sbin/NVmakedevices.sh and try again.
Both issues are addressed in bugs.gentoo.org and hopefully will be resolved soon.
Last edited by Vitaliy on Mon Oct 24, 2005 1:24 pm; edited 1 time in total |
|
Back to top |
|
|
DakkoN n00b
Joined: 29 Jun 2005 Posts: 3
|
Posted: Mon Oct 24, 2005 11:12 am Post subject: Error starting X |
|
|
Hello,
I had no error compiling but had the starting X trouble... I've run /sbin/NVmakedevices.sh and my screen has gone black and the computer hung... ctrl+alt+end don't work either. I'm trying to solve the problem.
After restarting the computer, I keep having the "Failed to initialize the NVIDIA kernel module" error, but I have some more info:
(EE) Screen(s) found, but none have a usable configuration
I'm searching which should be the right conf...
SOLUTION: https://forums.gentoo.org/viewtopic-t-394884.html |
|
Back to top |
|
|
Vitaliy Guru
Joined: 06 Apr 2004 Posts: 451 Location: Brooklyn, NY
|
Posted: Mon Oct 24, 2005 1:25 pm Post subject: Re: Error starting X |
|
|
DakkoN wrote: | Hello,
I had no error compiling but had the starting X trouble... I've run /sbin/NVmakedevices.sh and my screen has gone black and the computer hung... ctrl+alt+end don't work either. I'm trying to solve the problem.
After restarting the computer, I keep having the "Failed to initialize the NVIDIA kernel module" error, but I have some more info:
(EE) Screen(s) found, but none have a usable configuration
I'm searching which should be the right conf...
SOLUTION: https://forums.gentoo.org/viewtopic-t-394884.html |
xadin wrote: | hello,
ive had the same problem with the nvidia drivers not starting X. at first I thought it might be a framebuffer prob but after some research in the forums and bugs.gentoo.org it seems that this is a problem with the nvidia drivers, udev, and kernel 2.6.13 not creating the needed /dev/nvidiaX nodes
try
Code: | ls -la /dev/nvidia* |
if you dont see the nvidia nodes then this is your problem
try
Code: | /sbin/NVmakedevices.sh |
then check /dev again for your nodes
Code: | ls -la /dev/nvidia*
crw-rw-rw- 1 root root 195, 0 12. Okt 10:31 /dev/nvidia0
crw-rw-rw- 1 root root 195, 1 12. Okt 10:31 /dev/nvidia1
crw-rw-rw- 1 root root 195, 2 12. Okt 10:31 /dev/nvidia2
crw-rw-rw- 1 root root 195, 3 12. Okt 10:31 /dev/nvidia3
crw-rw-rw- 1 root root 195, 4 12. Okt 10:31 /dev/nvidia4
crw-rw-rw- 1 root root 195, 5 12. Okt 10:31 /dev/nvidia5
crw-rw-rw- 1 root root 195, 6 12. Okt 10:31 /dev/nvidia6
crw-rw-rw- 1 root root 195, 7 12. Okt 10:31 /dev/nvidia7
crw-rw-rw- 1 root root 195, 255 12. Okt 10:31 /dev/nvidiactl |
you should now see the nodes created by NVmakedevices.sh
if so then you can autoload this script at startup by putting the code in you /etc/conf.d/local.start script like so
Code: | nano -w /etc/conf.d/local.start
if [ i -e /dev/nvidia0 ]; then
/sbin/NVmakedevices.sh
fi |
now you can startx
this is all info that ive found through bugs.gentoo and the forums, im just centralizing it
references:
https://bugs.gentoo.org/show_bug.cgi?id=104369
read #15 #18 & #23
https://forums.gentoo.org/viewtopic-t-375466-highlight-nvidiakernel+framebuffer.html
this forum:
from hede |
That is what I followed and it seems to work fine for me. I am just waiting for updated versions to take that out and have things just work. It froze on me at first as well, but after I reloaded the module it worked perfectly. |
|
Back to top |
|
|
Hypexr n00b
Joined: 10 Dec 2002 Posts: 12 Location: Fresno, CA
|
Posted: Fri Oct 28, 2005 7:06 am Post subject: |
|
|
I also had this problem but fixed it by setting ACCEPT_KEYWORDS to get the newest drivers.
Code: | ACCEPT_KEYWORDS="~amd64" emerge nvidia-kernel nvidia-glx nvidia-settings nvidia-cg-toolkit -va |
Replace ~amd64 with your architecture. ie. ~x86
If the nvidia module was previously loaded:
Code: | rmmod nvidia
modprobe nvidia |
_________________ Scott http://fatpenguinblog.com |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Fri Oct 28, 2005 7:41 am Post subject: |
|
|
Hypexr wrote: | Code: | ACCEPT_KEYWORDS="~amd64" emerge nvidia-kernel nvidia-glx nvidia-settings nvidia-cg-toolkit -va |
|
Don't do that, or at next update you will downgrade to old versions. You should rather put
Code: | nvidia-kernel ~amd64
nvidia-glx ~amd64 |
and so on for the other packages in
Code: | /etc/portage/package.keywords |
See
for details. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Hypexr n00b
Joined: 10 Dec 2002 Posts: 12 Location: Fresno, CA
|
Posted: Sat Oct 29, 2005 5:39 am Post subject: |
|
|
That is very helpful to know. I had taken them out of the world file but now I don't have to manually check for when new drivers are released. :) _________________ Scott http://fatpenguinblog.com |
|
Back to top |
|
|
|