GrapheneOS-Archive / legacy_bugtracker

See the new issue tracker for GrapheneOS at https://github.com/GrapheneOS/os_issue_tracker.
112 stars 11 forks source link

Cell Standby drains battery when in Airplane Mode (wifi enabled) #347

Closed ghost closed 8 years ago

ghost commented 8 years ago

I have a Nexus 6P that I flashed to the Copperhead OS, when I heard it became available. So far, I've been very pleased with it - great work! I've encountered one annoying issue where my battery will drain at least 50% per day and attribute it to Cell Standby in the Android battery monitor app. I only encounter this issue when I place my phone in Airplane mode. When the battery is draining, I have excellent wifi reception.

Cell Standby (random sample from today, 23% used so far) Time without a signal: 0% Mobile radio active: 4h 14m 52s Computed Power Use: 782 mAh

This issue reminds me of the similar Android 5.02 issue: https://code.google.com/p/android/issues/detail?id=170697

GarrettGotu commented 8 years ago

As per my other bugtracker submission yesterday, I'm getting very similar issues. I thought it was related to LibreSignal, using websockets, but it wasn't. Will be happy to provide logcat dump.

I only get this issue when wifi is enabled (Connected or not, still causes this issue)

I've reflashed 3 times now, happens after the first reboot regardless of what apps you have installed (I got it with none or some additional)

thestinger commented 8 years ago

Probably not related to CopperheadOS features but rather is an issue in AOSP. I have a few ideas about things that are different from stock though, so might get fixed in some upcoming changes. Same potential cause as #344.

thestinger commented 8 years ago

AOSP is missing a build feature which seems to lead to some power saving related code not being included on the 5X and 6P. Remains to be seen if it makes any difference though.

ghost commented 8 years ago

Thanks for taking a look at this, I know this must be a labor of love and I appreciate your efforts. I'll keep tweaking settings to see if I can find anything useful to the community.

Minor note - I think thestinger meant to reference this bug https://github.com/copperhead/bugtracker/issues/346, adding a note. Apologies if I'm mistaken.

thestinger commented 8 years ago

No I meant #344.

thestinger commented 8 years ago

As I've said elsewhere, I highly doubt that issues like this are caused by any CopperheadOS features. I don't want to run a tracker for all issues in AOSP. Google already has one. There's now a workaround for yet another AOSP bug that's not present in stock (https://github.com/CopperheadOS/platform_build/commit/600d75d206caf20576880842d90bf5e40db0eb8) but it's unlikely it's related to this. If you want to fix AOSP issues, you need to tell me the fix as #344 did rather than the symptom.

thestinger commented 8 years ago

It may also be a bug that's also present in stock, or not a bug at all. High power usage is completely normal if you have poor reception.

thestinger commented 8 years ago

Here's an example of power saving code that wasn't being used, but is now enabled with #344 fixed: https://android.googlesource.com/device/lge/bullhead/+/android-6.0.1_r54/power/power-8994.c. None is directly related to cell standby AFAICT, but it's possible that something changed. Next release will have these assorted hardware tweaks that were supposed to be there but AOSP didn't have the code to enable them.

Rudd-O commented 8 years ago

That is real fishy. The radio should NOT be on — that's the whole point of Airplane Mode.

thestinger commented 8 years ago

The power statistics aren't necessarily accurate. Either way, this isn't a CopperheadOS issue making it out-of-scope for this bug tracker.