UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Feature testing - Pixel 2 XL

    Google Pixel 2/2 XL
    5
    11
    789
    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.
    • Flohack
      Flohack last edited by

      Hi guys,
      as I lost a bit my overview about the current state (and my device is physically too damaged to be used as daily) I would like to get your feedback on the current state of:

      • Battery lifetime > 24h from 100%
      • No reboot needed for 1 week
      • Bluetooth
      • Hotspot
      • Microphone

      Please report if those features are working or whats the deal, thanks πŸ˜‰

      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

      R T 2 Replies Last reply Reply Quote 0
      • R
        rocket2nfinity @Flohack last edited by

        @flohack All works for me, as you know, including hotspot. Only MMS doesn't work for some reason, even with the MMS patch

        Flohack 1 Reply Last reply Reply Quote 0
        • Flohack
          Flohack @rocket2nfinity last edited by

          @rocket2nfinity So you can also confirm Microphone works outside of calls, like with the audio recorder? Is it loud enough when you record?

          I dont know why I put Bluetooth there, I think that worked for some time now ^^

          My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

          R 1 Reply Last reply Reply Quote 0
          • R
            rocket2nfinity @Flohack last edited by

            @flohack It's kind of quiet when recording audio and video. But, it's there. Could stand to be a bit more sensitive.

            1 Reply Last reply Reply Quote 0
            • klh
              klh last edited by klh

              The last three are working. The battery is not so good for me (latest devel):
              battery.png
              This is without using the device and with a pretty new battery (~2 months old). The dip around 17:00 is when I searched for something in the store, although I have brightness set to 100% so that's probably why it dipped so much.

              Flohack Y 2 Replies Last reply Reply Quote 0
              • Flohack
                Flohack @klh last edited by

                @klh Is this on 2 or 2XL?

                My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                klh 1 Reply Last reply Reply Quote 0
                • Y
                  Yoni @klh last edited by

                  @klh
                  What did you use to get this graph?

                  1 Reply Last reply Reply Quote 0
                  • klh
                    klh @Flohack last edited by klh

                    @flohack 2 XL

                    @Yoni the UNIX way: qdbus + pcregrep + sort + gnuplot. The plot file:

                    set term svg size 1920 400
                    set output 'battery.svg'
                    
                    set timefmt '%s'
                    set format x '%m/%d/%Y %H:%M:%S'
                    set xdata time
                    
                    set palette model RGB maxcolors 7 defined ( 0 "#000000", 1 "#00ff00", 2 "#ff0000", 3 "#ffffff", 4 "#00ff00", 5 "#0000ff", 6 "#0000ff" )
                    set cbrange [0:6]
                    
                    set cbtics ("unknown" 0, "charging" 1, "discharging" 2, "empty" 3, "fully charged" 4, "pending charge" 5, "pending discharge" 6)
                    
                    plot '< cat -' u 1:2:3 w l lc palette z
                    

                    And the command (from PC with the phone connected with ADB active):

                    adb shell qdbus \
                      --system \
                      --literal \
                      org.freedesktop.UPower \
                      /org/freedesktop/UPower/devices/battery_battery \
                      org.freedesktop.UPower.Device.GetHistory charge 86400 10000 \
                        | pcregrep -o1 -o2 -o3 --om-separator=' ' "\(udu\) (\d*?), (\d*?), (\d*?)]" \
                        | sort -n \
                        | gnuplot -c battery.plot
                    

                    /org/freedesktop/UPower/devices/battery_battery is the path of your main battery
                    86400 is the timespan to grab in seconds
                    10000 should be the number of points, but I guess UPower treats it as a suggestion and always outputs much less for me

                    In theory this can also work on the device, although you probably have to install gnuplot

                    Y 1 Reply Last reply Reply Quote 0
                    • Y
                      Yoni @klh last edited by

                      @klh
                      I didn't know that UT supports UNIX, and it seems that the graph you posted is from that method, should I input all of those commands in the terminal to get that graph, and where will the svg file be saved?
                      And I'm assuming that I must create the file before the battery is completely drained, or will the data remain after the phone turns off and gets charged?
                      Should I change the size of the graph if the results are for a week instead of just 24 hours for the UNIX method?

                      klh 1 Reply Last reply Reply Quote 0
                      • klh
                        klh @Yoni last edited by klh

                        @yoni the UNIX thing was a joke, it refers to the way I joined a few standard commands together to get the output I needed (the ability to do so is a part of the Unix philosophy).

                        This is a single command, and UT doesn't have gnuplot by default, so you'd have to make your filesystem writeable. Better to use ADB from a PC.

                        The svg will be saved in your current directory (on the PC if using ADB).

                        I'm not sure if the history is persisted between reboots or what is the maximum time range you can query (0 will give you all of the data it has).

                        Making the chart wider will definitely help you show more data points, but I don't think it's necessary - you can experiment and see what works for you.

                        Also this is completely off topic, so if you have more questions please create a new one.

                        1 Reply Last reply Reply Quote 0
                        • T
                          the_loaf @Flohack last edited by

                          @flohack Hello! Thank you for your port! I really appreciate it. I finally got it loaded on my Pixel 2 XL yesterday with Waydroid. If I can get the following to work:

                          Calls/SMS
                          OKTA
                          Maps (any map/directions app)
                          12hr battery life for normal usage
                          camera/video
                          Dischord or equivalent
                          Google chat
                          Web browsing

                          This phone will be my daily driver. I know a lot of this works based on your testing and posts.

                          Nice to have:

                          Headphone jack
                          Bluetooth

                          I'm extremely excited to have this opportunity to use Ubuntu Touch!
                          Thank you for your efforts!

                          Pixel 2 XL - Ubuntu 16.04 (OTA-23)

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