Re: [PATCH] Delay full modem initialization until SIM is unlocked



On Thu, May 29, 2008 at 02:51:33PM +0300, Tambet Ingo wrote:
> On Thu, May 29, 2008 at 2:12 PM, Dennis Noordsij
> > - The device supports being "on" and "off". I.e., at startup it could be
> > allowed to just connect to a network. Then, setting up a data connection
> > will be very fast since it doesn't have to find the network first. The
> > nm-applet would allow you to disable the modem the same way you disable
> > wireless; the modem can be told to turn off its radio and save power
> > that way, and similarly will join a network again once the radio is
> > turned back on. I think this applies to all gsm modems (AT+CFUN
> > command), so perhaps does not need special HAL attributes.
> 
> Good idea. It is marked as an optional feature in the specification,
> so it might or might not work. I guess it could just be a noop if the
> device doesn't support it. It should probably be a propery of
> NMManager class (just like turning wireless on/off) which in turn
> iterates over all registered devices and calls their enable/disable
> radio method.

Beware though, many cards disconnect from and reconnect to the USB bus on
"at +cfun=1", so make sure to handle the hangup signal you will get from the
kernel correctly and close the device so that it does not end up with a
different device name.

BTW: at least for Sierra Wireless cards, the CFUN setting does not seem to
influence the power consumption (unless you are really using the card, but
then it needs to be on anyway).

But checking for it and having the possibility to switch the device actually
is definitely a good idea.
-- 
Stefan Seyfried
R&D Team Mobile Devices            |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out." 

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]