Author Topic: CF card problem on resume - fix.  (Read 3137 times)

arniel

  • Full Member
  • ***
  • Posts: 103
    • View Profile
CF card problem on resume - fix.
« 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

Teletubbie

  • Sr. Member
  • ****
  • Posts: 252
    • View Profile
    • http://
CF card problem on resume - fix.
« Reply #1 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
SL-5500G
OZ 3.3.6-pre1
Opie 1.1.4