1024#

Eric Olson eric at ericanddebbie.com
Wed Oct 7 20:23:48 CEST 2009


Mikhail,

This should all be on one line:
          print '[%s] Signal : cid=%s, lac=%s' %
     (datetime.datetime.now(),status['cid'],status['lac'] )

Eric


Mikhail Umorin wrote:
> On Wednesday 07 October 2009 04:36:01 Thomas HOCEDEZ wrote:
>> David Garabana Barro a écrit :
>>> On Wednesday 07 October 2009 10:57:02 Christ van Willegen wrote:
>>>> Hi,
>>>>
>>>> On Wed, Oct 7, 2009 at 10:50 AM, Ivan Shirokov <ivanshirokoff at gmail.com>
>>> wrote:
>>>>> I've been wondering if all the freerunners are affected by bug #1024?
>>> No, not all FR are affected, AFAIK
>>>
>>>> I've been wondering the same thing...
>>>>
>>>> It would seem that the extra current draw in suspend would affect all
>>>> FRs, so having a #1024 fix-party would be a good idea in any case (?).
>>> #1024 is not causing extra current drain, but the software solution to
>>> this bug:
>>> Not allowing Calypso entering deep sleep mode.
>>>
>>> You can check if your FR is suffering from #1024 editting
>>> /etc/frameworkd.conf and changing
>>>
>>> ti_calypso_deep_sleep = never
>>>
>>> to
>>>
>>> ti_calypso_deep_sleep = always
>>>
>>> then restarting framework:
>>>
>>> /etc/init.d/frameworkd restart
>>>
>>> After doing so, if your FR suffers from this bug, your modem will
>>> continuously register/unregister from GSM network when suspended, and you
>>> will lose calls
>>>
>>> On my case, it was nearly impossible to call FR when suspended + calypso
>>> deep sleep.
>>>
>>> But not all FR suffer from this bug. You should try it after fixing it.
>> Most of GTA02-A5/A6 have this bug.
>> Once TI_CALYPSO_DEEP_SLEEP set to "always", you can check with a little
>> script done by KaZEr (see bleow)
>> Launch it on screen, and redirect output to a file.
>>
>> If you have something like
>> [2009-09-09 12:36:09.189663] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:36:15.088936] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:38:10.442808] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:38:13.020126] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:40:25.772918] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:40:28.620096] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:41:17.557676] Signal : cid=3BB3, lac=0D48
>> [2009-09-09 12:41:20.404582] Signal : cid=3BB3, lac=0D48
>>
>> Then you have the bug (trying to connect to GSM every second!)
>>
>> regards
>>
>> AstHrO
>>
>> Here's KaZeR's script :
>> --------------------------
>> #!/usr/bin/python
>>
>> import dbus
>> import dbus.glib
>> import gobject
>> import datetime
>>
>> def onNetworkStatus(status ):
>>         print '[%s] Signal : cid=%s, lac=%s' %
>> (datetime.datetime.now(),status['cid'],status['lac'] )
>>
>> bus = dbus.SystemBus();
>>
>> bus.add_signal_receiver( onNetworkStatus,
>>                          "Status",
>>                          "org.freesmartphone.GSM.Network",
>>                          "org.freesmartphone.ogsmd",
>>                          "/org/freesmartphone/GSM/Device" )
>>
>> gobject.threads_init()
>> dbus.glib.init_threads()
>> main_loop = gobject.MainLoop()
>> main_loop.run()
>>
>>
>> --------------------------
>>
> 
> I am trying to run the script and I get:
> 
> root at om-gta02 ~ $ deep-sleep-check.py > dsc.log
>   File "/usr/bin/deep-sleep-check.py", line 9
>     print '[%s] Signal : cid=%s, lac=%s' %
>                                           ^
> SyntaxError: invalid syntax
> 
> I am not familiar with Python, so, can someone help me to fix this?
> 
> 
> 
> _______________________________________________
> Openmoko community mailing list
> community at lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
> 




More information about the community mailing list