Nell17 / openeve

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

wireless uses too much power to transmit #149

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using?
1. gapps-gb-xxxx
2. system-gb-20110514a-snapshot
3. boot-gb-234-110509-rndis-236mb

Do you have logcat or dmesg ?
no

What version of the *Official LG* Firmware were before using Custom
firmware ?
 V10G

iwconfig reports transmit power of 32dB. Tested with 16dB (by doing iwconfig 
wlan0 txpower 16db) and it works just as good. Might be the source of the 
wireless power drain, assuming the driver accepted the change.

Original issue reported on code.google.com by mauricio...@gmail.com on 20 Jun 2011 at 9:21

GoogleCodeExporter commented 8 years ago
ouch! 32dB?? My eeePC is running on 16dB...

Original comment by migaxmoi...@gmail.com on 20 Jun 2011 at 9:54

GoogleCodeExporter commented 8 years ago
I don't believe iwconfig wlan0 txpower 16db changes anything. Try iwconfig 
wlan0 txpower 1db and you will see it's still the same...

Original comment by The.Bo...@gmail.com on 4 Jul 2011 at 10:32

GoogleCodeExporter commented 8 years ago

Original comment by wkp...@gmail.com on 4 Sep 2011 at 6:12

GoogleCodeExporter commented 8 years ago

Original comment by wkp...@gmail.com on 4 Sep 2011 at 10:15

GoogleCodeExporter commented 8 years ago

Original comment by wkp...@gmail.com on 4 Sep 2011 at 10:17

GoogleCodeExporter commented 8 years ago
with LG Official ROM, WiFi disconnected almost immediately when screen goes 
blank.

so I dig Wifi related thing and I found the following
frameworks/base/services/java/com/android/server/WifiService.java

  /**
     * See {@link Settings.Secure#WIFI_IDLE_MS}. This is the default value if a
     * Settings.Secure value is not present. This timeout value is chosen as
     * the approximate point at which the battery drain caused by Wi-Fi
     * being enabled but not active exceeds the battery drain caused by
     * re-establishing a connection to the mobile data network.
     */
    private static final long DEFAULT_IDLE_MILLIS = 15 * 60 * 1000; /* 15 minutes */
...

I think 15 min is too long and as it already commented it can cause battery 
drain.
so I checkout the OpenEtna source and this is the patch will be included next 
snapshot.

https://github.com/OpenEtna/android_frameworks_base/commit/6f8817eb3255e1b76c064
414a4f4d03422a3a763

Original comment by wkp...@gmail.com on 5 Sep 2011 at 6:38

GoogleCodeExporter commented 8 years ago

Original comment by wkp...@gmail.com on 6 Sep 2011 at 11:09

GoogleCodeExporter commented 8 years ago

Original comment by wkp...@gmail.com on 6 Sep 2011 at 11:10

GoogleCodeExporter commented 8 years ago
currently OpenEVE kernel have no "txpower" capability.

anyway, latest bcm4329 driver have this feature and will be included in the 
future.

Original comment by wkp...@gmail.com on 7 Sep 2011 at 7:41

GoogleCodeExporter commented 8 years ago
I can confirm that this issue seems to be fixed

Original comment by jsea...@gmail.com on 1 Nov 2011 at 9:10