Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dyndragon
Old
(Last edited by dyndragon; 12th June 2010 at 06:26 AM.) Reason: changed topic to be more specific
#1  
Senior Member - OP
Thanks Meter 54
Posts: 505
Join Date: Jan 2007
Default [BRAINSTORM] Increasing battery life by deactivating APN when low signal

Apologies if this belongs in Themes & Apps, but I thought it seems more like programming at the OS level than a new app.

I had an idea while driving home after a long day in a location that had low 3G signal, and my phone was dead:

Latedroid's Juicedefender helps save battery by turning off the APN every x minutes, and we know that using 3G/EDGE data eats up a lot of battery, especially when in a low signal area (takes more power to transmit).

How feasible would it be to create an app/build in code in Android for the functionality to turn off/disable the APN when the signal level is below a certain threshold?

Of course, you would need to build in some sort of manual override for times you really want to use data even if you are in low signal area. Perhaps if the device is NOT in sleep, do not disable the APN regardless of signal strength. But if the device is sleeping, disable APN if signal is lower than x dB.

What do you all think? Problems I already foresee is that switching APN on and off would have a delay upon first wakeup, or possibly interrupt data transfers in progress when device goes to sleep.

Thanks,

--Hans
 
dictionary
Old
#2  
dictionary's Avatar
Senior Member
Thanks Meter 434
Posts: 2,253
Join Date: Dec 2009

 
DONATE TO ME
Very interesting
Retired:
HTC g1 - Sold
HTC European Hero - Sold
HTC Google Nexus One T-mobile - Sold
HTC Google Nexus One AT&T - Sold
HTC Desire Z - Sold
Samsung Google Nexus S - Sold
ViewSonic G-Tablet - Sold
Asus Transformer - Sold
Samsung Galaxy Tab 10.1 - Sold
Acer Iconia A500 - Sold
Motorola Xoom - Sold

Currently Owned:
HTC Inspire 4G (backup phone)
HTC Flyer 7"
Samsung Galaxy Tab 2 7"
Samsung Galaxy Nexus - Current phone
 
THATTON
Old
#3  
THATTON's Avatar
Senior Member
Thanks Meter 33
Posts: 1,091
Join Date: Aug 2007
Location: Bakersfield
Actually, this sounds like a very good idea. Now, just need to find a dev capable of producing such results. Maybe contact the developer of Juice Defender/Plotter and see if it is feasible. I like where this could go though. Battery is the ONE complaint I have about my otherwise sexy and powerful device!
 
oaf_tobark
Old
#4  
Junior Member
Thanks Meter 2
Posts: 26
Join Date: May 2010
Location: Saskatoon
Great idea.
I have thought about this as well.
 
RogerPodacter
Old
#5  
Senior Member
Thanks Meter 383
Posts: 5,527
Join Date: Apr 2010
Location: Los Angeles, CA
this would be too difficult to implement i would think. even in strong signal areas, the reception bounces all over the place sometimes. the phone would constantly be bugging itself out i would think as the signal dips below, then goes right above, the threshold level.
My boring Github
My N1 Battery Project

Phone: Galaxy Nexus
ROM: AOKP 29 4.0.4
Recovery: CWM Touch
 
dyndragon
Old
#6  
Senior Member - OP
Thanks Meter 54
Posts: 505
Join Date: Jan 2007
Quote:
Originally Posted by RogerPodacter View Post
this would be too difficult to implement i would think. even in strong signal areas, the reception bounces all over the place sometimes. the phone would constantly be bugging itself out i would think as the signal dips below, then goes right above, the threshold level.
Nah, I don't think so. With some clever programming and it watching maybe an average signal level over some period of time, I think it could do pretty well. The idea is to avoid HUGE battery drains over a moderate amount of time.

