TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC

Android App Always Active While in Background

Discussion in 'Model 3' started by buddhra, May 9, 2018.

  1. buddhra

    buddhra Member

    Joined:
    Dec 29, 2017
    Messages:
    138
    Location:
    San Luis Obispo
    I've seen a noticeable decline in my Pixel 2's battery life since getting the Model 3. I suspect it has to do with the app being active in the background pretty much all day (see first screenshot). If I turn off background activity with the slider, things go back to normal, but using the phone as a key becomes very unreliable. It's only showing up at 1% usage on that screen, but I think this is being reported incorrectly and is actually contributing to a higher than normal usage under System (second screenshot).

    Is anyone else seeing similar performance?

    [​IMG]

    [​IMG]
     
  2. Tezlanian

    Tezlanian Member

    Joined:
    Apr 24, 2018
    Messages:
    214
    Location:
    North America
    Can't see your images. If you're linking from a Google account or something you might need to allow permissions to public.

    And yes, the app will drain battery life. Especially if you are near your Model 3 and the bluetooth stays persistently connected.
     
  3. buddhra

    buddhra Member

    Joined:
    Dec 29, 2017
    Messages:
    138
    Location:
    San Luis Obispo
    Thanks for letting me know. Let's try it this way.

    Screenshot_20180509-180729.png Screenshot_20180509-181603.png
     
  4. buddhra

    buddhra Member

    Joined:
    Dec 29, 2017
    Messages:
    138
    Location:
    San Luis Obispo
    I'm actually noticing more battery drain while I'm at work where the car has no cell signal and I'm far away from it.
     
  5. Tezlanian

    Tezlanian Member

    Joined:
    Apr 24, 2018
    Messages:
    214
    Location:
    North America
    Interesting. I stopped using the app generally a few days after I got the vehicle because the phone key functionality was so spotty. I keep the app terminated most of the time.

    You've measured this empirically or anecdotally? I am actually a bit curious. They may have it set to a short wake cycle, shorter than the normal, in the event it couldn't update.
     
  6. buddhra

    buddhra Member

    Joined:
    Dec 29, 2017
    Messages:
    138
    Location:
    San Luis Obispo
    Eh, mostly anecdotally I guess, but I've been monitoring it closely for 5 weeks now to be confident in what I think I'm seeing.

    With background activity limited on the app, I have no issues getting through a full day with ~4 hrs of screen on time (actually about 2 hrs of use with 50% left at the end of the day). With background activity allowed, I'm getting to 50% battery around lunchtime and will have to charge to make it through the day.

    I've also tested by leaving the phone alone for 30 mins with background activity enabled and then turning it off for 30 mins and the trend on the battery life graph changes significantly.
     
  7. e-FTW

    e-FTW New electron smell

    Joined:
    Aug 23, 2015
    Messages:
    2,233
    Location:
    San Francisco, CA
    So, no BTLE?
     
  8. buddhra

    buddhra Member

    Joined:
    Dec 29, 2017
    Messages:
    138
    Location:
    San Luis Obispo
    • Like x 1
  9. Tezlanian

    Tezlanian Member

    Joined:
    Apr 24, 2018
    Messages:
    214
    Location:
    North America
    Also, their timeouts
    Oh, I don't doubt that. Just curious on the particular scenario you describe where the car has no cell phone signal and the app queries in vain. I'm never our of a cell service area for the vehicle to test this. It sounds like the app just behaves poorly in this scenario.
     
  10. e-FTW

    e-FTW New electron smell

    Joined:
    Aug 23, 2015
    Messages:
    2,233
    Location:
    San Francisco, CA
    Thanks, am on the other side of the fence phone-tech wise, and have not paid attention to phone key issues yet (waiting on AWD+P).
    I totally see how "standard" bluetooth (non-Low Energy variants), if active consistently will drain the battery.
     
  11. Tezlanian

    Tezlanian Member

    Joined:
    Apr 24, 2018
    Messages:
    214
    Location:
    North America
    Any variant will, just a difference of amount.
     
  12. e-FTW

    e-FTW New electron smell

    Joined:
    Aug 23, 2015
    Messages:
    2,233
    Location:
    San Francisco, CA
    That is true of many, many things.

    All I am saying is that BTLE was designed with those types of uses in mind. And it is really, really power efficient. I don't even know if Tesla uses it or not on devices that have the capability.
    Maybe it does not have the range for Tesla's use? I am not an engineer in things with antennas, so am waving my hands a little.
     
  13. Tezlanian

    Tezlanian Member

    Joined:
    Apr 24, 2018
    Messages:
    214
    Location:
    North America
    Tesla's use should be within about 1.5 meters (5-ish ft) to the vehicle.

    I don't think bluetooth energy usage is OP's issue as much as the app waking his cell radio and keeping it active for extended periods of time in scenarios where the car is out of contact.
     
  14. novox77

    novox77 1.21 Gigawatts

    Joined:
    Nov 25, 2017
    Messages:
    1,235
    Location:
    NH, MA
    Google Pixel here. Definitely seeing a significant drop in battery life due to connection with car. Before Model 3, my battery lasts all day easily. Now I need to charge it in the evenings. If I turn off BT for the day, the battery consumption goes back to before.

    Looking at the standard battery usage page, BT does not show up as a high percentage, but System is higher. I never liked how Android uses System as a catch-all. Masks a lot of battery drain issues.

    Some more interesting observations: I'm one of the people who has issues with phone as key. Fixing it generally involves toggling BT off and on again. But sometimes, I have to use the airplane mode toggle to fix. Different types of underlying errors, and airplane mode does a deeper reset of the radios than just toggling individual radios.
     
    • Informative x 3
  15. gregd

    gregd Active Member

    Joined:
    Dec 31, 2014
    Messages:
    2,032
    Location:
    CM98
    Is toggling the radios usually sufficient, or do you also need to restart or otherwise mess with the application itself? I ask because with my Google Pixel2 one can toggle the radio without unlocking the phone. Much less hassle, though still much more than is desirable.
     
  16. novox77

    novox77 1.21 Gigawatts

    Joined:
    Nov 25, 2017
    Messages:
    1,235
    Location:
    NH, MA
    I have never needed to kill/restart the app. BT toggle fixes things for me most of the time, but when that fails, a quick airplane mode toggle works. Exactly as you say, I don't open the app anymore. I just toggle radios by a single down swipe to expose the toggles.

    Before I discovered that airplane toggle was deeper than BT toggle, I would reboot the screen on the car, which also resolves it. It's interesting because it makes it ambiguous which device is responsible for the communication breakdown. And to me, it makes me hopeful that this can be resolved on either side, likely via better error checking and handling.

    I was even considering maybe a Tasker profile that periodically toggles Airplane mode as a hacky workaround. But I would want to check for an A2DP connection state, cause I wouldn't want it to kill radios if I'm streaming music. I couldn't think of another use case where I needed uninterrupted data.
     
    • Helpful x 1
  17. Tezlanian

    Tezlanian Member

    Joined:
    Apr 24, 2018
    Messages:
    214
    Location:
    North America
    Would wager this has more to do with the fact of leveraging bluetooth in general and there will not be much Tesla can do without severely compromising the battery life of people's phones. Bluetooth was never really meant for this passive purpose.

    Airplane mode is a deeper reset because many of these radios, which used to be separate chips, are now combined. When you toggle bluetooth on many modern devices it's all software effects. Previous side effects may remain in memory since it is a shared driver between radios. Bluetooth shouldn't be leveraged as a passive key like this because of all the extra code makers have around trying to conserve battery life at the driver, kernel and userspace levels.
     
  18. novox77

    novox77 1.21 Gigawatts

    Joined:
    Nov 25, 2017
    Messages:
    1,235
    Location:
    NH, MA
    In another thread, I mentioned that turning off battery optimization for the Tesla app has appeared to fix my phone-as-key woes. It's worked perfectly since I did that. And another bonus: my battery drain seems to be solved too. ironic that disabling battery optimization increased battery life. that would seem to indicate that previously, when the connection broke, the phone worked extra hard trying to reconnect or something.

    Given that it's only been a day, I'm going to observe for another day or so before declaring that that setting change can fix Android phone key issues for a lot of people.
     
  19. buddhra

    buddhra Member

    Joined:
    Dec 29, 2017
    Messages:
    138
    Location:
    San Luis Obispo
    Nice counter-intuitive idea. I'll give it a shot as well. So you have optimization off and background activity enabled?
     
  20. novox77

    novox77 1.21 Gigawatts

    Joined:
    Nov 25, 2017
    Messages:
    1,235
    Location:
    NH, MA
    yep. background activity was on by default.
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC