olleb3 / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

poor battery life #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use the Telus HTC with Android 2.1 (Villain ROM 12). On 3g I get 5 hours 
standby, on wifi a bit more. I don't know what could be done to improve battery 
life but this is a top priority for me.

1. I played a bit with "partial wake lock" and found it's essential to receive 
calls on 3g but not needed on wifi except that on wifi it takes 2 full ring 
backs before csipsimple starts ringing. Oddly enough when "partial wake lock" 
is checked on wifi the phone rings instantaneously. Seems to me some fine 
tuning might be possible. E.g. partial wake lock may not be needed on wifi 
exept when a sip invite comes in. Maybe it's only need to re-register at 
periodic intervals instead of all the time. There might be some battery savings 
possible here.

2. I recently installed "overclock widget" and set it to lower the CPU 
frequency when screen is off. Hopefully this improves battery life a bit on 
standby. If it does, the functionality could either be incorporated into 
csipsimple or the utility could be licensed / used together.

3. I can also try to underclock the cpu to see if this changes the battery life 
significantly.

4. Biggest battery hog is the screen light so any code that switches off the 
screen light in csipsimple as soon as possible during a call would improve 
battery.

Original issue reported on code.google.com by dcitele...@gmail.com on 7 Sep 2010 at 10:27

GoogleCodeExporter commented 9 years ago
For point 4 you can uncheck the "Keep awake while in call" option in UI 
settings : it's a tweak for nexus one users for whom while in wifi if screen 
goes off incoming packets are delayed. 
I will also implement the proximity sensor sleep mode but not sure it will 
helps on your phone (don't know if you have a proximity sensor).

For other point, there is a discussion on issue 81. It's a background task for 
me. I've still to make things more stable before tweaking/refactoring 
everything to improve battery life. But that's on the roadmap and is really 
important.

Original comment by r3gis...@gmail.com on 8 Sep 2010 at 7:00