LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-22-2007, 02:53 AM   #1
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
loading modules


Hi

Since it is possible to load and unload modules manually or automatically I have a question about the arguments passed to the module whilst loading automatically.

Say I load a module manually by using modprobe (arg1 arg2 arg3) etc it will get loaded with the arguments to the module specified.

Now say I load a usb device and the module gets called and is automatically loaded with its default arguments, but lets say that I want the module to autoload with the custom arguments that I want to specify for the device how do I go about configurning this.

I know i can put this in modules.conf but that would mean that the module is always present ( ie loaded at boot up ) and that it doesnt auto load when needed ( or am i wrong here ).

Thanx
 
Old 05-22-2007, 04:35 AM   #2
mrapathy
Member
 
Registered: Nov 2005
Distribution: debian/slackware
Posts: 90

Rep: Reputation: 17
your making it more difficult than it has to be.
 
Old 05-22-2007, 06:53 AM   #3
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Hotplug/udev does it.
 
Old 05-22-2007, 11:53 AM   #4
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Original Poster
Rep: Reputation: 30
Thanx Alien_Hominid

But im still not up to speed on the whole udev thing but here is what im trying to achieve, after playing with a cam driver for a while and getting the colour settings correct I have read that it is possible to install a module for the cam with extra parameters ie (module name ) R=0.003 W=... etc

eg modprobe spca5xx Offred = 112

which correctly sets the values that you would be adjusting via a frontend in any case, Now say I just plug the cam in and the kernel does its thing and the module will get loaded with default driver settings, Im looking for a way to make it install the module with settings that I want.
mmm I dunno perhaps this can also be handled by a config file ?

There are several parameter that can be passed in:

From the read me I gathered the following.

force_rgb = 1 Set reverse rgb order
OffRed = -16 Initial red offset -16 range [-128..+128]
OffBlue = -16 Initial blue offset -16 range [-128..+128]
OffGreen = -16 Initial green offset -16 range [-128..+128]
GRed = 256 Initial gain setting to 1 range [0..512]
GBlue = 256 Initial gain setting to 1 range [0..512]
GGreen = 256 Initial gain setting to 1 range [0..512]
gamma = 3 Set gamma table to 1 range [0..7]

usbgrabber = 1 if you use an usb grabber usbid 0x0733:0x430 otherwise
usbgrabber=0

debug=<n> <-- set debug level

Thanx

As for making it more difficult than it has to be <<< um well this doesnt say to much ?

How do I make this less difficult than it has to be ?

Thanx
 
Old 05-22-2007, 12:58 PM   #5
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
In rc.modules you can set additional settings after modprobe, e.g. modprobe modname settings. If you want real time loading, as I said check udev. There are scripts in /etc/udev/scripts.
 
  


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
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 11:10 AM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 10:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 02:57 AM
loading modules tenn_eric Linux From Scratch 4 09-01-2003 05:48 AM
Loading Modules Mega Man X Linux - Newbie 6 06-05-2003 05:45 AM


All times are GMT -5. The time now is 12:41 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