OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: arniel on July 07, 2004, 01:25:14 pm

Title: CF card problem on resume - fix.
Post by: arniel on July 07, 2004, 01:25:14 pm
Hi,

I'm a newbie on this forum (and the Z in general), but I thought I should share a fix I have for the problem where the Zaurus fails to resume properly if a Memorex 256Mb Compact Flash card is inserted (this is in OZ 3.2).

In /etc/apm/suspend.d/S35cardctl:
#!/bin/sh
#only use on 3600
. /etc/devdetect/identify.h3600
check_device
if [ "$?" != "0" ]; then
    exit;
fi
# Suspend Cardctl
if [ -x /sbin/cardctl ]; then
/sbin/cardctl suspend
fi


After changing the above to
#!/bin/sh
#only use on 3600
. /etc/devdetect/identify.h3600
check_device
if [ "$?" != "0" ]; then
#    exit;
fi
# Suspend Cardctl
if [ -x /sbin/cardctl ]; then
/sbin/cardctl eject
fi


the CF card is ejected just before suspend, then re-inserted on resume.

HTH,
Arnie
Title: CF card problem on resume - fix.
Post by: Teletubbie on July 13, 2004, 06:14:23 pm
Thanks a lot!
I applied this and dont have any cardmgr problems since then (last week)
Cheers,
Sam