When I APM suspend and then resume my Thinkpad X40, I
get a beep on resume from cardmgr. Considering that I
am not using any PCMCIA cards at all, this is kind of
annoying. In the log (when I run cardmgr with -v), I
see "shutting down socket 0", from do_remove(). With
strace, I determined that cardmgr gets a
CS_EVENT_PM_SUSPEND and then a CS_EVENT_CARD_REMOVAL.
I'm not sure whether this is the expected sequence of
events (maybe the driver sents a remove event in case
the card was removed while suspended?), but it seems
like cardmgr should be smart enough to know that it
never loaded a card, so it should just shut up.
I am using Debian unstable, with pcmcia-cs 3.2.5-8 and
kernel 2.6.7-1-686 with, presumably, the kernel PCMCIA