andrewducker: (Default)
[personal profile] andrewducker
A reader writes:
As I turned my phone off to board the plane to Seville last Thursday afternoon, I turned off my phone, but before that I turned off its wifi and 3g so that I wouldn’t accidentally end up data roaming and costing myself mega bucks.

After being at 100% charge that morning, it was already down to about 75% from being used during the day, for maybe 6 hours. I then stayed in a small village in a hostel for 4 days before heading back to Seville for a couple of days of post festival wind down.

On Monday afternoon as I got to the hotel back in Seville, I turned the wifi back on. I think I turned my phone off for one night as I slept in the previous 4 days. It still had 17% charge.

So a quarter of a day with wifi and 3g switched on takes 25% of the charge. 4 straight days (still checking/texting every so often) took about 60%.

With wifi/3g I lose 4% per hour, without I lose 0.6%. I knew it sucked power, but seriously?
And I mention this because I had _exactly_ the same experience in India. Except that I actually have Wifi off on my phone whenever I'm out of the flat anyway, because there are no free Wifi points at work, and it sucks battery like a ill-thought-out metaphor.

I turned off the 3G on my phone before getting on the plane at Heathrow, and the phone then lasted 6 days before it needed to be charged. Which tells me that, as I continued to occasionally play games on my phone when bored, that the problem with the battery life on my phone is nothing to do with what the phone is doing (the CPU meter tells me that the phone is doing very little the majority of the time) but simply being attached to a phone mast.

What I'd love to know is whether it's really bad radio hardware/firmware that sucks up the battery, or whether having the radio on constantly triggers the phone's OS into wakefulness, interrupting it many times per second to tell it it's still there.

Date: 2011-09-16 06:13 pm (UTC)
From: [identity profile] sbisson.livejournal.com
There some interesting issues around TCP/IP tear-up tear down in uncontrolled wireless networks - there was a really good presentation on it with some interesting data from Android at Velocity back in June. Basically waiting for a delayed SYN/FIN can wake the phone radio for one or more complete cycles, having significant battery life issues. It's especially in issue in crowded, contended urban cells that have less available network bandwith than their wireless HSPA connections give the phones...

It's one of the reasons BlackBerry battery life is so good - the radio firmware terminates calls as soon as a transaction ends without waiting for SYN/FIN to complete. The BES or BIS proxies handle tearing down the connection. A 3G BlackBerry ends up with 3 days or so life as a result.

But yes, turning off data and switching to 2G can save a lot of power.

Date: 2011-09-16 06:19 pm (UTC)
From: [identity profile] recycled-sales.livejournal.com
Some of the biggest hits to battery life (outside of 3D gaming or software video decode) come when I'm hovering between different connections (ie. 2g -> 3G -> no signal -> 2g...).

I'm sure anandtech did an article about the way a phone connects to a cellular tower and how the authentication process works. Presumably the handshake process involves the baseband chip being run at a higher P state.

Of course there's the joys of LTE/4G battery lives to come, which seem worse than 3G.

Date: 2011-09-16 06:20 pm (UTC)
From: [identity profile] sbisson.livejournal.com
It varies with the radio stack, but it's basically the timeout on the radio hardware.

Things get worse of course when you consider adding in base station registrations and pinging. Registration requires a progressive ramp up in power until a cell is contacted, and most operators have been setting up cells at the minimum possible density to save power.

Date: 2011-09-16 06:22 pm (UTC)
From: [identity profile] sbisson.livejournal.com
Which is why there's a lot of investment in power-saving technologies like connected standby for phone/tablet OSes and the features that support it in the latest chipsets from Qualcomm and the like.

There's been a whole stream on it here at BUILD.

Date: 2011-09-16 06:28 pm (UTC)
From: [identity profile] sbisson.livejournal.com
Oh yes. Radio mode changes really hit battery.

Also cell changes, one reason why 2G is significantly better, the cells around 8 times larger than 3G.

Date: 2011-09-16 06:31 pm (UTC)
From: [identity profile] recycled-sales.livejournal.com
You're at BUILD!? there are no words for my jealousy!

Date: 2011-09-16 06:33 pm (UTC)
ckd: (cpu)
From: [personal profile] ckd
I routinely leave my iPhone 4 in WiFi/2G mode, because I'm using it on T-Mobile USA and the 3G frequencies aren't compatible so there's no point even trying. I get pretty good battery life (certainly better than 4% per hour while I'm not actively using it!), though some of that's probably because I have really good WiFi coverage at work.

I just checked; it's at 91% at 1431 local... and I know I left the house before 1000, so that's 9% in 4.5 hours.

