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

    Resurrection of Indicator Upower

    Scheduled Pinned Locked Moved App Development
    upowerpowerindicator
    62 Posts 11 Posters 14.3k Views 3 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.
      • Eric HE Online
        Eric H
        last edited by Eric H

        About this error :
        ValueError: could not convert string to float: '3,65353'

        Maybe it is a localization error (french) : there is a comma instead of a point

        • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
        • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
        paulcarrotyP 1 Reply Last reply Reply Quote 0
        • paulcarrotyP Online
          paulcarroty @Eric H
          last edited by

          @Eric-H yeah, upower depends on current locale. Fixed by enforcing πŸ‡ΊπŸ‡Έ

          https://www.kremlingram.org/en

          Eric HE 1 Reply Last reply Reply Quote 0
          • Eric HE Online
            Eric H @paulcarroty
            last edited by

            @paulcarroty
            Reinstalled. It seems to work fine.
            Do you need specific tests ?

            • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
            • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
            paulcarrotyP 1 Reply Last reply Reply Quote 0
            • paulcarrotyP Online
              paulcarroty @Eric H
              last edited by

              @Eric-H test fast charging if you have the hardware for.

              https://www.kremlingram.org/en

              Eric HE 1 Reply Last reply Reply Quote 0
              • Eric HE Online
                Eric H @paulcarroty
                last edited by

                @paulcarroty
                Sorry, I couldn't do the test before today...

                So I used the Xiaomi charger supplied with the phone (which fully charges in less than half an hour) with the latest version (0.7) of uPower, but it seems that fast charging is not detected and there's nothing related in the logs.

                • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                paulcarrotyP 1 Reply Last reply Reply Quote 0
                • paulcarrotyP Online
                  paulcarroty @Eric H
                  last edited by

                  Eric-H Attach the power.txt file when the battery is being charged and has less than 50% capacity.

                  https://www.kremlingram.org/en

                  Eric HE 2 Replies Last reply Reply Quote 0
                  • Eric HE Online
                    Eric H @paulcarroty
                    last edited by

                    @paulcarroty
                    I tried to generate the power.txt file but there is an error on stderr :

                    cat: '/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm6150@0:qcom,qpnp-smb5/power_supply/main/health': Invalid argument
                    

                    The health files exists and is world readable :

                    phablet@ubuntu-phablet:~/tmp$ ls -al /sys/devices/platform/soc/c440000.qcom\,spmi/spmi-0/spmi0-00/c440000.qcom\,spmi\:qcom\,pm6150@0\:qcom\,qpnp-smb5/power_supply/main/health 
                    -r--r--r-- 1 system system 4096 mai    6 06:21 /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm6150@0:qcom,qpnp-smb5/power_supply/main/health
                    

                    The error persists even if I try to

                    • add double quotes,
                    • add simple quotes
                    • replace cat with tail
                    • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                    • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                    1 Reply Last reply Reply Quote 0
                    • Eric HE Online
                      Eric H @paulcarroty
                      last edited by

                      @paulcarroty
                      For some unknown reason, today the message on stderr did not appear.

                      So here is the power.txt file for surya attached.
                      or see at https://dpaste.org/hCcZO

                      I can see POWER_SUPPLY_CHARGE_TYPE=Fast in udev battery info, so it seems to be a fast charge.
                      What should Indicator Upower display ?

                      • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                      • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                      paulcarrotyP 1 Reply Last reply Reply Quote 0
                      • paulcarrotyP Online
                        paulcarroty @Eric H
                        last edited by

                        @Eric-H said in Resurrection of Indicator Upower:

                        I can see POWER_SUPPLY_CHARGE_TYPE=Fast in udev battery info, so it seems to be a fast charge.

                        No, I got Fast with low-end 7W charger too. My guess it's POWER_SUPPLY_FASTCHARGE_MODE=1. My device has POWER_SUPPLY_HI_POWER.

                        How much power can your charger deliver? POWER_SUPPLY_POWER_NOW=39764516 looks realistic for 45W.

                        I also tried to find the Fast Charging voltage (9..12V) on BMS and failed, so you can try it too. Probably not being monitored by software. And all of this is very device-specific.

                        https://www.kremlingram.org/en

                        1 Reply Last reply Reply Quote 0
                        • paulcarrotyP Online
                          paulcarroty
                          last edited by

                          The Indicator Upower now supports battery charging limit on MTK and other devices - don't forget to reinstall indicator if this feature didn't work in older releases.

                          https://www.kremlingram.org/en

                          1 Reply Last reply Reply Quote 1

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better πŸ’—

                          Register Login
                          • First post
                            Last post