Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I have a Acer Aspire 5520, I installed Mandriva One 2008.1, every thing worked out of the box. my wirless card is Atheros and was using madwifi driver. wireless connection was somewhat buggy so I made a new connection using windows drivers and ndiswrapper. the widows driver works better but it does not support monitor mode for the card. I need a way to activate either driver as needed.
Any help is apreciated
Could you please explain why you need the card in Monitor mode? I can think of a specific reason why you would want this and if so that type of behaviour is INAPPROPRIATE FOR THIS FORUM!!
Could you please explain why you need the card in Monitor mode? I can think of a specific reason why you would want this and if so that type of behaviour is INAPPROPRIATE FOR THIS FORUM!!
There are many legitimate and legal reasons for using monitor mode. Network discovery, signal strength and noise analysis, equipment positioning, network traffic monitoring and analysis, intrusion detection to name a few.
I am teaching myself about wireless networking, I am using my own network for that. I am also teaching myself about how Linux works, In windows I can use the device manager to enable or disable a device, change or update the driver and set many parameters for the device.
In Linux (at least in Mandriva) there is nothing like that, I am sure there is a tool or a way to be able to control the device driver but I could not find it. Certainly the easiest thing for me is to install Mandriva again, that would take half an hour instead of the four days I spent searching the web for an answer, however there is no knowledge in that, and still would not be able to change the driver for another device if I need to.
I have tried to explain my self as best as I can, If you still thing the question is inappropriate then by all means you can report it to the forum moderator and he can kill the thread. If not then I would appreciate any useful information you may have.
To load a module, as root:
modprobe <module_name>
To unload it, if it's not already in use :
rmmod <module_name>
A usual, man modprobe and man rmmod will tell you more.
About the options available for a specific module, I can't remember right now of a command to print it.
But you can sometime find useful information in the kernel tree. Here is an example where I look for information about my wireless card driver, whose driver name is ipw2000 (found with lsmod if the module is loaded):
There are many legitimate and legal reasons for using monitor mode.
Oh if you're simply learning for your own enhancement there's nothing wrong with that. Didier is correct on usage of the modprobe tool. Several wireless drivers do this automatically for you like those you can download from linuxwireless.org but if you want to use modprobe then by all means. Happy New Year to you too and thank you for the clarification.
Oh if you're simply learning for your own enhancement there's nothing wrong with that. Didier is correct on usage of the modprobe tool. Several wireless drivers do this automatically for you like those you can download from linuxwireless.org but if you want to use modprobe then by all means. Happy New Year to you too and thank you for the clarification.
Thanks
To clarify more, I am retired with lots of time on my hands, I have always tinkered with windows and messed it more times than I can remember, but I know my way around windows, can't say the same for Linux :-) Still learning.
Thanks again
Do I have to unload the windows driver module first before loading the madwifi module?
Better so I guess, as you could run into problems with two drivers claiming the same device.
Would it occur that the madwifi driver works but the Windows one be automatically loaded at boot time, you may prevent this behavior in blacklisting the Windows module. As I don't have Mandriva I can't tell you exactly how-to do that though.
Last edited by Didier Spaier; 01-01-2009 at 10:30 AM.
Reason: Typos
Better so I guess, as you could run into problems with two drivers claiming the same device.
Would it occur that the madwifi driver works but the Windows one be automatically loaded at boot time, you may prevent this behavior in blacklisting the Windows module. As I don't have Mandriva I can't tell you exactly how-to do that though.
Thanks Didier
I thought about blacklisting the module but I don't want to do that since I'll need to load it again.
There must be some thing that tells the OS what module to load at boot (like the windows registry) If I can figure out what it is I can edit it to load the madwifi, better still if there is a tool to change the driver at runtime (wishful thinking :-)
If I am right, blacklisting a module forbids the kernel to load it automatically at boot time, but doesn't prevent you to load it manually using the modprobe command.
And in your distribution there should be a file that you may edit where you list modules that you want to be loaded after booting. This is useful when for some reason a module is not automatically loaded by the kernel at boot time (or when you insert it or plug it in, in case of a removable device).
e.g. for Slackware 12.2 which I use:
- to blacklist a module I edit the file /etc/modprobe.d/blacklist and add a line such as:
Code:
blacklist <module_name>
- make sure a module be loaded after booting I edit the file /etc/rc.d/rc.modules-<kernel_version> and add (or uncomment if it was already there) a line such as:
Code:
/sbin/modprobe <module_name>
May be a Mandriver will tell you how-to do that with Mandriva ?
As a reminder, to check which modules are actually loaded you can type:
Code:
lsmod
You don't have to be root to do that.
Last edited by Didier Spaier; 01-01-2009 at 12:10 PM.
If I am right, blacklisting a module forbids the kernel to load it automatically at boot time, but doesn't prevent you to load it manually using the modprobe command.
.
I blacklisted ndiswrapper but it still loads at boot ??
there is another complication, it appears that ndiswrapper trashed the madwifi module, it is nowhere to be found :-(
I gues I'll have to install it from scratch
I blacklisted ndiswrapper but it still loads at boot ??
there is another complication, it appears that ndiswrapper trashed the madwifi module, it is nowhere to be found :-(
Sorry, I can't help you in that case, because I don't know how init scripts work in Mandriva
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.