LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-30-2004, 12:20 AM   #1
repeater75
Member
 
Registered: Jan 2004
Location: Laguna Niguel, CA
Distribution: Mandrake 10 Official
Posts: 52

Rep: Reputation: 15
I have to modprobe nvidia as root in order to startx every boot


please help:
I have a default kernel on mandrake 9.2
After installing nvidia's new drivers v5336, I have to su to root and then run modprobe nvidia before I run startx. After that, I get the nvidia splash and everything works great. but, as soon as i reboot, mandrake can't startx until i manually modprobe nvidia.

anyone know how to fix this?
 
Old 01-30-2004, 04:47 AM   #2
delta9
Member
 
Registered: Dec 2003
Distribution: Gentoo
Posts: 66

Rep: Reputation: 15
Have you edited your XF86Config as stated in the nvidia readme?
 
Old 01-30-2004, 04:52 AM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Or, if you have edited your XFree86 configuration file as per the instructions and it still doesn't work you should try autoloading the module on startup. I am not familiar with the Mandrake way of doing this but Debian has a list of modules to be loaded on boot in /etc/modules and Gentoo provides the same functionality with the /etc/modules.autoload.d/<kernelversion> files. It would surprise me if Mandrake didn't have a similar feature.


Håkan
 
Old 01-30-2004, 06:29 PM   #4
repeater75
Member
 
Registered: Jan 2004
Location: Laguna Niguel, CA
Distribution: Mandrake 10 Official
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks so much for responding!
I have edited my XF86Config-4 file according to Nvidia's instructions. That was the easy part. I'm still not entirely sure how I even figured out to run that modprobe command. I just assumed that the error I was getting had something to do with the kernel module not working out quite right.

I knew there has to be some sort of text file somewhere that configures which kernel modules load on startup, but I had no idea what to look for. I'll tool around a bit and see what happens with what I can find in /etc/modules.

By the way, hw-tph...what is Gentoo...I've heard of it, but I'm not sure what it is.

Thanks again...I'll report back my results soon.
 
Old 01-30-2004, 06:50 PM   #5
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
Look for a file in /etc/rc.d/ called "rc.modules". Go to the bottom and insert :

/sbin/modprobe nvidia

That should do it.
 
Old 01-30-2004, 06:57 PM   #6
repeater75
Member
 
Registered: Jan 2004
Location: Laguna Niguel, CA
Distribution: Mandrake 10 Official
Posts: 52

Original Poster
Rep: Reputation: 15
Ok...some stuff I found:

In my /etc folder, I cannot find a modules subfolder. I did, however discover a file called modules.conf which contained the following:

alias autofs autofs4
alias sound-slot-0 audigy
alias eth0 8139too
probeall scsi_hostadapter ide-scsi
probeall usb-interface usb-uhci
alias ieee1394-controller ohci1394
alias char-major-195 nvidia

Since that doesn't appear to have anywhere I can drop in a "modprobe nvidia" with other like comands, I just left it alone. Interesting that the last line DOES reference nvidia.

Ok, next file that caught my eye in the same directory was modules.devfs which I opened up and found the following:

# /etc/modules.devfs
# Richard Gooch <rgooch@atnf.csiro.au> 24-MAR-2002
#
# THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT!!!
# THIS FILE WILL BE OVERWRITTEN EACH TIME YOU INSTALL DEVFSD!!!
# Modify /etc/modules.conf instead.
# This file comes with devfsd-vDEVFSD-VERSION which is available from:
# http://www.atnf.csiro.au/~rgooch/linux/
# or directly from:
# ftp://ftp.atnf.csiro.au/pub/people/r...VERSION.tar.gz

<my note: cut a bunch of stuff in between>

# Nvidia driver
alias /dev/nvidia* NVdriver

# Pull in the configuration file. Do this last because modprobe(8) processes in
# per^H^H^Hreverse order and the sysadmin may want to over-ride what is in the
# generic file
include /etc/modules.conf
<my note: end of that file>

So, here I again have a reference to the Nvidia driver/module/whatever.

Additionally, in my /boot/config-2.4.22-10mdk file, I found these lines:

#
# Direct Rendering Manager (XFree86 DRI support)
#
CONFIG_DRM=y
# CONFIG_DRM_OLD is not set

#
# DRM 4.1 drivers
#
CONFIG_DRM_NEW=y
CONFIG_DRM_TDFX=m
CONFIG_DRM_GAMMA=m
CONFIG_DRM_R128=m
CONFIG_DRM_RADEON=m
CONFIG_DRM_I810=m
CONFIG_DRM_I830=m
CONFIG_DRM_MGA=m
CONFIG_DRM_SAVAGE=m
CONFIG_DRM_SIS=m
CONFIG_DRM_VIA=m

Not sure if that is relevant or not.

So, thus far I haven't really made much progress. If you guys are tapped on ideas, I probably need to head over to Mandrake's forums...
 
Old 01-30-2004, 07:37 PM   #7
repeater75
Member
 
Registered: Jan 2004
Location: Laguna Niguel, CA
Distribution: Mandrake 10 Official
Posts: 52

Original Poster
Rep: Reputation: 15
Phorem...
you are my hero, man!
It worked like a charm.

Kinda cracks me up that Linux spits back a warning about "tainting" the kernel with non-opensource modules when it executes the modprobe nvidia...

Thanks again to all who took the time to respond!
 
Old 01-30-2004, 08:23 PM   #8
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
No problem. Thanks for letting me know :-}
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 12:53 PM
Nvidia fx5500 mandrake 10.1 problem:Nvidia in /etc/modprobe.preload doesn't work eikeland Linux - Hardware 5 01-17-2005 02:09 PM
Changing the load order of modprobe keithcsl Linux - Hardware 3 10-21-2004 04:09 AM
Should I recompile kernel 2.4.7 to remove rivafb in order to solve Nvidia issues? jtp51 Slackware - Installation 2 10-06-2004 11:10 AM
hdparm and modprobe not running as root nishmal Linux - Newbie 2 05-23-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration