LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-28-2008, 09:11 AM   #1
stu_mueller
Member
 
Registered: Aug 2006
Location: England
Distribution: Slackware, Zenwalk
Posts: 114

Rep: Reputation: 15
Module loading


Hi, just a quick question about loading modules.

I want to load the sonypi module at boot time. At the moment I have added an entry into /etc/rc.d/rc.modules that reads modprobe sonypi

but what is the /etc/modprobe.d directory used for, it says that modules should be loaded from here but should I be loading modules from here or am I OK loading them from rc.modules?

And if you can load from rc.modules why have modprobe.d/

Thanks

Stuart
 
Old 03-28-2008, 09:52 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
iirc , it is for specifying aliases and options ... see the sound / alsa file in there for example
 
Old 03-28-2008, 09:56 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,141
Blog Entries: 3

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
Hi,
Quote:
Originally Posted by stu_mueller View Post
<snip>
but what is the /etc/modprobe.d directory used for, it says that modules should be loaded from here but should I be loading modules from here or am I OK loading them from rc.modules?

Stuart
Did you 'man modprobe.d'? It is explained well.
 
Old 03-29-2008, 02:51 PM   #4
stu_mueller
Member
 
Registered: Aug 2006
Location: England
Distribution: Slackware, Zenwalk
Posts: 114

Original Poster
Rep: Reputation: 15
I didn't realise you could man a directory.

thanks I'll try that
 
Old 03-29-2008, 08:28 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,141
Blog Entries: 3

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
Hi,

To do a 'man modprobe.d';

Quote:
MODPROBE.CONF(5) MODPROBE.CONF(5)

NAME
modprobe.conf, modprobe.d - Configuration file/directory for modprobe

DESCRIPTION
Because the modprobe command can add or remove extra more than one mod-
ule, due to module dependencies, we need a method of specifying what
options are to be used with those modules. All the files under the
/etc/modprobe.d directory are used. Or, if that directory does not
exist, the file /etc/modprobe.conf specifies those options, as
required. It can also be used to create convenient aliases: alternate
names for a module. Finally, it can override the normal modprobe
behavior altogether, for those with very special requirements (such as
inserting more than one module).

Note that module and alias names (like other module names) can have -
or _ in them: both are interchangable throughout all the module com-
mands.
Will get you the man pages referencing 'modprobe.d' and other modprobe references.

Last edited by onebuck; 03-29-2008 at 08:30 PM. Reason: spell & reference
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to tell what is loading a module whysyn Linux - Software 3 11-15-2005 11:13 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
Module Loading How To? ElementNine Linux - General 2 10-09-2003 01:35 AM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM


All times are GMT -5. The time now is 12:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration