N5 battery usage in UT and in Android



  • I have the same experience on FP2 with OTA3 (15.04).
    If wifi is on, there is a huge battery drain (~36% in 12 hours).
    If wifi is off, the battery drain is much lower (~6% in 12 hours).

    I hope the upgrade to 16.04, that I plan in near time, will fix this issue.



  • @jezek my krillin running xenial (dev channel), with only wifi on, no SIM card, its battery lasts almost 4 days 🙂

    And yes, with vivid it was way worse.



  • It is 9.30 a.m and the 2nd day the N5 is on stock Android. The battery state is 71%. So, the battery is good. With UT in, the battery lost ~85% the next day idling.



  • @chdslv said in N5 battery usage in UT and in Android:

    If the battery works quite well in Android, but poorly in UT, we have a problem, not with the hardware. The stock Android is using 3.4 kernel from September 2016. I think UT is using 4.4 kernel.

    Yes, there are likely problems. UT is definitely not using 4.4 kernel. We are using the same kernel as the device originally came with, but with some very minor changes to support apparmor and such.

    There are I think some issues with Bluetooth, and there could be other bugs that are maybe cause the phone to not go into deep sleep under UT. To debug these issues though, one must get their hands dirty, and read through the logs and monitor process CPU usage and such. Just pointing at the battery statistic is not very helpful.



  • @dobey It is too old a phone to worry too much about it. The battery just drained, so I moved it back to stock Android to see how it works with it. It is the same battery and the same phone.

    (Two hours ago, I moved the phone to Pie 9 based on Lineage OS 16.0, also experimental. Swiping from bottom, all installed apps are shown, swipe from top notifications bar - editable, open apps can be seen moving from left to right and back at half size. And, it has only 12 apps, other than the system ones.)

    This old phone is going to be used for experimenting. Going back and forth from Android to UT is easy. Hope one day, a better phone would be ported to UT. Cannot use N5 for daily use with UT, would have to carry a powerbank. After all that flashing and all, the battery state is 39% now, at 6:30 p.m on the 2nd day with Android.



  • @chdslv said in N5 battery usage in UT and in Android:

    It is too old a phone to worry too much about it. The battery just drained, so I moved it back to stock Android to see how it works with it. It is the same battery and the same phone.

    That is an opinion, but it is not true. Nexus 5 is a great device, and works great with UT. If we can't fix issues on this device, why should we be able to fix the same issues on other devices? The age of the device has nothing to do with it. We need to support all devices equally. But it does require domain specific knowledge in many cases, and there is some lack of that, with only a few people actively working on the project.

    If you're not willing or capable of doing the deeper level debugging work, that's fine, just open an issue if one doesn't exist already, and let those who do have the skills work on the problem. There's no need to denigrate the project or specific devices, proclaiming them as something undeserving of needing to have their issues fixed. This doesn't help anyone, and only serves to divide the community. So please do not make such statements. (Besides, if there's no need to worry about it, why create a forum post on the issue?)



  • @dobey said in N5 battery usage in UT and in Android:

    @chdslv said in N5 battery usage in UT and in Android:

    That is an opinion, but it is not true. Nexus 5 is a great device, and works great with UT.

    If you're not willing or capable of doing the deeper level debugging work... . (Besides, if there's no need to worry about it, why create a forum post on the issue?)

    Maybe, Nexus is great device, and I wasn't talking about the device, but about the battery drain in UT. To find out, how the battery is working in Android, I had to move it to stock Android. I did that after few days checking how the battery works with UT. As I moved the N5 to UT as soon as I got it, I didn't know how my N5 worked with Android.

    I opened this thread in General, for I wanted get info on why UT is draining the battery that fast in idle state. I understand the phone is old, and I don't really know how it was used by the former owner. It could be a battery problem than a OS problem. So, the only way is to test it in its original OS, stock Android. I simply reported what I saw.

    I was also searching the internet for answers too. I studied how others had installed a custom rom to ageing phones, especially the N5. I found that it is possible to install the newest Android Pie 9 through Lineage OS. While copying files from the laptop, maybe the N5 got charged a few %, maybe 2-3%, for it took about a minute or two to transfer the files to the N5. The Custom ROM, gapps and Supersu was flashed. I did that around 4:30 p.m.
    At 6:30 p.m the battery state was 39% and now at 8:30 p.m, the battery state is still 39%. In the meantime, I checked few apps too, how they look etc.

    So, the battery is good, not excellent, but good. I am going to check how the battery work for next 3 days, using it normally. I won't post anything for next 3 days.

    Btw, I don't know how to code.



  • In my N5 RC the mobile network (4G) consumes a lot (just ideling). Turning off mobile network extends the battery time almost double.
    Using the phone with mobile network and webbrowser drains the battery very quickly, i don't survive the day.
    Is there a kind of sleep mode for the mobile network?
    See the attached picture, you can clearly see when i turned off mobile network.
    0_1542043622114_screenshot20181112_182047478.png



  • There must be some background services that prevent the phone from effectively sleeping, hence the battery drain, while "idling." It is an OS matter, rather than a hardware matter, that is OS not exactly working with the hardware.



  • I have the same problem like chdslv. I bought an old Nexus 5 and installed UT 16.04 RC on it and the phone is massively loosing battery power even if its on stand-by. I thought at first the battery is to weak and I changed it - but the problem is still existing. Thanks to chdslv posting his problem here.

    I am using also a BQ E5 with UT 15.04 and this phone maybe looses 2% of batery power after 24 hours in stand-by. So there is a problem with the new 16.04 version on the N5.

    And by-the-way: I really love this Nexus 5 - I need nothing else - only the battery is actually a very big problem for me.



  • Yes, there seems to be something keeping the N5 from entering deep sleep still. Perhaps multiple things.


  • Marketing

    The battery thing is real.
    Here are some tips for reducing battery drain in general

    1. Put the phone in airplane mode if you don't need to be reached etc.
    2. Use 3g instead of 4g unless you need the extra speed
    3. Keep brightness at the lowest possible and not automatic brightness (although this gets tricky if you go outside).
    4. This command helped in the past, but not sure if it does anything:

    sudo pkill -9 hciattach



  • @mic_ it always existed in the N5 RC images, 15.04 and 16.04. Some versions were worse, (half a day) others were better. The actual version is one of the best.



  • The battery drain problem should have to be looked into in this device, or a newer device to be found, with a known better battery life to port UT to. Android 9 Pie fork for this N5 is doing quite well -- normal usage, few calls, few smses, few looks in the web, the battery had lost only 26% since yesterday 11 p.m (full charge). Now it is 5.15 p.m. Bit more than 18 hours. (Thinking of buying a N6 or N6P to test too.)



  • @chdslv said in N5 battery usage in UT and in Android:

    The battery drain problem should have to be looked into in this device, or a newer device to be found, with a known better battery life to port UT to. Android 9 Pie fork for this N5 is doing quite well -- normal usage, few calls, few smses, few looks in the web, the battery had lost only 26% since yesterday 11 p.m (full charge). Now it is 5.15 p.m. Bit more than 18 hours. (Thinking of buying a N6 or N6P to test too.)

    Of course it needs to be worked on. It's a bug. Bugs need fixing. However, to fix such bugs requires developers with certain specific knowledge. It doesn't matter what device it is. There is no guarantee that newer devices will have better battery life than we have currently on the Nexus 5. It requires specific domain knowledge for such issues to be fixed, and a certain domain knowledge to get working ports in the first place. The "Android 9" bit is mostly irrelevant, because it's still using the same kernel as it came with under Android 4.4. The same kernel we're using in UT.

    The Nexus 5 with minimal usage should really have battery last almost 2 full days. There are obviously some issues that need fixing.

    So can you please refrain from this "either or" argumentation that we either must fix it or support some newer device. They are not mutually exclusive problems.



  • I think we have now done this subject more than enough and are now rapidly approaching the going round in circles point.
    We are well aware of the nexus 5 and its battery issues and I think now all points of view have been put.
    On a different note please remember to be polite and considerate when conducting discussions on the the forum.


Log in to reply