LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   What module would I unload to disable pcmcia? (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/what-module-would-i-unload-to-disable-pcmcia-265254/)

elempoimen 12-11-2004 12:13 PM

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?

elempoimen 12-11-2004 04:38 PM

bump

elempoimen 12-12-2004 08:24 PM

another bump

J.W. 12-20-2004 04:40 PM

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.

elempoimen 12-20-2004 09:48 PM

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.

2Gnu 12-21-2004 09:05 AM

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.

elempoimen 12-21-2004 09:05 PM

/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?

Ameii83 12-21-2004 09:45 PM

pcmcia services stop

elempoimen 12-22-2004 08:42 AM

Nope. "Command not found."

Still no dice. There *has* to be a way to shut this down manually. Grr... /me is frustrated.

2Gnu 12-22-2004 09:39 AM

How about a soft eject?

# cardctl eject

After waking, cardctl insert or /etc/init.d/pcmcia start should get things going again.

elempoimen 12-22-2004 09:51 AM

That got it! Thank you so much! And Merry Christmas to you!


All times are GMT -5. The time now is 01:55 PM.