SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ).
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.