Hi Daniel,

On 12/16/2011 08:28 AM, Daniel Wagner wrote:
> From: Daniel Wagner <[email protected]>
> 
> Hi,
> 
> Okay here is my proposal to fix BMC#24432
> 
> Here is my resaoning. First thing is that we really want to
> power off the modems if we disable the technology. Toggling just Online
> is not sufficient because the modem will still drain the battery.
> 
> Second, we have chicken-egg situation for techonolgy.c. If there is
> no connman_device object registered it wont enable/disable anything.
> So we have first to create the connman_device object first but
> we cant since there is no unique identifier.
> To break this circle I suggest to introduce technogly->enable()/disable().
> They will be called allong connman_rfkill_block() (I have only added the 
> calls in __connman_technology_enabled()/disabled(), of course this thing
> should be at all places where connam_rfkill_block() is called).
> 
> The oFono plugin now can power up and down from the from the callback.
> 

Actually this might not be a good idea, in the traditional sense
disabling '3G' should set the modem to Offline state.  You do not want
to Power it down since there are still services available on the SIM
card that are useful.  Powering the modem down completely will not allow
you to access these services.

Additionally, oFono allows you to mess with various settings even if the
modem is offline, like changing networking settings, etc.  This was done
on purpose from a usability standpoint, and matches the behavior of
several popular phone OSes.

The main battery drain is actually the RX/TX circuitry anyway and the
associated processing...

Regards,
-Denis
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to