PDA

View Full Version : Unplugging usb wireless card causes linux to hang


habib_seif
19th February 2006, 04:28 PM
Hi all,
I have a usb wireless lan card that works with ndiswrapper perfectly but when I unplug it, the system freezes. This happens in all dists of linux.
Of course, in some dists including fc4, if I issue the command: "modprobe -r ndiswrapper" before unplugging the card, the system doesn't hang.
So my question is that because I found the command above arbitrary, I don't know if it is the best solution. Do you know better one? or do you know a way which itself unload modules in unplugging time automatically so that the system doesn't hang?

brunson
19th February 2006, 04:56 PM
The automatic loading and unloading of modules is handled by the hotplug system. Explaining all the intricacies of hotplug is beyond the scope of this reply, but you could read the documentation and post specific questions back here.

habib_seif
21st February 2006, 05:25 PM

The automatic loading and unloading of modules is handled by the hotplug system. Explaining all the intricacies of hotplug is beyond the scope of this reply, but you could read the documentation and post specific questions back here.

ah, I'm very newbie in this area, do you have any suggestions for the starting point?

By the way, I think my problem is because of ndiswrapper, because when I unplug the card, the message below is printed endlessly in the console and the system hangs:
ndiswrapper (wrap_reset_pipe : 799) : resetting pipe 2 failed: -19
I put the message in ndiswrapper mailing list and they suggested to use snapshot release, but unfortunately the problem remains......

Anyway, thank you for your reply,
Habib