Bloody Wifi Power consumption when screen is off
I was very annoyed by the battery consumption of my Wifi when in sleep mode. After 2 days normal use (few calls) the battery was drained. After inspecting with the Testing app > Battery History it showed almost 100% battery consumption for Wifi Running. WTF? My screen was off most of the time that 48 hours and in advanced wifi settings I told Wifi to goto sleep when the Screen is off. "Listen to the boss bloody phone"
HELP Google!
Google:
http://xdaforums.com/showthread.php?t=774507
Allthough it is for older version finding the settings db was easy. So of we go...
Copy it from the phone to the PC
Code:
C:\Temp\_samsung i5500\
-> adb pull /data/data/com.android.providers.settings/databases/settings.db
1088 KB/s (0 bytes in 34816.000s)
-->>>> EDIT settings.db with SQLite () see pictures (
http://www.sqlite.org free version)
- add a new record in secure called
wifi_idle_ms and set it to 10000
(default is 15 minutes I found somewhere = 15 x 60 x 1000)
- add a new record in system called
wifi_watchdog_on and set it to 1
(Dunno what the default is for wifi_watchdog_on, set it to 0 if you don't want it)
After editing copy it back to the phone
Code:
C:\Temp\_samsung i5500\
-> adb push settings.db /data/data/com.android.providers.settings/databases
2176 KB/s (0 bytes in 34816.000s)
After that immidiately reboot the phone
The settings are referenced in the system/framework/services.odex or framework.odex file.
Use google for more settings and their specific table (system or secure) in settings.db
Cheers
ps: just for fun: create in system table a record show_processes with value 1
this will show all running processes and cpu load/avarage in the right upper corner after reboot