LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Nvidia drivers wont install on MDK10.1/FC3 (https://www.linuxquestions.org/questions/mandriva-30/nvidia-drivers-wont-install-on-mdk10-1-fc3-289160/)

DesyphER 02-11-2005 09:47 PM

Nvidia drivers wont install on MDK10.1/FC3
 
Hey guys

I'm running Mandrake 10.1 Offical and i can't install my 5200 drivers. This is what i do
1. Init 3 (in konsole)
2. Sh (NVIDIA DRIVER LOCATION)
3. Get a message to search the nvidia FTP for a kernel or some poo like that)
4. it isn't found
5. It asks me to compile a kerner thing
6. The kernel cannot compile the kernel driver thing ( the thing that MDK10.1 was searching the ftp for)

What can i do. Please help me out im eager to play some games =), and windoz is tempting me(can't resist games). Oh and on SuSE It installed perfectly. On FC3 and MDK 10.1 I get that problem.

Fanx, DesyphER

opjose 02-11-2005 09:51 PM

urpmi kernel-source

The exact syntax may vary...

Once you have the source installed for the CURRENTLY INSTALLED KERNEL, try again.

DesyphER 02-11-2005 10:12 PM

lol. Sorry but i don't get that. I am a total n00b to linux

opjose 02-12-2005 12:56 AM

The installation of the Nvidia drivers via the download version from their web site, requires that the kernel source for the currently installed version of the Linux kernel, be present on your computer.

The installer uses the files provided by the kernel-source rpm to build the new driver.

If these files are not present or are of the wrong version, the installer will fail as it has done in your case.

URPMI is a command line program (the gui is called rpmdrake) that will automatically go out and retrieve files for you and anything else which may be required to get the file you are requesting, to run or install.

Thus

urpmi kernel-source

will go out and get the LATEST kernel source tree and install if... however this may NOT be correct source for your installed kernel.

To find out the name/version of your installed kernel type in

uname -a

You may have to specify additional information to urpmi to grab the correct kernel-source rpm.


Once you have the kernel source in place you will be able to complete the installation of the nvidia drivers.


URPMI itself will not work correctly until you have set up the URPMI sources.

That is you have to tell URPMI where it's permitted to download files from.

My sig points to one of several sites that gives you information about this process.

You should ALWAYS set up ALL of the indicated sources, main, plf, jpackage, contrib, etc.

davcefai 02-12-2005 04:16 PM

In newbie speak (I was there not too long ago):

Start "Configure my Computer". , Software Management, Install.

Now press Ctrl-Alt-F1. You will be at a black screen. At the top it will say, probably Kernel 2.6.8.1-12mdk.

Find this package (the EXACT one) and install it.

Now with 10.1 there's a gotcha. The NVIDIA driver won't install unless you do this:

Open file manager, navigate to and open the file /usr/src/linux/include/linux/pm.h with kwrite

Change:

{
PM_SUSPEND, /* enter D1-D3 */
PM_RESUME, _/* enter D0 */
} pm_request_t;

to:

{
PM_SUSPEND, /* enter D1-D3 */
PM_RESUME, _/* enter D0 */
PM_SAVE_STATE, /* save device's state */
} pm_request_t;

Save and exit.

Now in the same way open /etc/modprobe.preload and add the line:

nvidia

Save and exit.

After this init 3 and install the driver.

The procedure above first appeared in question 227327 on this site.

I've just done it today and it works!

Good Luck

opjose 02-12-2005 07:52 PM

Hmm I thought that the need to edit the src file had been corrected in the latest nvidia download.

DesyphER 02-13-2005 05:46 AM

wow fanx alot for your posts guys i'm gonna login to linux and try out now :)

davcefai 02-13-2005 02:41 PM

Quote:

Hmm I thought that the need to edit the src file had been corrected in the latest nvidia download.
Well, I downloaded 10.1 last week and it needed the patch.

guest 02-13-2005 02:42 PM

Hi,

An easier way to install your Mandrake kernel would be to look on CD number 3. The kernel sources are the largest RPMs (45 MB) on that disc.

opjose 02-13-2005 04:43 PM

Quote:

Originally posted by davcefai
Well, I downloaded 10.1 last week and it needed the patch.
I installed it many weeks ago on various machines, including Laptops (all with Nvidia video).

Until Nvidia's recent update about 2-3 weeks ago, prior versions would either not install or would require patches to do so.

After the update all install perfectly using either the stock kernels, smp and non-smp, and the latest kernels posted on the URPMI sites.

No patching of the source tree has been required.

The Nvidia documentation and forums also acknowledge that they fixed the installer.

davcefai 02-14-2005 12:01 AM

It could be the mirror I used but, I repeat, the NVIDIA driver would not function until I performed that procedure. I too was under the impression that the problem was fixed but after 3 consecutive failures the driver installed OK when I patched the file.

opjose 02-14-2005 02:24 AM

Heh,

And I REPEAT I did this with the posted drivers with both the stock kernel and sources and with the newer .24 kernel posted on the URPMI sites, without requiring any changes, on multiple systems.

(The larger I REPEAT, makes it "official"...)

davcefai 02-14-2005 04:25 AM

OK, so do we call a truce or exchange notes to try and work out what happened? (like I said, it could have been the mirror I used)

Did the fix involve inserting the extra line in pm.h or did they tackle it differently?

opjose 02-14-2005 02:03 PM

Actually I never bothered looking at pm.h since the updated drivers had no problems.

The older drivers were a real mess though.

DesyphER 02-28-2005 02:22 AM

Well my MDK 10.1 Wouldnt detect any removable storage devices, so thats why i couldnt install the kernel-source i had to mount the ISO and add it to media as a directory in the Mandrake Controll Centre then i found the kernel-sources and installed them. The nvidia driver was successfull but i dont know how to edit the CONFIG files needed. I here a GUI installer is coming out for the NVIDIA drivers so iĺl just have to wait.

Thanks for all the replies, DesyphER


All times are GMT -5. The time now is 02:06 AM.