iPhone 3G With iOS 4 Battery Life / Performance Bug

There’s been various reports of poor battery life in particular with the iPhone 3G and iOS 4. After updating I noticed battery life was reduced for my phone, but not as bad as many others were reporting (I’d say a ~15% reduction in battery life). I did however find what appears to be a fix. It’s quite simple actually.

Plug in your iPhone 3G either to the wall charger or your computer’s USB port and let it charge while on for several hours (overnight should be cool). Power down your phone, then turn it back on. For me this brought the phone’s battery life back to where it was before the update.

Why does this fix work? I’m not sure but I do have a theory. It appears when the OS was upgraded your spotlight database needed to be updated. This requires indexing all the data on your phone. Needless to say all this effort kills your battery. Apple must have some algorithm in place to do this work and preserve battery life but it obviously changed between iOS 3 and iOS 4. By leaving it plugged in it appears to complete the process and by restarting it will make sure that any hanging process on your phone is killed and memory fragmentation is cleaned up. iOS 4 runs tight, swapping kills performance and battery life. This also seems to help performance as my phone doesn’t lag as much anymore (though it’s hardly a speedster like the iPhone 4). It also explains why some people would see different levels of the problem as it would depend on how much you have to index.

Let me know if this fix works for you.

iPhone 4 Teardown Analysis

iPhone 4 Teardown

iFixIt has their traditional teardown posted. After analyzing every picture, a few things are noteworthy:

Stainless Steel Antenna

The stainless steel antenna strikes me as more than just an antenna, but Apple will never admit it. The iPhones before all suffered from the same structural weakness. If dropped so that it lands on a corner or a side, the body flexed putting pressure on the glass and possibly digitizer if the impact was strong enough. This resulted in the shattered glass you sometimes see people walking around with. If the phones land on their backs or faces, they are often fine minus a tiny scratch or two. This is because the sides of earlier models were not very strong. The metal band you see on the earlier models isn’t enough to hold up to the force of a drop from 5 feet. It was a thin piece of stainless steel around what is otherwise plastic. Most of the metal in the previous phones are actually thin EMF shields, not anything structural.

I suspect this new frame also serves to strengthen the phone and prevent this type of damage.

Creative EMF Shielding

The previous iPhones pretty much just had a large EMF shield like we see in most consumer appliances. The new iPhone has a bunch of tiny EMF shields. The advantage to this approach is that they can cram more things into small nooks and crannies. Apple is clearly desperate for every nanometer of space they can get.

No Surprise Chips

Nothing inside circuitry wise is even remotely surprising. Samsung flash memory, Broadcom WiFi, Bluetooth (BCM4329), Cirrus Logic audio codec, TriQuint/Skyworks GSM/GPRS chipset, STMicro accelerometer. The new gyroscope is suspected to be STMicro, which isn’t shocking. There is a Broadcom GPS (BCM4750) chip, same as the iPad. Prior to the iPad, the iPhone 3G and 3GS used an Infineon Hammerhead GPS chip which was questionable in performance. Perhaps this will finally give the performance necessary for eventually making turn by turn directions a reality.

Battery Technology Needs To Improve

It’s becoming clear looking at the iPhone 4 that Apple made the right decision to make the battery non-removable. The hardware and extra material to make it removable would have really bulked up the phone. At this point the battery is by far the biggest single space consumer in the iPhone. Look how dense the circuitry for the phone is in comparison to the hulk sized battery. Apple crammed what a few years ago was a full PC into that sliver on the side of the phone. The rest is largely the battery with glass and LCD in front and various speakers, microphones, cameras and sensors mixed in the otherwise empty nooks.

Apple really needs to find a technology that can offer a higher power density ratio for the iPhone to get any lighter or longer battery life. Custom silicon will help them, but it’s only going to go so far and so fast. It’s becoming obvious that power is a major concern and limitation for Apple engineers. I suspect Apple spends a ton of R&D time and money trying to figure out how to deal with this limitation the best they can from the physical space requirements to power efficiency and software innovations.

Don’t be shocked if Apple either invests or just acquires a company who is doing something interesting in the battery space just like they picked up P.A Semi.

Environmental Stats

Apple hasn’t published their environmental report yet on the iPhone 4. I’m curious how the greenhouse gas emissions changed between the iPhone 3GS and iPhone 4. Several things have changed about its composition including the glass and steel frame that should make it interesting. The iPad’s slightly different (and larger) power adapter boasts an 80% efficiency rating. The iPhone 3GS is only in the 70% range. I’m curious if Apple quietly updated the adapter at all or not (I suspect not, but it’s possible).

Image courtesy iFixIt

The Goonies Deleted Scenes And Alternate Ending

The Goonies Squid

Those from my generation will obviously remember The Goonies. For those who aren’t, you should know it is still occasionally shown on cable TV. Apparently they did a 25th anniversary reunion. As a bonus some cut scenes are coming out, including one with this terrible mechanical octopus.

I’m glad that never made the final cut.

The Secret Powers Of Time

Secret Power Of Time

Professor Philip Zimbardo on how your perspective of time impacts pretty much everything in life and how it’s fundamentally changing thanks to technology. There’s been a lot of talk about this lately.

I guess this is pretty much the idea behind his book The Time Paradox. I guess I should add that to my list of books to read if I can ironically ever find the time.

Introducing “It’s All Good”

Several months ago I was looking for a good way to monitor not just my server, but the actual services on the server. Just responding to a ping doesn’t mean everything is OK. As the old saying goes “if you can’t find it, build it”. The result of this is a little project called It’s All Good.

At its core it’s a light framework for checking various aspects of a server and deciding if things are operating within defined parameters or not. So far it has “out of the box” support for:

  • CPU Load – As simple as it sounds. Check that your CPU load doesn’t exceed a threshold you define.
  • Disk Usage – Sets off an alarm when your server is running low on disk space.
  • SMTP Ping – This makes a connection to your SMTP server to check that it’s online and operational.
  • MySQL Check – Checks to see if it can make a successful connection to a MySQL server.
  • HTTP(s) Check – This can connect to a HTTP or HTTPS server and check that it connected successfully as well as check that for a condition on the page. This is handy to make sure a web app is up and running or that your SSL cert isn’t expired.

Like I said, it’s just a framework, so adding other checks are relatively easy. There’s lots more I want to include (memory, disk IO, process monitor for example). It’s designed to monitor the host, not a series of servers (though technically doable). This isn’t Nagios, it’s a way to get a quick glance at your key services on a host.

On its own it doesn’t send any notifications. It’s designed to be combined with the keyword monitoring feature of services like Pingdom, Monitis, Host-Tracker, SiteUptime, or Howsthe.com among others. This way you not only check services, but the server itself. If anything fails, you will be notified by your monitoring provider.

It’s All Good also has a UI for an admin to view which can give you the status and a basic rundown of its polling data. It’s also designed to so that it’s pretty easy to read on mobile devices like the iPhone, making it a great dashboard for on the go.

Lastly it’s designed to be pretty light and quick, so unless you are monitoring a ton of things on your server, it shouldn’t have any real overhead.

So far I’ve only implemented real support for the checks for Linux. I suspect most will work on BSD, and Darwin (though not all). Windows still needs some help. Patches are welcome. I’d also like to support things like IP whitelist/blacklists (automated via RSS fetches), and lots of modules to extend what it can keep track of.

Licensed GPL v2.

Phil Plait On Retina Display Resolution

There has been some ongoing debate the past few days about if Apple’s new Retina display is really better than the human eye can detect. Some have even gone as far as calling it false marketing.

Phil Plait, whose background includes calibrating a camera on board Hubble wrote a really great blog post that sides with Apple. I’ve been a fan of Phil’s blog for some time and remember when our websites were hosted by the same provider many years ago. It’s not too math heavy, and as always he does a great job explaining everything. Totally worth reading.

Essentially if you had absolutely perfect eyesight, which almost nobody has, you’d still see pixels, but again virtually nobody does. People will still make silly claims, but remember there are audiophiles who claim they can hear subtle differences that $10,000 worth of scientific equipment can’t detect. Despite humans having worse hearing than a dog, who can’t hear what the equipment can pick up not to mention them being older. So I’d take those claims with a grain of salt.

Pull Over Before You Pull It Out

Jabra, the company known for their mobile headset did an interesting survey of driving distractions. We’ve all seen a ton of these in the media over the years, generally we know that pretty much everyone eats at least occasionally while driving (72%). We also know people talk on the phone. We know some even text while driving (28%). Some even play video games (5%). The winner however is this little gem:

29% of respondents admitted to kissing others while driving, whereas a smaller, but surprising number (15%) said they’ve performed sex or other sexual acts while driving.

How about a public safety campaign to help bring this closer to the number playing video games (5%). I propose the following slogan: “Pull over before you pull it out.” Poster designs welcome.

Initial iPhone 4 Thoughts

