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

    [HowTo] Alternate way of saving battery when using 4G/LTE

    Scheduled Pinned Locked Moved Support
    89 Posts 16 Posters 28.0k Views 9 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.
      • A Offline
        AmauryDBZ @lduboeuf
        last edited by

        @lduboeuf sorry I didn't understand that the behavior of your hack was different from @lkroll's.

        1 Reply Last reply Reply Quote 0
        • A Offline
          AmauryDBZ @lkroll
          last edited by

          @lkroll Thanks a lot for your script, works like a charm !
          As I said to @lduboeuf , I was wondering if it could be possible to add some exceptions ?
          For instance, 4G could be maintained when the device is charging, or when hotspot activated, or even when an specific app is running (Futify for me).

          lduboeufL 1 Reply Last reply Reply Quote 1
          • lduboeufL Offline
            lduboeuf @AmauryDBZ
            last edited by

            @AmauryDBZ said in [HowTo] Alternate way of saving battery when using 4G/LTE:

            @lkroll Thanks a lot for your script, works like a charm !
            As I said to @lduboeuf , I was wondering if it could be possible to add some exceptions ?
            For instance, 4G could be maintained when the device is charging, or when hotspot activated, or even when an specific app is running (Futify for me).

            Of course it should be possible but takes time. But would be better to look at the root cause, why LTE need so much battery. There are room for improvement, e.g we still don't manage the FastDormancy.

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              AmauryDBZ @lduboeuf
              last edited by AmauryDBZ

              @lduboeuf I didn't knew about FastDormancy, make sense to priorise it.
              Thank you for your answers and patience

              1 Reply Last reply Reply Quote 0
              • lduboeufL Offline
                lduboeuf
                last edited by lduboeuf

                Hi all,
                [20.04 only]
                I've made an app to allow to auto toggle LTE (4G) when cellular data is requested, and back to GSM (2G) when no data.

                If anyone interested:
                https://gitlab.com/lduboeuf/battery-saver/-/artifacts

                source code:
                https://gitlab.com/lduboeuf/battery-saver

                the app can be closed after clicking "start" and if you see "Running...", it will create a background service

                Edit: don't know if it is related but connectivity tends to have issue on upgrading to 4G. Or maybe only an indicator issue.

                KenedaK 1 Reply Last reply Reply Quote 4
                • KenedaK Offline
                  Keneda @lduboeuf
                  last edited by

                  @lduboeuf

                  Would you release it on openstore ?
                  Is this for Xenial or Focal, or both ?

                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                  2023-2024 : Nexus 5 ☠️⚰️✝️
                  2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                  🇲🇫🇬🇧

                  lduboeufL 1 Reply Last reply Reply Quote 0
                  • lduboeufL Offline
                    lduboeuf @Keneda
                    last edited by

                    @Keneda said in [HowTo] Alternate way of saving battery when using 4G/LTE:

                    @lduboeuf

                    Would you release it on openstore ?

                    Maybe in the future, the ideal would be to have it integrated, but much much work involved + the fact that upcoming volTE will probably conflict with.

                    Is this for Xenial or Focal, or both ?

                    Focal only, only 24h a day 🙂

                    1 Reply Last reply Reply Quote 0
                    • E Eric H referenced this topic on
                    • D Offline
                      domubpkm
                      last edited by

                      Hello @lduboeuf . When i saw https://open-store.io/app/batterysaver.lduboeuf , i thought first it was a GUI of this topic. Or could your app evolve towards this?

                      lduboeufL 1 Reply Last reply Reply Quote 0
                      • lduboeufL Offline
                        lduboeuf @domubpkm
                        last edited by

                        @domubpkm said in [HowTo] Alternate way of saving battery when using 4G/LTE:

                        Hello @lduboeuf . When i saw https://open-store.io/app/batterysaver.lduboeuf , i thought first it was a GUI of this topic. Or could your app evolve towards this?

                        A bit different yes than always switching 2g/4g according tp screen state. But if i have 100 notif a day, it means 100 times the screen will turn on, i doubt it would be efficient...
                        But could be improved for sure

                        D 1 Reply Last reply Reply Quote 1
                        • D Offline
                          domubpkm @lduboeuf
                          last edited by

                          @lduboeuf Thanks for your new project. Well personally, in normal use, I generally completely turn off cellular data and activate it when necessary. I don't know how difficult it can be to develop, but I imagine an option that automatically turns on cellular data in case of one or more open apps or web-apps using it, and automatically turns off cellular data when apps or web-apps that used cellular data are all closed...

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post