• 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 @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
                                      • C Offline
                                        chdslv
                                        last edited by chdslv 13 Nov 2018, 16:24

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

                                        D 1 Reply Last reply 13 Nov 2018, 17:37 Reply Quote 1
                                        • D Offline
                                          dobey @chdslv
                                          last edited by 13 Nov 2018, 17:37

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

                                          1 Reply Last reply Reply Quote 0
                                          • L Offline
                                            Lakotaubp
                                            last edited by 13 Nov 2018, 18:06

                                            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.

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