LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-20-2008, 08:57 AM   #1
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Rep: Reputation: 26
on slack 12.1 pcmcia doesn't shut down


I have a 3G modem pluged in a pci to pcmcia card, all works well except for shudown or reboot. every time it hangs on Shuting down pcmcia: cards.
i looked over the rc.pcmcia script and found that it hangs when the command:
Code:
 /sbin/pccardctl eject
is executed.

Any ideas?
 
Old 05-20-2008, 07:11 PM   #2
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
Don't fully understand your hardware setup but.... with/after connecting the 3G modem to the pcmcia card do you have to load any modules or similar command in rc.local. If so then using the shutdown -> rc.local try unloading/stopping whatever you have started during boot. As the local shutdown is run before tearing down the pcmcia card it may proceed properly (note you may need a 'sleep 5' as the last step to give time for the reverse process to complete before trying to eject the card.

ppd
 
Old 05-21-2008, 12:01 AM   #3
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
I think it loads some modules automatically, this doesn't happen if the card was never pluged in. but if I pull it out before shutdown it still hangs. I'll post back from work
 
Old 05-21-2008, 01:45 AM   #4
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
when I plug in the card there are 3 modules loaded:
Code:
option                 12928  0 
usbserial              33384  1 option
ssb                    32516  0
probably by udev.
after unloading those modules it shuts down normally.

in rc.pcmcia:

Code:
 echo -n "Shutting down PCMCIA services: "
                echo -n "cards "
                /sbin/pccardctl eject
                MODULES=`/sbin/lsmod | grep "pcmcia " | awk '{print $4}' | tr , 
' '`
                for i in $MODULES ; do
                        echo -n "$i "
                        /sbin/modprobe -r $i > /dev/null 2>&1
                done
so the pcmcia stop script doesn't even try to unload them + unloading of the modules is done after the pccardctl eject

from man pccardctl:
Code:
 eject
           Notify  all  client  drivers that this card will be ejected,
           then cut power to the socket.
so this is where they should be unloaded, but they don't.

Last edited by zux; 05-21-2008 at 01:51 AM.
 
Old 05-21-2008, 08:21 AM   #5
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
added
Code:
/sbin/modprobe -r option
/sbin/modprobe -r usbserial
in /etc/rc.d/rc.local_shutdown.
that fixed it.

is this a bug? should i report it?

Last edited by zux; 05-21-2008 at 08:52 AM.
 
Old 05-21-2008, 08:54 AM   #6
zux
Member
 
Registered: Jul 2006
Location: latvia
Distribution: slackware
Posts: 140

Original Poster
Rep: Reputation: 26
I also added
Code:
killall wvdial
becouse it was using the module option, don't know if that was realy neede.
 
Old 05-28-2008, 07:42 AM   #7
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
Just installed 12.1 and had the same problem.

I also had it in 12.0. I believe I changed the order of running of the shutdown scripts. I will post what I did.
 
Old 05-29-2008, 03:54 PM   #8
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 900

Rep: Reputation: 153Reputation: 153
My pcmcia card is basically a usb hub which I only ever have a mouse plugged in.

In 12.0 all I thought I did was to move rc.pcmcia to be called earlier in rc.0/rc.6. I can't remember doing anything else though I must have done it doesn't make sense that moving it to be called earlier in the shutdown process would fix the problem.

Anyway that doesn't work for 12.1. So the only way I could overcome the problem was to move rc.pcmcia down to after the section that kills all processes!!!!!

What I did determine though that with the mouse plugged in rc.pcmcia hangs at

Code:
/sbin/pccardctl eject
whereas if the mouse is not plugged in the rc.pcmcia doesn't hang.

I'll continue to look at this to find what process is causing the card to be busy - obviously something to do with the mouse.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack 10.2 Hangs from PCMCIA thethinker Linux - Laptop and Netbook 1 07-09-2006 11:16 AM
SLack Freeze on PCMCIA Helder Slackware 1 10-01-2005 09:21 AM
Slack 10.1 with 2.6.12 pcmcia issue byondrch Slackware 3 08-23-2005 07:21 PM
slack: apm to shut down hard disks mrchaos Slackware 2 06-08-2005 08:40 PM
PCMCIA vs. CardBus on Slack 10.0 marales314 Linux - Laptop and Netbook 2 12-30-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration