PDA

View Full Version : Mandrake 9.0


Pages : [1] 2

rObkE
03-11-03, 02:12 PM
Hi,

I'm having problems with the nVidia drivers for Mandrake 9.0.
During the install XFdrake could not install a driver for my GeForce 4 Ti4200, so I haven't been able to start X...
I compiled the latest two tarballs and installed them without any errors, and adapted my XF86Config-4 file.
When I run startx, it returns an error. This (http://robke.patpitiee.be/XFree86.0.log) is the output from the log file, and this (http://robke.patpitiee.be/XF86Config-4) is my XF86Config-4 file.
Any help appreciated.

TIA,
rObkE

SlaYMode
03-11-03, 03:08 PM
the DPMS option in the device section shouldn't be there, it should be in the monitor section.
Try to insert this line in modules section:

Load "dri"

and copy this at the end of the conf file:

Section "DRI"
Mode 0666
EndSection

bwkaz
03-11-03, 04:37 PM
Originally posted by SlaYMode
Load "dri"

and copy this at the end of the conf file:

Section "DRI"
Mode 0666
EndSection :confused:

Please, DON'T do this!

DRI is NOT used by the nVidia drivers; loading it will at best make nothing change, and at worst cause other problems (like unresolved symbols in the various X drivers).

The reason for the error reported in your X log -- "failed to initialize the NVIDIA kernel module" -- is generally logged by the kernel module. Check the kernel logs (either dmesg, or /var/log/messages) for why. Most of the time, assuming the kernel module is actually loaded (check with lsmod; look for "nvidia"), this error is caused by a BIOS setting. You should have "PnP OS" set to No, and you should have "Assign IRQ to VGA" set to Yes in your BIOS. But check the kernel logs to make sure; they should have a message about those settings if they are what need to be changed.

rObkE
03-12-03, 09:09 AM
the DPMS option in the device section shouldn't be there, it should be in the monitor section.
Try to insert this line in modules section:
Load "dri"
and copy this at the end of the conf file:
Section "DRI"
Mode 0666
EndSectionthose options were there by default...Check the kernel logsthe only weird entries i see are:Mar 12 15:52:12 localhost kdm[1080]: Server for display :0 terminated unexpectedly
Mar 12 15:52:14 localhost kdm[1080]: Server for display :0 terminated unexpectedly
Mar 12 15:52:14 localhost kdm[1080]: Display :0 is being disabled (restarting too fast)
but you can read it yourself here (http://robke.patpitiee.be/messages) if you wantcheck with lsmodapparently "nvidia" isn't loaded :|

SlaYMode
03-12-03, 11:12 AM
sorry, i red my XF86Config backup and not my actual one:rolleyes: :rolleyes: , but the option dmps IS in my "monitor" section and not in "device"

bwkaz
03-12-03, 12:04 PM
Originally posted by rObkE
apparently "nvidia" isn't loaded :| So load it. :D

su
/sbin/modprobe nvidia, then, if no errors,
exit
startx

Start off as your normal user (not root).

If that works, then make sure alias /dev/nvidia* nvidia is in /etc/modules.conf, and run /sbin/depmod -a.

zarathushtra
03-12-03, 12:29 PM
First when i`ve run Mandrake 9.0 i`ve got same problem. Try to reinstall drivers by force and try to start X-Server. That`s might be helpfull.

rObkE
03-12-03, 02:04 PM
So load it. :Dhmm... modprobe couldn't find the module nvidia
reinstalling the tarballs again didn't help
i tried the rpms, modprobe was succesfull with those, but when starting x, i get a blank screen...

bwkaz
03-12-03, 04:52 PM
Hmm... I was assuming you used driver 4191; is that the case? If you were using the 3123 tarballs, then you need to /sbin/modprobe NVdriver instead.

rObkE
03-13-03, 12:57 PM
Originally posted by bwkaz
Hmm... I was assuming you used driver 4191; is that the case? If you were using the 3123 tarballs, then you need to /sbin/modprobe NVdriver instead. Yep, I'm using the 4191's...

bwkaz
03-13-03, 01:01 PM
You used the tarballs? You're sure it wasn't just the wrong version RPMs?

If you uninstall the NVIDIA_kernel package (rpm -e NVIDIA_kernel) and reinstall the .tar.gz one, what does find /lib/modules -name nvidia.o tell you?

Are you sure that the NVIDIA_kernel installed before? Were you running "make install" as root?

rObkE
03-14-03, 11:30 AM
You used the tarballs? You're sure it wasn't just the wrong version RPMs?rpms:
NVIDIA_kernel-1.0-4191.mdk90up.i586.rpm
NVIDIA_GLX-1.0-4191.i386.rpm

tars:
NVIDIA_kernel-1.0-4191.tar.gz
NVIDIA_GLX-1.0-4191.tar.gzIf you uninstall the NVIDIA_kernel package (rpm -e NVIDIA_kernel) and reinstall the .tar.gz one, what does find /lib/modules -name nvidia.o tell you?Err... Nothing, no affirmation it was found, no error it wasn't...Are you sure that the NVIDIA_kernel installed before?[QUOTE]Yep, first installed the kernel driver and after that the GLX.[QUOTE]Were you running "make install" as root?I'm not a Linux pro, but that I know... :)

bwkaz
03-14-03, 11:35 AM
OK... find won't print an error if no file is found, it'll just do nothing, like it did. So you, for reasons unknown ATM, don't have a kernel module anywhere.

From a freshly-decompressed NVIDIA_kernel directory, do a make >log.txt 2>&1 as root and attach the resulting log.txt file.

rObkE
03-14-03, 01:24 PM
Here (http://robke.patpitiee.be/log.txt) you go...

bwkaz
03-14-03, 05:23 PM
Install kernel-source.

rObkE
03-15-03, 06:46 AM
That means I have to compile the source RPM? When I to that, I get about the same errors as in my log.txt...
BTW, before I opened this thread I reinstalled the RPMs and tarballs about a dozain times, and once I succeeded launching kde, but after a reboot I simply got a blank screen again. :|

bwkaz
03-15-03, 07:17 AM
No, that means install your Linux kernel's source package. It's named kernel-source, and the version has to match what uname -r tells you. And unless you've updated your kernel at all (Mandrake doesn't do that, do they?), it's on your original distro CDs -- CD 3, to be exact.

rObkE
03-15-03, 09:49 AM
I installed ncurses-devel and kernel-source. Building the tarballs worked, but when running X I get a...? Blank screen.

bwkaz
03-15-03, 06:21 PM
That one, I don't have an answer for. :(

You can try searching this forum for "blank screen", and you might just come up with something. No guarantees though...

rObkE
03-16-03, 07:00 AM
thx anyway
i've learned a lot while messing around trying to get my drivers work
i'll try to recompile both rpms this time

rObkE
03-16-03, 09:50 AM
I did a clean install and found this in my logs:Mar 16 16:36:16 localhost -- root[1476]: ROOT LOGIN ON vc/1
Mar 16 16:36:21 localhost kernel: 0: nvidia: loading NVIDIA Linux x86 nvidia.o Kernel Module 1.0-4191 Mon Dec 9 11:49:01 PST 2002
Mar 16 16:36:34 localhost kernel: Linux agpgart interface v0.99 (c) Jeff Hartmann
Mar 16 16:36:34 localhost kernel: agpgart: Maximum main memory to use for agp memory: 203M
Mar 16 16:36:34 localhost kernel: agpgart: Unsupported SiS chipset (device id: 0648), you might want to try agp_try_unsupported=1.
Mar 16 16:36:34 localhost insmod: /lib/modules/2.4.19-16mdk/kernel/drivers/char/agp/agpgart.o.gz: init_module: No such device
Mar 16 16:36:34 localhost insmod: Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters. You may find more information in syslog or the output from dmesg
Mar 16 16:36:34 localhost modprobe: modprobe: insmod agpgart failed
Mar 16 16:36:34 localhost kernel: 0: NVRM: AGPGART: unable to retrieve symbol table
Mar 16 16:40:12 localhost syslogd 1.4.1: restart.
Is this of any help?

bwkaz
03-16-03, 11:49 AM
Yes, it does help:

Mar 16 16:36:34 localhost kernel: agpgart: Unsupported SiS chipset (device id: 0648), you might want to try agp_try_unsupported=1. So the problem is that you're using an SiS chipset that isn't supported by that version of agpgart. If you think it works just like all the other SiS chipsets (which is often, but not always, the case), then you can edit /etc/modules.conf and add a line that looks like options agpgart agp_try_unsupported=1, save and exit, and run /sbin/depmod -a (this will get rid of a warning that modules.conf is more recent than the module dependency file). Then try it again, and see if it works.

It may not -- if not, then try upgrading your kernel, to something like the newest 2.4.21-pre that's out. To do that, you will need to download 2.4.20 and the .21-pre patch, then decompress 2.4.20 and apply the patch. Copy the .config file from Mandrake's kernel source into the root of your .21-pre kernel tree, and run make menuconfig. Check through the settings; you may want to make some things built into the kernel so you don't have to deal with an initrd (stuff like your root filesystem, and support for IDE devices, would be a good thing to build in -- anything that would be required to mount the root filesystem). Then continue with the kernel build process, as documented in Documentation/Changes in the source tree.

rObkE
03-16-03, 01:46 PM
So the problem is that you're using an SiS chipset that isn't supported by that version of agpgart. If you think it works just like all the other SiS chipsets (which is often, but not always, the case), then you can edit /etc/modules.conf and add a line that looks like options agpgart agp_try_unsupported=1, save and exit, and run /sbin/depmod -a (this will get rid of a warning that modules.conf is more recent than the module dependency file). Then try it again, and see if it works.Done that, simply get a blank screen again. When I check my logs I see the same errors as above.
Tomorrow or so I'll try to update my kernel... :)

rObkE
03-23-03, 06:18 AM
I was looking on how to update my kernel, and I found this on the MandrakeLinux (http://www.mandrakelinux.com/en/errata.php3) site:Error scenario: When installing using an Nvidia card on some particular monitors, X11 is badly configured and cannot start.
Why: The installer misdetects a Plug'n Play monitor and configures it incorrectly in the Monitor section of XF86Config-4.
Solution: Format a floppy disk with a DOS filesystem (in Linux, you can use the command "mkdosfs /dev/fd0"). Copy patch.pl (http://www.mandrakelinux.com/patches/9.0/nvinstall/patch.pl) to the floppy disk. Remove the floppy and reboot using the Mandrake Linux 9.0 CD1 to do a CD-ROM installation. During boot, press F1 at the splash screen, then place your floppy disk that contains patch.pl in the floppy drive. At the prompt, type "patch", then follow the installation as usual. Could it be...? :)
There might be one slight problem: I don't have a floppy drive... :D

bwkaz
03-29-03, 07:27 AM
Originally posted by rObkE
Could it be...? :) Maybe. Try it and see.

There might be one slight problem: I don't have a floppy drive... :D This is why I never build a machine without one. Sure, you may save $10 (if that) by not putting it in, but it'll come back to bite you later. See if you can cannibalize another machine's floppy drive (temporarily), or just spend anotther $10 and put one in.