What module would I unload to disable pcmcia?
I'm writing a shell script for hibernation on my laptop. kernel support for s4 works well, except that I have to eject my pcmcia wifi card before I hibernate--not a big nuisance, but I want my wife to be able to do this. ;) What I'm wondering is if there's a way to shut down the pcmcia interface (ifdown wlan0 doesn't do what I need) so that I can hibernate without ejecting the card?
|
bump
|
another bump
|
Moved: This thread is more suitable in Linux - Laptops and has been moved accordingly to help your thread/question get the exposure it deserves.
Moved per original poster's request. What kernel are you running, and what specific laptop (make and model) do you have? -- J.W. |
J.W. - thanks for moving the thread. I appreciate it.
I'm running MEPIS (Debian) with Kernel 2.6.7 on an IBM Thinkpad T23. |
Stopping pcmcia services should do it:
/etc/init.d/pcmcia stop or /etc/rc.d/rc.pcmcia stop or service pcmcia stop Depending on how Mepis works. You'll want to start the service again when you wake it up. |
/etc/init.d/pcmcia stop
That would be the one, but when I execute it from a root terminal, it doesn't seem to do anything. The card still stays active. AMOF, I can ifdown it before I run pcmcia stop, and then ifup the card while the pcmcia interface is supposedly down. Could this have something to do with the hotplug module, perhaps? |
pcmcia services stop
|
Nope. "Command not found."
Still no dice. There *has* to be a way to shut this down manually. Grr... /me is frustrated. |
How about a soft eject?
# cardctl eject After waking, cardctl insert or /etc/init.d/pcmcia start should get things going again. |
That got it! Thank you so much! And Merry Christmas to you!
|
All times are GMT -5. The time now is 01:55 PM. |