• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

N5 battery usage in UT and in Android

Scheduled Pinned Locked Moved Support
23 Posts 8 Posters 5.4k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      chdslv
      last edited by chdslv 11 Aug 2018, 09:47 8 Nov 2018, 09:46

      It took a long time for me to find a decent N5 to try out UT. N5s are pretty old and practically not available in my country in any 2nd hand shops. The other officially supported phones also are not available. I've been searching for one for few months, and finally got this N5.

      Installing UT was a breeze. It was different and it was nice. But, the battery use is not that good. Fully charged in the evening phone lost about 40% overnight. Checked at 9 a.m.

      Now that I have this N5 and had got UT on it, I thought of reinstalling Android back to have check. Reinstalling stock Android was quite easy. Battery lost only 8% by 9 a.m. the next day. In both situations, WiFi was on, but the LTE was off. And, it was both stock UT and stock Android.

      L A 2 Replies Last reply 8 Nov 2018, 10:22 Reply Quote 1
      • L Offline
        Lakotaubp @chdslv
        last edited by 8 Nov 2018, 10:22

        @chdslv Try letting the phone fully discharge. Then fully charge till the battery indicator goes white and not just green. This might help recalibrate the battery. Also 16.04 has a deep sleep function now that should improve battery life. I was getting 20 - 24 hrs from my nexus before I changed. New batteries are also an option can find a link on the forum later ufa your interested or use the search function on the forum.

        C 1 Reply Last reply 8 Nov 2018, 10:48 Reply Quote 0
        • A Offline
          advocatux @chdslv
          last edited by 8 Nov 2018, 10:23

          @chdslv hi, I moved this topic to Support.

          You can try to do a full battery charge cycle (it would be better a couple of times at least) to see if UT re-calibrates the battery.

          Anyway, N5 batteries don't have the best performance, even when running Android.

          1 Reply Last reply Reply Quote 1
          • C Offline
            chdslv @Lakotaubp
            last edited by chdslv 11 Aug 2018, 10:49 8 Nov 2018, 10:48

            @lakotaubp I let the phone fully discharge thrice, recharging until it becomes white. I checked this battery loss for few days. Then I moved N5 to stock Android, just to check how the battery works in it. Its 11.25 now, and N5 with stock Android had lost only 9%, while with UT, I had to start recharging at this time; it rapidly went down. Wifi on, LTE off, no phone calls, no smses whatever, just idling. I am going to check this for next few days with Android.

            Btw, this should be in General, rather than Support. There is nothing much we can do to support old hardware. This N5 is made in May 2014, used by one person quite carefully. It took me quite while to find a decent one.

            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.

            A L D 3 Replies Last reply 8 Nov 2018, 11:01 Reply Quote 1
            • A Offline
              advocatux @chdslv
              last edited by 8 Nov 2018, 11:01

              @chdslv no, this topic belongs to Support because there's some issue with your N5 battery specifically but, for example and talking about my experience with that model, after buying a new battery for my N5, and running xenial, it lasts a lot longer than yours

              C 1 Reply Last reply 8 Nov 2018, 13:12 Reply Quote 0
              • L Offline
                Lakotaubp @chdslv
                last edited by 8 Nov 2018, 13:03

                @chdslv This is the link for the new battery option I mentioned https://forums.ubports.com/topic/1100/nexus-5-replacement-battery
                and @advocatux is right this should be in support, I missed that earlier. Other phones running Ubports do have quite good battery life. The nexus is a whole different ball game.

                1 Reply Last reply Reply Quote 2
                • C Offline
                  chdslv @advocatux
                  last edited by 8 Nov 2018, 13:12

                  @advocatux A new battery for N5 can be bought, but that won't change usage difference between Android and UT. It is 2 p.m now and the battery state is 84%. The difference is huge. By 11:30 a.m. with UT, it was ~15%.

                  In both cases, I finished charging the battery around 10:30 p.m.

                  If the battery stays in this way until tomorrow morning, there's no reason to buy a new one. It is just a 2300 mAh one.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jezek
                    last edited by 8 Nov 2018, 16:49

                    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

                    A 1 Reply Last reply 8 Nov 2018, 16:52 Reply Quote 0
                    • A Offline
                      advocatux @jezek
                      last edited by 8 Nov 2018, 16:52

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        chdslv
                        last edited by chdslv 11 Sept 2018, 09:50 9 Nov 2018, 08:42

                        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.

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          dobey @chdslv
                          last edited by 9 Nov 2018, 16:18

                          @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.

                          C 1 Reply Last reply 9 Nov 2018, 17:40 Reply Quote 1
                          • C Offline
                            chdslv @dobey
                            last edited by chdslv 11 Sept 2018, 20:11 9 Nov 2018, 17:40

                            @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.

                            D 1 Reply Last reply 9 Nov 2018, 18:17 Reply Quote -1
                            • D Offline
                              dobey @chdslv
                              last edited by 9 Nov 2018, 18:17

                              @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?)

                              C 1 Reply Last reply 9 Nov 2018, 19:41 Reply Quote 0
                              • C Offline
                                chdslv @dobey
                                last edited by chdslv 11 Sept 2018, 19:44 9 Nov 2018, 19:41

                                @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.

                                1 Reply Last reply Reply Quote 0
                                • H Offline
                                  htc_tattoo
                                  last edited by htc_tattoo 11 Dec 2018, 17:28 12 Nov 2018, 17:19

                                  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

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    chdslv
                                    last edited by 12 Nov 2018, 21:18

                                    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.

                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Mic_
                                      last edited by 12 Nov 2018, 22:01

                                      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.

                                      H 1 Reply Last reply 13 Nov 2018, 06:02 Reply Quote 0
                                      • D Offline
                                        dobey
                                        last edited by 12 Nov 2018, 22:03

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

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          joe
                                          last edited by 13 Nov 2018, 00:00

                                          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

                                          1 Reply Last reply Reply Quote 0
                                          • H Offline
                                            htc_tattoo @Mic_
                                            last edited by 13 Nov 2018, 06:02

                                            @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.

                                            1 Reply Last reply Reply Quote 1
                                            8 out of 23
                                            • First post
                                              8/23
                                              Last post