Workaround for suspend/resume SD card problems

Fox Mulder Quakeman1 at
Thu Aug 28 18:15:14 CEST 2008

Is it possible to execute some script every time the neo comes out from
suspend only once?

I would like to suspend it with a manually script which enables the
sd_idleclk, syncs the sd-card, waits a few seconds and then go to sleep.
But after resume i want to disable sd_idleclk automatically so that the
gps works without problems. And i don't want to do the sd_idleclk
de-/activation trick when starting a gps app.

Fox Mulder wrote:
> Maybe it is possible to get a workaround for this problem until it is
> fixed. When using a custom suspend script we maybe could do this stuff
> manual.
> When i would suspend the neo i start a script which first activates the
> sd_idleclk. Than it activates some access to the sd card and after that
> suspend the neo. And after resuming maybe reverse these steps.
> This is quite a workaround, but when it works i'm willing to do this
> until the problem gets fixed. :)
> Ciao,
>      Rainer
> Simon Matthews wrote:
>> 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
>> _______________________________________________
>> Openmoko community mailing list
>> community at
> _______________________________________________
> Openmoko community mailing list
> community at

More information about the community mailing list