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

    Ubuntu Touch on LG G6 (h870 model): call for testers

    Scheduled Pinned Locked Moved LG G6
    73 Posts 23 Posters 36.9k 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.
    • G Offline
      Guf
      last edited by Guf

      LG G6 (h870, as it is the EU version) porting to Ubuntu Touch started to be in shape for testers.
      Please, refer to @rymdllama @tanevanwifferen @Guf for any question.
      We created a chat in Telegram to share LG porting for UBports Ubuntu Touch: link
      This is a device released in 2017 with the following technical specs:

      • 5.7” Quad HD+ (1440x2880), 18:9 ratio, HDR10
      • Qualcomm(c) Snapdragon(tm) 821 (2.35Ghz Quad Core)
      • Touch with rear fingerprint sensor
      • 4GB RAM, 32GB eMMC, micro SD slot (up to 2TB)
      • 3,300mAh (embedded)
      • Rear camera: Dual 13MP (dual matrix 1/3.06”), Standard 71°, f/1.8 * Wide-angle 125°, f/2.4
      • Front camera: 5MP, wide-angle 100°, f/2.2
      • Usb-c output (Fast charge 3.0)

      Distributed with Android 7.0 Nougat, so suitable for Halium-7.1 (issue #115). Full description is available here.

      At this extent, the following feature are successfully ported on UT and work out-of-the-box:

      • Linux 3.18.31 (msm8996) on arm64-v8a
      • GUI: unity (8.20), mir (0.31.2)
      • GSM (inbound/outbound calls)
      • SMS: inbound and outbound fully working, and notifications appear in the menu,
      • Ofono: audio in inbound and outbound calls work works out-of-the-box
      • 4G data connection
      • wifi
      • Screen rotation, using Ubuntu Touch Platform API, too. Rotation block also works
      • Power (fingerprint and power button), Volume up and down buttons
      • Printscreen by pressing at the same time Volume+ and Volume- during 2-3 seconds
      • Apparmor patch applied and working
      • Notification (bubble and sound both work)
      • Battery animation while charging
      • Sound and headset output
      • Vibration
      • Stats on blocked screen
      • Sensors (test_sensors's output)
      • Anbox
      • Bluetooth (update 2020-11-14)

      Lxc contained is working fine.

      Still to improve or to test (2020-01-26):

      • LEDs: manually working, but no sign of them to be used with notifications,
      • GPS
      • Front and rear cameras (even though it was applied @peat_psuwit's gst-droid and installed nemo-qtmultimedia-plugins)
      • Video playback (still to test)

      Still to test (2020-01-26):

      • Fingerprint

      Updated images (2020-03-26):

      • system.img
      • halium-boot.img (see later new version to download with bluetooth enabled)

      Repo in github:

      • kernel
      • device

      To make Bluetooth work you need to:

      • if your device bootstrap from systempart, flash the following halium-boot, otherwise if you install from halium-install in datapart, flash this halium-boot
        both enable HCIUART and HCIUART_H4;
      • and manually (at the moment) execute the following commands:
      # chmod 0660 /sys/class/rfkill/rfkill0/state
      # chmod 0660 /sys/class/rfkill/rfkill0/type
      # chgrp dialout /sys/class/rfkill/rfkill0/state
      # chgrp dialout /sys/class/rfkill/rfkill0/type
      # rfkill unblock bluetooth
      # hciattach -p -t 30 /dev/ttyHS0 bcm43xx 115200 flow `cat /data/misc/bluetooth/bdaddr`
      

      and you will see that there is a nel hci0:

      root@ubuntu-phablet:~# hciconfig -a
      hci0:	Type: Primary  Bus: UART
      	BD Address: AA:AA:AA:AA:AA:AA  ACL MTU: 1021:8  SCO MTU: 64:1
      	UP RUNNING PSCAN ISCAN 
      	RX bytes:846 acl:0 sco:0 events:60 errors:0
      	TX bytes:4057 acl:0 sco:0 commands:60 errors:0
      	Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
      	Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
      	Link policy: RSWITCH SNIFF 
      	Link mode: MASTER 
      	Name: 'LG-h870'
      	Class: 0x5c0000
      	Service Classes: Rendering, Capturing, Object Transfer, Telephony
      	Device Class: Miscellaneous, 
      	HCI Version: 4.1 (0x7)  Revision: 0x0
      	LMP Version: 4.1 (0x7)  Subversion: 0x6119
      	Manufacturer: Broadcom Corporation (15)
      
      dieharddanD W M 3 Replies Last reply Reply Quote 7
      • dieharddanD Offline
        dieharddan @Guf
        last edited by

        @Guf This is an exciting port, the lg g6 is a great phone. Any chance this would work with an h871?

        G 1 Reply Last reply Reply Quote 2
        • G Offline
          Guf @dieharddan
          last edited by

          @dieharddan I have no idea what the difference between the two is! is it EU or US model?
          Anyway I can try to help you, if you want.
          You can adapt your port accordingly with my sources.
          @tanevanwifferen and @rymdllama are on it.

          G M 2 Replies Last reply Reply Quote 1
          • G Offline
            Guf @Guf
            last edited by

            @dieharddan Lg g6 model numbers variants in this (article)[https://www.teamandroid.com/2017/04/15/lg-g6-model-numbers-variants/]
            if you want to port it, and you have telegram, you can join us on a little group I just created

            1 Reply Last reply Reply Quote 0
            • dieharddanD Offline
              dieharddan
              last edited by

              yes it is a us version, I don't have one anymore but would repurchase to try it out at some point

              1 Reply Last reply Reply Quote 0
              • M Offline
                makeixo @Guf
                last edited by

                @Guf maybe that helps you.
                It seems like its nearly the same.

                I have hoped a long time for the Xperia X port. After it got abandoned I was quite disappointed, but this port seems quite exiting. 🤘

                1 Reply Last reply Reply Quote 1
                • W Offline
                  walidham @Guf
                  last edited by

                  @Guf said in Ubuntu Touch on LG G6 (h870 model): call for testers:

                  Annoying flooding of errors in dmesg with the following message: "IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions" . It unfortunately drains battery

                  Hi i have ported LG V20, same hardware and manifacture. for this error

                  Annoying flooding of errors in dmesg with the following message: "IPC_RTR: msm_ipc_router_bind: pm-service Do not have permissions" . It unfortunately drains battery
                  

                  Didi you added SECURITY_ANDROID_GID_CAPABILITIES in your kernel ?
                  see this
                  http://docs.halium.org/en/latest/porting/debug-build/wifi.html

                  G 1 Reply Last reply Reply Quote 2
                  • G Offline
                    Guf @walidham
                    last edited by

                    @makeixo @walidham Fixed! I applied the patch for bullhead which suggested the same: to disable CONFIG_ANDROID_PARANOID and to enable SECURITY_ANDROID_GID_CAPABILITIES, but I hadn't done it well. With the help of @tanevanwifferen (who suggested what was wrong), we fixed it ... so let's go for other issues, now

                    M V A 3 Replies Last reply Reply Quote 0
                    • flohackF Offline
                      flohack
                      last edited by

                      You might want to use the list at then end of this page: https://pad.ubports.com/p/PortChecklist to give a detailed and standardized overview of whats working and whats not 🙂

                      My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                      1 Reply Last reply Reply Quote 1
                      • M Offline
                        makeixo @Guf
                        last edited by makeixo

                        @Guf I haven't done anything. I am just lurking. I am more like a fan.

                        1 Reply Last reply Reply Quote 1
                        • V Offline
                          vadikas @Guf
                          last edited by

                          @Guf Can you explain what was wrong? I'm facing the same flood problem on the different device (but it is based on the same qcom platform). I applied patch and it doesn't help

                          A 1 Reply Last reply Reply Quote 0
                          • T Offline
                            tanevanwifferen
                            last edited by

                            @vadikas the patch is 1 in a set of 3, and all 3 must be done to make it work I think. @Guf had the two others already. The three changes are listed at the bottom of this page:

                            http://docs.halium.org/en/latest/porting/debug-build/wifi.html

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              fenskebawb
                              last edited by

                              Well that's great! I know I'm a little late to the party. But I am interested in giving this a shot. @Guf @tanevanwifferen, although, I have the h872 and I bet that this little difference makes it incompatable. Is this true?

                              G 1 Reply Last reply Reply Quote 0
                              • M Offline
                                MexHH @Guf
                                last edited by

                                @Guf Would love to test it on my h870, do you need to have an unlock bootloader?

                                G 1 Reply Last reply Reply Quote 0
                                • E Offline
                                  ElieHs
                                  last edited by

                                  Hello everyone ! I'm new to the UBPorts community, so i was about to get a new phone in the next days to run Ubuntu. But fortunately i've got a LG G6 at home ! But, the model version is H870s, so with no unlockable bootloader... I think it's a problem, right ?!
                                  Everyway, keep going on this port, LG G6 is an Amazing phone !

                                  G 1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    nefariousNIFFIN
                                    last edited by

                                    I got the American version with a cracked screen but I’d be willing to contribute to the cause. It’s currently with Verizon locked. If I get it unlocked will I be able to test it on that? It’s got a cracked screen so the risk to reward ratio is favorable. I’ve never done this before so I have no clue how to start.

                                    G 1 Reply Last reply Reply Quote 1
                                    • K Offline
                                      Kaesar
                                      last edited by

                                      I also have a US version (VS988), and am new here. I'm not sure if I can test this port on my phone, or if they're different enough it's going to have to be a different port.

                                      G 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        snappo
                                        last edited by

                                        I have a US model LG G6 somewhere that my wife upgrade from recently, would love to help test. Only other phone I have that can boot Ubuntu is a Nexus 4 😞 Long time Patreon supporter :call_me_hand_light_skin_tone:

                                        G 1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          franky32
                                          last edited by franky32

                                          Hi, i've got an h870 model.
                                          I've been trying to to put the image on my phone but i can't seem to pass the part with resize2fs from the halium-install script. Any help?
                                          The error i keep getting is:
                                          "Scanning inode table resize2fs: No space left on device while trying to resize system-20200326.img"

                                          G E 2 Replies Last reply Reply Quote 0
                                          • G Offline
                                            Guf @MexHH
                                            last edited by

                                            @MexHH Yep, you need to do it, with the following command:
                                            fastboot flash unlock unlock.bin where unlock.bin is you unlocking file that you will be provided by requesting to http://mobile.developer.lge.com/

                                            1 Reply Last reply Reply Quote 0

                                            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