Date: 2011-09-16 06:52 pm (UTC)
From: [identity profile] poisonduk.livejournal.com
Strangely as we are only floors apart I don't flip nearly as much now as I did in Dundas. Down there my iPhone wasn't lasting a full working day. I used to have to charge in the car on the drive home. Now I can have 75% bettery remaining when I leave the office.

Date: 2011-09-16 06:55 pm (UTC)
From: [identity profile] dreema.livejournal.com
i've done this with my desire hd, living in the boondocks we don't get much of a 3g signal. I normally have the phone on charge in the morning. When 3g was on there would be maybe 20-30% battery remaining, with it off there's over 50%, so it could technically do two full days now.

Just out of interest since i started using the HD, i've put my hero into airplane mode. Without being used at all, the battery has currently lasted 30 days and still doesn't need charged (although i think it may soon, when i checked it was down to about 15%)

Date: 2011-09-16 07:03 pm (UTC)
From: [identity profile] octopoid-horror.livejournal.com
I read somewhere that if you're somewhere that has a fairly weak signal, the phone tends to use more power trying to actually stay connected, regardless of whether it's actually being used. So if you're travelling abroad, or somewhere rural, your phone might die a lot quicker.

Whether that's accurate or not, I don't know, since I am not a techie person :-D

Date: 2011-09-16 07:13 pm (UTC)
From: [identity profile] daveon.livejournal.com
Ugh... how much of an essay do you need on this?

- Radio Stack management: even with data turned off, holding a connection to a live voice network is a complicated thing to do - you're talking to different cell stations, checking in with the network and doing a bunch of other stuff - there is nothing about simple about "being attached to a phone mast"

- Crap drivers - basically crap, nothing but crap. Crap graphics, crap boot loader, crap, crap with added crap - so you've memory leaks, and stuff spinning up and not spinning down that just sits there in memory eating milli-amps

- More Crap drivers

- Poor interupt handling design in the OS - Windows Phone was bad for this. iPhone isn't great. Android is pretty horrible too. Every time your phone screen comes on, does nothing and then lets you know you missed a call and have a voice mail, you've just hosed power without even ringing

- Have I mentioned crap drivers?

Basically, phones are a mess.

I know engineers you can talk to if you really want to get bored rigid.

-

Date: 2011-09-16 07:21 pm (UTC)
From: [identity profile] daveon.livejournal.com
That should improve things. But even back in the days of 2G we used to have these problems with just finding a network.

Even a simple 2G stack is doing a lot when it's turned on:
- checking the strengths of the local cell landscape
- keeping an eye on the signalling channel for incoming SMS
- negotiating the handover to another tower
- rinse-repeat

WCDMA is WAYYYYY harder and more processor intensive.

I think the metrics I heard were that a typical 2G stack is about 100,000 lines of code, whereas a 3G one is something like a million...

Date: 2011-09-16 07:23 pm (UTC)
From: [identity profile] daveon.livejournal.com
In a nutshell yes. That and a degree of anal retentive testing that only a Finn can achieve :)

They also have the advantage of owning the entire stack and having a hell of a lot of control over the hardware going into it.

Date: 2011-09-16 07:47 pm (UTC)
From: [identity profile] drainboy.livejournal.com
I have an iPhone 4.

And being a technically incompetent, apple licking Jobs-aphile will likely get an iPhone 5 ;)

(though not necessarily and I'd definitely not do it blindly, but I generally don't want all the extra bits of control others do on my phone and this one does plenty for me in terms of ringing people/texting/looking at the internet, in a way that the GUI inevitably works the way I expect it to and I never have to look at a instruction manual)

Date: 2011-09-16 08:33 pm (UTC)
ext_16733: (Default)
From: [identity profile] akicif.livejournal.com
Yup - if I'm away at a festival in an area with no signal, my batteries die faster than if I've got good signal and am occasionally checking gmail/twitter.

Luckily I can switch my current phone to airplane mode, and it takes the same batteries my old phone did.

Now, if only Sony Ericsson had an android phone that used the same batteries....

Date: 2011-09-16 08:37 pm (UTC)
kmusser: (Default)
From: [personal profile] kmusser
If you have a GPS receiver on there, that can be a big memory suck as well - they are usually always on unless explicitly turned off.

Date: 2011-09-16 09:19 pm (UTC)
From: [identity profile] sbisson.livejournal.com
That's still unclear - Windows Phone content here has focused on 7.1/7.5, and its Metro style of development. However I have C# code that uses compile directives to spit out desktop or mobile or web versions of Silverlight code with minimum code differences.

WinRT is a *lot* closer to the WP7/7.5 APIs than Win32, which makes me wonder about WP8 - which is about a year away. If they don't merge dev models then, I seriously expect a combined Windows 9 OS (that's not Windows) that supports phone, desktop/laptop/tablet and XBOX, what I'm thinking of as the first ubicomp OS. We've certainly seen elements of it here, especially with the deprecation of Win32.

