(Press-News.org) WEST LAFAYETTE, Ind. - Researchers have proposed a method to automatically detect a new class of software glitches in smartphones called "no-sleep energy bugs," which can entirely drain batteries while the phones are not in use.
"These energy bugs are a silent battery killer," said Y. Charlie Hu, a Purdue University professor of electrical and computer engineering. "A fully charged phone battery can be drained in as little as five hours."
Because conserving battery power is critical for smartphones, the industry has adopted "an aggressive sleep policy," he 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."
Various background operations need to be performed while the phone is idle.
"For example, a mailer may need to automatically update email by checking with the remote server," Hu said.
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.
"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."
Findings are detailed in a research paper being presented during the 10th International Conference on Mobile Systems, Applications and Services, or MobiSys 2012, June 25-29 in the United Kingdom. The paper was written by doctoral students Abhinav Pathak and Abhilash Jindal, Hu, and Samuel Midkiff, a Purdue professor of electrical and computer engineering.
The researchers have completed the first systematic study of the no-sleep bugs and have proposed a method for automatically detecting them.
"We've had anecdotal evidence concerning these no-sleep energy bugs, but there has not been any systematic study of them until now," Midkiff said.
The researchers studied 187 Android applications that were found to contain Android's explicit power control APIs, called "wakelocks." Of the 187 apps, 42 were found to contain errors - or bugs - in their wakelock code. Findings showed the new tool accurately detected all 12 previously known instances of no-sleep energy bugs and found 30 new bugs in the apps.
The glitch has been found in interactive apps, such as phone applications and services for telephony on Android that must work even though the user isn't touching the phone. The app may fail to engage the sleep mode after the interactive session is completed.
Smartphone users, meanwhile, don't know that their phones have the bugs.
"You don't see any difference," Hu said. "You put it in your pocket and you think everything is fine. You take it out, and your battery is dead."
To detect bugs in the applications, the researchers modified a tool called a compiler, which translates code written in computer languages into the binary code that computers understand. The tool they developed adds new functionality to the compiler so that it can determine where no-sleep bugs might exist.
"The tool analyzes the binary code and automatically and accurately detects the presence of the no-sleep bugs," Midkiff said.
The Purdue researchers have coined the term "power-encumbered programming" to describe the smartphone energy bugs. Researchers concentrated on the Android smartphone, but the same types of bugs appear to affect other brands, Hu said.
###
The research has been funded in part by the National Science Foundation. Pathak is supported by an Intel Ph.D. fellowship.
Related websites:
Y. Charlie Hu: https://engineering.purdue.edu/ECE/People/profile?resource_id=3351
MobiSys 2012: http://www.sigmobile.org/mobisys/2012/index.php
Abstract on the research in this release is available at: http://www.purdue.edu/newsroom/research/2012/120613HuSmartphoneBugs.html
'No-sleep energy bugs' drain smartphone batteries
2012-06-14
ELSE PRESS RELEASES FROM THIS DATE:
NASA's TRMM views forming tropical cyclone
2012-06-14
System 94E and System 95E are low pressure areas located off the western coast of Mexico that are being watched by forecasters and by satellites. Each of them has the potential for development into a tropical cyclone, although System 95E has a greater chance. That low was recently spotted by NASA's TRMM satellite, which provided rainfall and cloud height data to forecasters.
The National Hurricane Center (NHC) has warned that another tropical cyclone is probably forming from System 94E, located south of Guatemala and El Salvador. The TRMM satellite flew over on June 13, ...
LondonTown.com Supports PrideLondon 2012 with Discounted Hotel Rates Across the Capital
2012-06-14
PrideLondon returns in a bigger and better form in 2012 as a two-week long festival takes over central London. WorldPride Festival runs from 23 June through to 8 July with the PrideLondon Parade taking place on 7 July.
More than one million visitors are expected to enjoy the festivities in Trafalgar Square, Leicester Square and Soho, which are open to everyone, gay or straight, male or female.
The parade itself is getting extended to make way for even more floats, costume groups and walking bands that will be more colourful, entertaining and lively than ever before. ...
Berkeley Lab scientists help define the healthy human microbiome
2012-06-14
You're outnumbered. There are ten times as many microbial cells in you as there are your own cells.
The human microbiome—as scientists call the communities of microorganisms that inhabit your skin, mouth, gut, and other parts of your body by the trillions—plays a fundamental role in keeping you healthy. These communities are also thought to cause disease when they're perturbed. But our microbiome's exact function, good and bad, is poorly understood. That could change.
A National Institutes of Health (NIH)-organized consortium that includes scientists from the U.S. Department ...
OrangeHRM Launches OrangeAM - A Global Leave Management System
2012-06-14
OrangeHRM Inc. a global leader in HRIS development for small and medium-sized enterprises worldwide, launched OrangeAM (Absence Management System) with improved and sophisticated leave management features.
The success of the leave module led to the creation of this standalone service, OrangeAM. OrangeAM facilitates defining leave types, work weeks, company holidays, leave accruals, rules and policies that can be applied for all subsidiaries across the globe with rules specific to each country.
"Absent management is a critical part of managing your human capital, ...
Marital problems in childhood affect teen adjustment
2012-06-14
Marital discord is a significant social problem for children, sometimes leading to problems in health and well-being. A new longitudinal study finds that the impact of marital problems on children in their kindergarten years is long lasting and can lead to emotional problems that contribute to difficulties in adolescence.
The study, by researchers at the University of Notre Dame and the University of Rochester, appears in the journal Child Development.
"The results further highlight the possibility that there will be persistent negative effects of children's early experiences ...
Hollywood Meets China
2012-06-14
A groundbreaking and historic opportunity is about to occur for members of the Hollywood community who will be granted access to China's state run film, television and radio industry. Black Card Circle's "Executive Leadership Exchange" in Shanghai is an intensive program in partnership with the China Executive Leadership Academy Pudong (CELAP) and is coordinating a 5-day itinerary focused on the Chinese film and entertainment industry, taking place June 25th - 29th, 2012 in Shanghai.
Relationships built at this exclusive event may open doors to many present ...
Childhood obesity found linked to math performance
2012-06-14
Obesity among children has increased dramatically over the past 40 years and has been tied to many health problems. Now a new study has found that children's weight is associated with their math performance.
The longitudinal study, published in the journal Child Development, was carried out by researchers at the University of Missouri, Columbia, the University of California, Los Angeles, and the University of Vermont.
"The findings illustrate the complexity of relations among children's weight status, social and emotional well-being, academics, and time." according ...
Child care subsidies boost quality of care for some but not all
2012-06-14
The federally funded child care subsidy program is among the government's biggest investments in the early care and education of low-income children. A new study has found that subsidies have the potential to enhance the quality of child care low-income children receive, but parents who use the subsidies aren't necessarily accessing the highest quality of care available to them.
The study, conducted at Georgetown University and Columbia University, appears in the journal Child Development.
"Among all children who were eligible for child care subsidies, those who used ...
Civil War History Comes Alive as Morgan's Raid Again Rages Through Indiana
2012-06-14
The blast of cannons and the piercing ring of reveille will punctuate the Midwest countryside this July, as dozens of soldiers reenact the famous Civil War Battle of Corydon, which originally took place July 9, 1863. The dramatic reenactment is slated for July 7-8, 2012. Events, such as reveille and an encampment are held at Hayswood Nature Reserve, just a short distance from the historic battlefield. For more information on Corydon and the Battle of Corydon visit www.thisisindiana.org.
The original Battle of Corydon was sparked when 450 members of the Harrison County ...
Regenerated cells may restore vision after corneal dysfunction
2012-06-14
Philadelphia, PA, June 14, 2012 – Regenerative medicine, or the use of specially grown tissues and cells to treat injuries and diseases, has been successful in treating disorders of a number of organs, including heart, pancreas, and cartilage. However, efforts to treat disorders of the corneal endothelium, a single cell layer on the inner surface of the cornea, with regenerative techniques have been less effective. Now, a group of scientists has developed a method that enhances the adhesion of injected corneal endothelial cells (CECs), allowing for successful corneal ...