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

    Call for testing: power indicator (esp. if it works for you now!)

    Scheduled Pinned Locked Moved OS
    21 Posts 7 Posters 3.5k Views 2 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.
      • ? Offline
        A Former User @Mario.CH
        last edited by

        So I also installed the Uopower thing today on my Xiaomi Redmi Note 9. Very interesting in the terminal, the battery is detected. I have posted a picture in the Xiaomi group. Will test this solution once longer. So far it runs well but is that normal that it takes a while until the battery turns green? About up to 40 seconds after plugging in.

        1 Reply Last reply Reply Quote 0
        • KenedaK Offline
          Keneda @Mario.CH
          last edited by

          @mario-ch THX !

          Device: /org/freedesktop/UPower/devices/line_power_ac
            native-path:          ac
            power supply:         yes
            updated:              dim. 19 déc. 2021 22:50:02 CET (38973 seconds ago)
            has history:          no
            has statistics:       no
            line-power
              warning-level:       none
              online:              no
              icon-name:          'ac-adapter-symbolic'
          
          Device: /org/freedesktop/UPower/devices/battery_battery
            native-path:          battery
            vendor:               SONY
            power supply:         yes
            updated:              lun. 20 déc. 2021 09:39:07 CET (28 seconds ago)
            has history:          yes
            has statistics:       yes
            battery
              present:             yes
              rechargeable:        yes
              state:               discharging
              warning-level:       none
              energy:              0 Wh
              energy-empty:        0 Wh
              energy-full:         0 Wh
              energy-full-design:  0 Wh
              energy-rate:         0 W
              voltage:             3,858 V
              percentage:          76%
              temperature:         21 degrees C
              capacity:            100%
              technology:          lithium-ion
              icon-name:          'battery-full-symbolic'
          
          Device: /org/freedesktop/UPower/devices/line_power_usb
            native-path:          usb
            power supply:         yes
            updated:              ven. 17 déc. 2021 05:17:55 CET (274900 seconds ago)
            has history:          no
            has statistics:       no
            line-power
              warning-level:       none
              online:              no
              icon-name:          'ac-adapter-symbolic'
          
          Device: /org/freedesktop/UPower/devices/DisplayDevice
            power supply:         yes
            updated:              lun. 20 déc. 2021 09:14:44 CET (1491 seconds ago)
            has history:          no
            has statistics:       no
            battery
              present:             yes
              state:               discharging
              warning-level:       none
              energy:              0 Wh
              energy-full:         0 Wh
              energy-rate:         0 W
              percentage:          76%
              icon-name:          'battery-full-symbolic'
          
          Daemon:
            daemon-version:  0.99.4
            on-battery:      yes
            lid-is-closed:   no
            lid-is-present:  yes
            critical-action: PowerOff
          

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

          klhK 1 Reply Last reply Reply Quote 0
          • klhK Offline
            klh @Keneda
            last edited by klh

            @keneda Looking at this the patch shouldn't change anything since you only have one battery anyway - would be nice to know if it doesn't break anything though 😛

            Also, lid-is-present: yes is... interesting.

            KenedaK U 2 Replies Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @klh
              last edited by Keneda

              @klh said in Call for testing: power indicator (esp. if it works for you now!):

              Also, lid-is-present: yes is... interesting.

              Why ? I'm total noob so don't know what that line says.

              +Sorry i did not understand that was for device with more than one battery.

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

              klhK 1 Reply Last reply Reply Quote 0
              • U Offline
                UniSuperBox @klh
                last edited by

                @klh

                lid-is-present: yes is... interesting.

                Many phones have a hall effect sensor that's set as a lid in the kernel. This allows book-like cases to embed a small magnet to shut off the device screen when they are closed.

                1 Reply Last reply Reply Quote 1
                • klhK Offline
                  klh @Keneda
                  last edited by klh

                  @keneda Not with more than one physical battery, with more than one battery reported by upower - this causes issues with the indicator. Still would love to see if it breaks anything for you 🙂

                  @UniSuperBox Oh that's cool, good to know.

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nero355 @klh
                    last edited by

                    @klh said in Call for testing: power indicator (esp. if it works for you now!):

                    @nero355 Seeing as you only have one battery with a defined technology I'd say this will work for you (not 100% sure as the list may be changing once you unplug).

                    Just so you know : I did not forget about you but I have just been busy with too much stuff the last few weeks! 😉

                    I have switched to the right branch today and will do some testing during the next 2 weeks! 🙂

                    @klh said in Call for testing: power indicator (esp. if it works for you now!):

                    @keneda Looking at this the patch shouldn't change anything since you only have one battery anyway - would be nice to know if it doesn't break anything though 😛

                    Also, lid-is-present: yes is... interesting.

                    @keneda said in Call for testing: power indicator (esp. if it works for you now!):

                    @klh said in Call for testing: power indicator (esp. if it works for you now!):

                    Why ? I'm total noob so don't know what that line says.

                    @unisuperbox said in Call for testing: power indicator (esp. if it works for you now!):

                    Many phones have a hall effect sensor that's set as a lid in the kernel. This allows book-like cases to embed a small magnet to shut off the device screen when they are closed.

                    You can test it very easily if you hold a magnet near the phone in the right area : It will react as the lid of the case has been closed! 😄

                    I am guessing you will get something like this when you activate it : https://shopee.ph/redmi-note-9-s-smart-mirror-flip-case-for-xiaomi-redmi-note-9-pro-max-9s-redmy-note9s-phone-cases-redmi9-readmi-note9-s-stand-cover-casing-i.60314136.3636360348
                    (Scroll to the picture with the clock shown on the phone!)

                    😉

                    My phones :

                    • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                    • ZUK Z2 Pro - ZUI Android 8.x
                    • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                    P.S. : I am NOT a developer! ;)

                    ? 1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @nero355
                      last edited by

                      Hi guys this Upower application is a stroke of luck at least on Merlin 🙂 I've tested it for a while now and it works great, no more empty battery on full charge in the display. Many thanks to you that you have written the commands to install it in the forum. Here again to all happy holidays and best wishes for the new year.

                      1 Reply Last reply Reply Quote 2
                      • N Offline
                        nero355 @klh
                        last edited by

                        @klh said in Call for testing: power indicator (esp. if it works for you now!):

                        @nero355 Seeing as you only have one battery with a defined technology I'd say this will work for you (not 100% sure as the list may be changing once you unplug).

                        Sorry to say this but... no improvement on my BQ phone... 😕

                        The behaviour is pretty much the same as before!

                        Luckily the battery is still good so it's not a big deal but it would be cool if someone knows how to fix the batterystatus reading one day 🙂

                        My phones :

                        • BQ Aquaris E5 HD Ubuntu Phone Edition - Ubuntu Touch 16.04 LTS
                        • ZUK Z2 Pro - ZUI Android 8.x
                        • Xiaomi Mi 9T - Jolla SailFish 3.4.x Community Build

                        P.S. : I am NOT a developer! ;)

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @nero355
                          last edited by A Former User

                          The Upower Tool from the Test Thread works 100 Prozent oh the Xiaomi Redmi Note 9 Pro. Thank You Nice Tool. Update:
                          Is this indicator APP also available somewhere as an executable version? I've always had bad luck installing them in the terminal. Actually a nice APP but the unsightly effect the device becomes unstable.

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