For example, if i'm at work in my office building, i get 0-1 bars of signal strength for 8 hours. It would be great if it detected after, say...10 minutes that my signal strength was in the crapper, and turned off the APN (or at least, account syncing) so I won't leave work 8 hours later with 5% battery life. But, if I wake my phone up, it will automatically turn the APN on so I can use data as I see fit.

But let's say I go out for lunch. The phone would either detect that I'm changing position/location via cell towers, or it would just regularly poll signal level and when it found that my signal level had increased by some delta amount over say...5 minutes, it would turn the APN back on.

I find that most of my frustration with this phone is with battery drain, and most of the drain comes from sitting in low signal areas for extended periods of time. If this could be accomplished (with configurable thresholds and stuff about time to average the signal over, etc) I think it would be an excellent addition to the customization-ability of android!
 
leonnib4
Old
#7  
leonnib4's Avatar
Senior Member
Thanks Meter 85
Posts: 1,454
Join Date: Mar 2010
Location: Paris

 
DONATE TO ME
Good thoughts.

Quote:
Originally Posted by THATTON View Post
Actually, this sounds like a very good idea. Now, just need to find a dev capable of producing such results. Maybe contact the developer of Juice Defender/Plotter and see if it is feasible. I like where this could go though. Battery is the ONE complaint I have about my otherwise sexy and powerful device!
But yeah, this may requires a good dev.

Thanks for launching the discussion!
== Google Nexus One ==

[Bootloader] 0.35.0017
[Recovery] AmonRA v2.2.1
[System] Android 2.3.7 / GWK74
[ROM] LeoGOxygeN1 [/URL]
[Kernel] custom 2.6.35.14
[Radio] 32.41.00.32U_5.08.00.04
[Launcher] GO Launcher EX

[WebSite] www.shkschneider.me
 
RogerPodacter
Old
#8  
Senior Member
Thanks Meter 383
Posts: 5,527
Join Date: Apr 2010
Location: Los Angeles, CA
Quote:
Originally Posted by dyndragon View Post
Nah, I don't think so. With some clever programming and it watching maybe an average signal level over some period of time, I think it could do pretty well. The idea is to avoid HUGE battery drains over a moderate amount of time.

For example, if i'm at work in my office building, i get 0-1 bars of signal strength for 8 hours. It would be great if it detected after, say...10 minutes that my signal strength was in the crapper, and turned off the APN (or at least, account syncing) so I won't leave work 8 hours later with 5% battery life. But, if I wake my phone up, it will automatically turn the APN on so I can use data as I see fit.

But let's say I go out for lunch. The phone would either detect that I'm changing position/location via cell towers, or it would just regularly poll signal level and when it found that my signal level had increased by some delta amount over say...5 minutes, it would turn the APN back on.

I find that most of my frustration with this phone is with battery drain, and most of the drain comes from sitting in low signal areas for extended periods of time. If this could be accomplished (with configurable thresholds and stuff about time to average the signal over, etc) I think it would be an excellent addition to the customization-ability of android!
good points. you're probably right. i also sit at work all day at my desk, and i only get 1 bar of 3g signal. stupid building blocks reception.
My boring Github
My N1 Battery Project

Phone: Galaxy Nexus
ROM: AOKP 29 4.0.4
Recovery: CWM Touch
 
Breece
Old
#9  
Senior Member
Thanks Meter 7
Posts: 135
Join Date: Mar 2010
Posted this in the Google Dev Group from Latedroid... Dont think he will work on it in the near future though, as a new JD version will come to the market very soon
 
exceleth
Old
#10  
exceleth's Avatar
Senior Member
Thanks Meter 9
Posts: 239
Join Date: Jun 2010
Location: Istanbul
Very nice idea actually. After some beta versions, could be really really useful.
--== Galaxy NeXuS ==--

Android is one thing, Nexus is definitely other.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

What Happened at Google I/O 2013 – XDA Developer TV

Unless you just emerged from a deep, dark, dank cavern under the Earth, you know … more

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more