[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

slink (stable) apm plus pcmcia curiosities (may help others?).



I'm using slink 2.1r2.  When I installed, I thought it curious that
the install program finished up with "You don't appear to have pcmcia;
shall I delete it?"  I told it hell no, and went on from there.

Since then, I've been trying to understand why my system is so bad
about coming back with the correct time (it's set to UTC in the bios,
and correctly shows user system time as MST, so no, that's not a
problem).  I don't know if I've solved that yet, but I think I've
fixed at least one thing. The files:

	/etc/apm/[suspend|resume].d/pcmcia
	
exit immediately because I have no /etc/pcmcia/apm.opts, which means
cardctl isn't executed when necessary.  So, I created an empty apm.opts.

I just thought this might be of use to others struggling with apm +
pcmcia.  Anyone who tells me to upgrade to potato to fix it gets a
smack upside the head. :-)  I suppose I could remove and then
reinstall apm, and then it would be set up correctly?  But that would
be boring.


Here's some gory details:

This is on a Texas Instruments Extensa 570CD (p100, 40mb, 1.0gb, dstn).

/home/keeling_ uname -a
Linux topquark 2.0.36 #1 Fri Oct 1 21:40:52 MDT 1999 i586 unknown


/home/keeling_ apm -V   
apm version 3.0beta4

/home/keeling_ apm -v
APM BIOS 1.1 (kernel driver 1.2)
AC on-line, battery charging: 99% (1:42)


/home/keeling_ dpkg -l | grep apm
ii  apmd            3.0beta5-1     Utilities for Advanced Power Management (APM


/home/keeling_ cat /etc/pcmcia/apm.opts
#
#  /etc/pcmcia/apm.opts                         11Jan2000, sbk.
#
#  if this file isn't here, /etc/apm/[suspend|resume].d/pcmcia doesn't
#  bother doing anything.
#

    ---------  snip  ------------------------

/home/keeling_ cat /etc/apm/suspend.d/pcmcia 
#!/bin/sh

test -r /etc/pcmcia/apm.opts || exit 0
. /etc/pcmcia/apm.opts

case "$APM" in
suspend)
        # May be necessary to prevent system freeze if pcmcia network
        # card is in.
        #/sbin/ifconfig eth0 down # prevent "card busy"
        /sbin/cardctl suspend
        ;;
eject)
        # May be necessary to prevent system freeze if pcmcia network
        # card is in.
        #/sbin/ifconfig eth0 down # prevent "card busy"
        /sbin/cardctl eject
        ;;
esac

    ---------  snip  ------------------------

/home/keeling_ cat /etc/apm/resume.d/pcmcia 
#!/bin/sh

test -r /etc/pcmcia/apm.opts || exit 0
. /etc/pcmcia/apm.opts

case "$APM" in
suspend)
        /sbin/cardctl resume;;
eject)
        /sbin/cardctl insert;;
esac



-- 
    keelingNO@SPAM.spots.ab.ca       Contract programmer, server bum.
                            TopQuark Software & Serv. Enquire within.
          
  Any technology distinguishable from magic is insufficiently advanced.


Reply to: