Purdue Team Tackling ‘No-Sleep Energy Bugs’ That Drain Smartphone Batteries
Posted By Timon Singh On June 15, 2012 @ 2:20 pm In Green Products | No Comments
Are you fed up with your smartphone battery draining  by lunchtime? Especially when you’re not even using it? Well, a team from Purdue University  have set out to tackle this problem by proposing a method that automatically detects “no-sleep energy bugs”  — a type of software glitch that can drain your battery without you knowing it.
These annoying software glitches have been dubbed “silent battery killers”  due to their frustrating ability to empty a fully-charged phone battery in as little as five hours. To tackle this problem, which is industry-wide, many smartphone manufacturers have adopted an “aggressive sleep policy.”
Y. Charlie Hu , a Purdue University professor of electrical and computer engineering, is heading the research and said: “What this means is that smartphones are always in a sleep mode, by default. When there are no active user interactions such as screen touches, every component, including the central processor, stays off unless an app instructs the operating system to keep it on.”
But what about the various background operations  that need to be performed while the phone is idle, such as checking your inbox and backing up your files?
To prevent the phone from going to sleep during such operations, smartphone manufacturers make application programming interfaces , or APIs, available to app developers. The developers insert the APIs into apps to instruct the phone to stay awake long enough to perform necessary operations – however this is what can drain your battery in just a few hours.
“App developers have to explicitly juggle different power control APIs that are exported from the operating systems of the smartphones,” Hu said. “Unfortunately, programmers are only human. They make mistakes when using these APIs, which leads to software bugs that mishandle power control, preventing the phone from engaging the sleep mode. As a result, the phone stays awake and drains the battery.”
The team believes that they have found a way to detect and fix these bugs. Aftering studying 187 bug-ridden Android applications , all of which contained power control APIs, the tool they used to detect the bugs not only detected all 12 previously known instances of no-sleep energy bugs, but also found 30 new ones.
To detect the energy-sucking bugs, the researchers used a modified tool called a compiler that translates code written in computer languages into the binary code that computers understand. The tool is then able to analyze the binary code and automatically and accurately detects the presence of the no-sleep bug.
Any tool that prevents the global population having to constantly recharge their phones (and as a result use more energy), is a must-have in this writer’s book.
URL to article: http://inhabitat.com/purdue-team-tackling-no-sleep-energy-bugs-that-drain-smartphone-batteries/
URLs in this post:
 smartphone battery draining: http://inhabitat.com/tag/why-does-my-smartphone-battery-drain-so-quickly/
 a team from Purdue University: http://www.purdue.edu
 detects “no-sleep energy bugs”: http://www.purdue.edu/newsroom/research/2012/120613HuSmartphoneBugs.html
 Y. Charlie Hu: https://engineering.purdue.edu/ECE/People/profile?resource_id=3351
 various background operations: http://inhabitat.com/free-smartphone-applications-can-consume-75-of-your-battery-life/
 application programming interfaces: http://en.wikipedia.org/wiki/Application_programming_interface
 bug-ridden Android applications: http://inhabitat.com/tag/applications-smartphone-battery/
 liewcf: http://www.flickr.com/photos/liewcf/
 brendan-c: http://www.flickr.com/photos/brendan-c/
 Andrew*: http://www.flickr.com/photos/nez/
Copyright © 2011 Inhabitat Local - New York. All rights reserved.