[Gta04-owner] Replicant modem suspend behavior
Adrien Dorsaz
adrien at adorsaz.ch
Fri Dec 12 21:58:11 CET 2014
Hello,
I remember that in QtMoko we had a specific patch for the GTA04 to
check if the gsm chipset were still responding and restart it if not
[0]. IIRC it happened often after receiving SMS in suspend mode (but
not always, that's why it was difficult to point it out).
If I read correctly your workaround, it seems QtMoko had same issue and
I think your solution is well better to workaround this issue (I'm not
sure if it is the same, but I think so).
Regards,
Adrien
[0]:
https://github.com/radekp/qtmoko/blob/master/devices/gta04/patches/restart-when-modem-stops-working.patch
[1]:
https://github.com/radekp/qtmoko/blob/master/devices/gta04/src/devtools/scripts/fix-modem-reenumerate.sh
<- the called script which restart completly the QtMoko main processus
Le ven 12 déc 2014 à 18:11, Lukas Maerdian <luk at slyon.de> a écrit :
> Am 12.12.2014 um 16:41 schrieb Rico Rommel:
>> Am Freitag, 12. Dezember 2014, 16:17:54 schrieb Lukas Maerdian:
>>> Hello everybody,
>>>
>>> since quite some time I'm trying to debug the Replicant modem
>>> suspend
>>> behavior, but I cannot find any solution...
>>>
>>> My problem is that the modem transitions into a strange state
>>> after a
>>> suspend/resume cycle, where it just returns the CME error 0 (phone
>>> failure) to every single AT command I send. If I kill/restart the
>>> Radio
>>> Interface Layer ("killall rild"), the modem seems to be working
>>> fine
>>> again, so I guess a "AT+CFUN=0; AT+CFUN=1" correctly resets the
>>> modem.
>>
>> I don't know if it's related to this or a bug in my phonesoftware,
>> but on
>> resume my phone switches automatically to airplane mode. So I have
>> to set
>> operating mode everytime the phone resumes.
>> I use kernel 3.12 and can't remember, if this problem also existed
>> with kernel
>> 3.7.
>
> Hi Rico,
>
> indeed this seems to be the case! I'm on 3.12 as well and directly
> after
> resume everything is fine (CFUN: 1) but about 1 sec after the resume I
> receive a "+CREG: 0" URC and if I issue "AT+CFUN?" afterwards I
> receive
> a "+CFUN: 4", i.e. airplane mode.
>
> So, after this I can simply switch airplane mode off (AT+CFUN=1) and
> the
> device will be back online! Well... the 3G connection still needs to
> be
> re-configured, but this is another issue.
>
> Thanks a bunch, this was the missing piece I was looking for!
>
> I assume the modem is still operational during suspend, i.e. is able
> to
> receive calls/SMS and interrupt the CPU, can you confirm this?
>
> Best,
> Lukas
>
> _______________________________________________
> Gta04-owner mailing list
> Gta04-owner at goldelico.com
> http://lists.goldelico.com/mailman/listinfo.cgi/gta04-owner
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/gta04-owner/attachments/20141212/eb8523dc/attachment-0001.html>
More information about the Gta04-owner
mailing list