Date: 2011-09-16 09:20 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Yes. Of course these days they're mostly stored onboard as HTML files or similar, but...

Date: 2011-09-16 09:21 pm (UTC)
From: [identity profile] sbisson.livejournal.com
Yeah, but as I'm press I don't get to keep the tablet :-(

But yes, it's been really interesting. I'm looking forward to conversations with folk in Redmond next week now they can talk about stuff.

Date: 2011-09-16 09:25 pm (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
That and using an 'underpowered' OS that works fine on a 'low spec' phone-my N8-00 technically underspecs other equivalent phone, but gets up to 4 days battery life depending on what I'm using it for, that's with 3G and wireless on most of the time.

But it still does everything I need better than a friends iPhone4, which suits me fine. Sure, there can be RAM issues if I'm running huge numbers of apps/tabs, but that's me being daft.

Date: 2011-09-16 11:04 pm (UTC)
From: [identity profile] poisonduk.livejournal.com
I love you Mike! I'm steve jobs bitch and I'm still a geek! and will quite happily admit my 4 will be replaced by a 5 - do I know what features it will have - no! Do I care - no! but it will be pretty and my precious!

However I totally agree with how much the 3G and wifi drains the battery - When i was in the states I was charging every 3 - 4 days.

Date: 2011-09-17 12:31 am (UTC)
From: [identity profile] bohemiancoast.livejournal.com
Yup, number one thing I do when travelling to Zone 6 is to *turn off the 3G and WiFi* except when I'm actually using it. You don't need to be going to rural Spain; a field in Oxfordshire does just as well.

Number two thing I do if I'm going to the Land of No Electricity Supply is to take my iPad, which solves most of these problems handily by having a MASSIVE BATTERY OF DOOM.

Date: 2011-09-17 08:43 am (UTC)
From: [identity profile] danmilburn.livejournal.com
Or at least they *did* own the entire stack..

Date: 2011-09-19 06:59 pm (UTC)
From: [identity profile] martling.livejournal.com
What I'd love to know is whether it's really bad radio hardware/firmware that sucks up the battery, or whether having the radio on constantly triggers the phone's OS into wakefulness, interrupting it many times per second to tell it it's still there.

In a modern smartphone the OS you use has very little interaction with the radios. This is because no sane system designer is going to let Windows Mobile, iOS or even Linux anywhere near that level of hard realtime work, let alone whilst also supporting arbitrary user-loaded applications. So the radio drivers run on a totally separate OS on a different core.

Back in 2008 I helped to do the Linux port to the Qualcomm MSM7200 smartphone chipset, which was used in the HTC Kaiser and some other handsets that originally shipped with Windows Mobile. It was a reverse engineering job: there was no public documentation for that chipset but we had the kernel code Google had just released for the very similar MSM7201A used in the G1, and we could poke into what Windows Mobile did on the phone.

On that chipset there were two cores, an ARM11 which ran Windows Mobile (or once we were done, Linux and Android), and an ARM9 which ran the radio code. From the firmware image for it we had figured out that the radio core ran an L4 microkernel, but beyond that it was a black box.

The two cores communicated via a small area of shared memory, arranged in circular buffers. Code on one core would write into one of these areas and update a counter indicating where it had written up to; code on the other core would read up to there and update another counter to say it had done so, allowing the sending side to then reuse the memory. There were several of these buffer/pointer structures, some on their own and some in pairs to provide a bidirectional channel.

One two-way channel provided an AT-command interface to the GSM modem, one gave a one-way NMEA stream from the GPS, etc etc. All we had to do in order to drive the radio hardware was to use those serial interfaces, twiddle a few other bits here and there to turn things on and off, and catch the odd interrupt to say a text message had come in or whatever.

In general the whole system was set up so the user OS had to do as little as possible: e.g. in a call, audio was routed directly from the radio core to the DSP which drove the analogue outputs - the OS core never even saw it.

Obviously the hardware has moved on a bit in the last couple of years but I think you will still find the same basic design philosophy in current phones.

So, if you want to save battery, keep your radios off and turn them on manually only when you want them. Unless things have changed a lot then the OS core probably has little more than on/off control for each radio. Meanwhile, the radio core probably has no idea what's happening on the OS side so it's not going to be that intelligent about whether to keep various aspects of communications going just in case you're about to do something.

I keep the Power Control applet on my Android homescreen for exactly this reason, and get days out of my Desire Z battery.

May 2026

S M T W T F S
      1 2
3 45 6 7 8 9
10 11 1213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 13th, 2026 09:19 am
Powered by Dreamwidth Studios