Workaround for suspend/resume SD card problems

Christian Adams morlac at morlac.de
Fri Aug 29 00:46:01 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

here another workaround i worked out this evening:

first i turned off apmd - when running it prevents system from
suspending - more investigation going on

what's actually running for me is:

mv /usr/bin/apm /usr/bin/apm.o

creating /usr/bin/apm with following content:

- - - ---- snip ----
#!/bin/sh
echo 1 > /sys/module/glamo_mci/parameters/sd_idleclk
apm.o ${*}
echo 0 > /sys/module/glamo_mci/parameters/sd_idleclk
- - - ---- snap ---

regards, morlac

Am 25.08.2008 um 17:10 schrieb Simon Matthews:

> With my 8G Sandisk SD card, i can reliably fix the problems i have  
> been
> having by turning on the SD clock all the time. To do this type the
> command
> echo 1 > /sys/module/glamo_mci/parameters/sd_idleclk
> then do something that will access the SD card before doing a suspend.
>
> This of course won't do the GPS much good, but i think the real fix
> might be to give the SD card more clock cycles before and after  
> commands
> to give it time to finish executing commands.
>
> Simon



- -----BEGIN CONTACT BLOCK-----
   eMail:	morlac at morlac.de
   Jabber:	morlac at skavaer.homelinux.org
- ------END CONTACT BLOCK------

- -----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS$/IT;d-;s:;a?;C++(+++)>++++;UL++++;P++(+++)>++++;
L++(+++);E---;W++;N(+);o?;K?;!w;!O;!M+>;!V;PS(+);PE;
Y+;PGP++;t+(++);5(+)>++;X(+);R*;tv->+;b++(+++);DI++;
D++(+++)>++++;G(+)>++;e+>+++;h-()>++;r++;y++;
- ------END GEEK CODE BLOCK------

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFItyqqr81gVylJyzERAknuAJ9WKxTsXLYJtchRMFewgdzX+MJXuACfeN0n
yFiutYym/UweTTo3/oRz7gI=
=P9ji
-----END PGP SIGNATURE-----




More information about the community mailing list