iPhone 4Here are my general thoughts on the iPhone 4 since the announcement. Hopefully I’ll be able to check one out in the store soon enough.

  • The “retina” display is the killer feature – I’ve yet to see anyone report anything other than words of astonishment after viewing it. Low resolution displays, poor refresh rates, bad contrast is all hard to read but we’ve all adapted from using technology. Go back to a CRT or monochrome display and you’ll know what I mean. This display is moving forward to the next generation. In a few years you’ll look at an iPhone 3G and wonder how you ever read email on something of that quality without getting a headache. The usability of the extra pixels and the quality will set the standard for future phones.
  • The form factor is strong – I actually think the new form factor is pretty nice. I appreciate the curved design, but it’s a bit out of style and quite frankly I’m not sure that space went to any better use in my pocket. It didn’t make it feel emptier either. Giving that space for more features and battery seems like a good tradeoff. Switching to stainless steel after so much aluminum is interesting. Will we see steel in other products? Or was this simply done because of the radio properties? I believe it was John Gruber who mentioned aluminosilicate glass being used in future products a few months ago since it has better radio properties than the metal backs on the first iPhones and isn’t as fragile and weak as the plastic that has been used on the iPhone 3G and iPhone 3Gs. It also looks pretty nice.
  • Better Camera(s) + Flash + HD Video – This is the runner up killer feature in my mind. The first big win is that the sensor is actually better, not just more megapixels, since megapixels are mostly the stuff of myths. Flash is handy, but in reality without a good sensor it’s not going to make much of a difference anyway. HD Video is interesting, 720p is especially awesome. I suspect the front mounted camera will be more useful to developers than to FaceTime use thanks to the WiFi limitation and people generally hating video chat for practical purposes. It’s still VGA quality, which is impressive. At this point for some people the iPhone 4 will be their primary camera. It’s not replacing SLR’s anytime soon, but Point & Shoot manufacturers should start thinking twice with what’s on the market now. Especially since video is becoming a focal point.
  • FaceTime – We all “ooh and ahh” every time we see video chat, but the reality is people hate it. The technology to do it has existed for almost a generation now in various forms. The reason why we call, email, IM, text each other is because we are either to busy for face to face, or we just want to avoid each other. Don’t take it personally, we all do it either for the sake of brevity, or so that we don’t have to comb our hair and get dressed, shave/apply makeup. I suspect this will be the same thing. If people were really so interested in it, everyone on earth would be using Skype or iChat by now. Almost every IM service has offered video chat at one point, all were pretty easy to use if you have a camera, which costs less than $50 for many years and is plug n’ play with OS’s post 2002 (Windows XP, OS X). How many of you Mac users with iSights built-in fire up iChat and not send an email? People think “Jetsons” then send a text message. It’s convenient.
  • Dual-mic noise suppression – This is a pretty fancy way of addressing the problem, and a pretty nice one. I suspect if Apple exposes the necessary API’s we’ll see some interesting Apps doing some unusual things with the hardware, assuming that API is exposed. If it’s not, there will be some clever hacks for jailbroken iPhones.
  • Finally 802.11n – iPhone 4 supports 802.11n, something that wasn’t advertised very much for good reason. While it’s pretty cool to support, I doubt the iPhone is powerful enough to process that much incoming data in any way that would make it worthwhile. I think the main benefit to connecting over 802.11n is to avoid lowering performance of non-dual-band networks.
  • 3-axis gyro means some good gaming – Game developers will make good use of it. We’ll see some impressive demos pretty quickly, I’m sure Apple gave a few folks a sneak peek so they could start developing. In several months we’ll see some real creative things come out of this.
  • Name is semi-stupid – Apple went from naming models like the “PowerMac 9600” to only naming generations of machines like the “G3”, “G4”, “G5”. More recently they moved to just “Mac Pro”. Now they are re-introducing numbers, but only for mobile phones? Odd.
  • Apple A4 processor – Faster, lower power. That’s about all there is to say here. It’s the future of Apple mobile at the present time.
  • Plan paradox – Interesting how as the phone gets faster, and can generate more data by way of HD video, and 5 MP pictures the data plans are actually getting smaller. I suspect this will eventually result in either several tiers or a pay as you go scheme. Overall I think there’s a good chance cost per MB will be increasing for most users in the long-term 18-36 months.
  • iOS – I knew Apple would rename the OS since it was getting confusing with the iPad. I would have assumed something more creative than iOS, especially given the Cisco IOS . Guess that’s good enough though. Most users won’t care. A few networking engineers will go insane when Google turns up iPhone blog posts rather than than relevant documentation.
  • Competing with Android – I think Apple did a good job here. The truth is most of the places where Android has a competitive edge are in cloud services and social networking. This is all software. Apple can address this well within a years timeframe if they think that’s hurting their sales. They don’t need to wait until a hardware revision. Apple could ship iOS 4.1 by end of year with those features. I think iOS 4.0 was set in stone a while ago to be honest. It was mostly about developer API’s and iPad. I wouldn’t be surprised if Apple does do a 4.1 or 4.5 release more focused on this type of stuff in the near future. I’d put the odds at about 51%. Software is easier to correct than hardware.
  • Google should be thrilled – Google is still the default search engine, most users won’t even think of switching. Apple is also arming it’s customers with HD video and better quality cameras. That means tons more content going onto the web for Google to index and even serve via YouTube. Google can benefit immensely. One person catching an interesting news story on an iPhone video and uploading to YouTube can be huge for them. It can be huge for anyone who gets the video.

iPhone 4 photo courtesy Apple Inc.