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

Fairphone 2 (FP2)

Scheduled Pinned Locked Moved Fairphone 2
fp2fairphone 2
95 Posts 10 Posters 26.7k Views 8 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.
    • L Offline
      Luksus @Emphrath
      last edited by 25 Feb 2020, 19:02

      @Emphrath No, there were only two camera modules. I believe the biggest part of the FP2 owners have the newer one. So no need to send yours to someone.
      I often thought about looking into the flashlight problem, but always came to the conclusion , if even Rajanathan did not get this to work yet, who made a lot for the FP2, then I can't make it work either.... 😉

      Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

      1 Reply Last reply Reply Quote 0
      • F Offline
        flohack @Emphrath
        last edited by 25 Feb 2020, 19:33

        @Emphrath the problem is that there is maybe a new flash device node in the /dev/ tree (lets assume this for a moment). However, the Android camera stack is a total mess of its own, and any slight change can totally disrupt it. I remember when the new module came out we couldnt even use it for weeks (or was it months) due to the Android part just screwing up.
        Eventually someone will get it to work, but yes, our priorities are geared towards other things at the moment. But I am pretty sure @peat_psuwit could analyze it with the right module. So he might be a cndidate to send one to 😉

        My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

        1 Reply Last reply Reply Quote 1
        • P Offline
          peat_psuwit
          last edited by 28 Feb 2020, 17:57

          Sorry, get occupied with some other stuff. I'll look into the Aethercast problem. However, that's not the top priority.

          Although I've never tested the new camera module (I don't have one), I think that the stack should work with both versions. If you have the new modules and care to compile the Halium part from source, I encourage you to try it out.

          For the flashlight (via the battery indicator), there's a possible fix available as the latest lxc-android-config package in xenial_-_gst-droid. Again, if you care to compile the Halium part from source, you could try that on the old and the new camera module. However, there's a possibility to burn your flash. So, please make sure you have a spare module before trying it out. I've burnt mine during my fiddling, and I have no spare module, old or new. So, I'll not be able to test it myself.

          L E 2 Replies Last reply 28 Feb 2020, 21:43 Reply Quote 0
          • L Offline
            Luksus @peat_psuwit
            last edited by 28 Feb 2020, 21:43

            @peat_psuwit I thought I did compile it from source, when I downloaded the linked sources of your first post and followed the Halium porting guide, didn't I?

            The new camera module is working fine with the current build/stack.
            Only the flash does not work.

            Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

            1 Reply Last reply Reply Quote 0
            • E Offline
              Emphrath @peat_psuwit
              last edited by 1 Mar 2020, 12:19

              @peat_psuwit you mean I should try to run android-lxc-config from terminal ? Or is it a file I need to edit ?

              1 Reply Last reply Reply Quote 0
              • P Offline
                peat_psuwit
                last edited by 2 Mar 2020, 09:40

                @Luksus Does the flash work when taking a picture normally in the camera app?

                @Emphrath No. I meant that I've included a (possible) fix in the latest version of lxc-android-config debian package. If you've followed the gst-droid install instruction and upgraded your phone with apt (not system image!), the fix should be installed.

                The flash in the camera app does work on my old module (at least, until I burnt it 😞 ). If even that doesn't work on the new module, then I'll probably have to find the new camera modules somewhere. 🙂

                E 1 Reply Last reply 2 Mar 2020, 10:19 Reply Quote 0
                • E Offline
                  Emphrath @peat_psuwit
                  last edited by 2 Mar 2020, 10:19

                  @peat_psuwit it does not work, even in camera app. I would gladly send the new module to you, if you wish to give it a try 🙂

                  1 Reply Last reply Reply Quote 1
                  • L Offline
                    Luksus
                    last edited by 2 Mar 2020, 20:14

                    @peat_psuwit when I wrote this: https://forums.ubports.com/post/28093 - the flash was not working.

                    Currently I am on the legacy port again. Does the gst-droid patch work there also, or is it necessary to use Halium for it to work?

                    Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      Luksus
                      last edited by 3 Mar 2020, 21:06

                      @peat_psuwit , @Emphrath : wooow, the flash works with the camera app ... I am speechless :face_screaming_in_fear:
                      This is with Halium and latest gst-droid patch.

                      An FP2 with new camera module and working flash... I still can't believe it. 😄
                      Thank you so much @peat_psuwit .

                      Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                      E 1 Reply Last reply 4 Mar 2020, 07:12 Reply Quote 2
                      • E Offline
                        Emphrath @Luksus
                        last edited by 4 Mar 2020, 07:12

                        @Luksus awwe god !! I know what i'm gonna do back home

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          Fla
                          last edited by 24 Mar 2020, 17:28

                          @Luksus hi! I would like to try your new port, is there a build image somewhere? If no, how can I install it?

                          L 1 Reply Last reply 24 Mar 2020, 18:14 Reply Quote 0
                          • L Offline
                            Luksus @Fla
                            last edited by 24 Mar 2020, 18:14

                            @Fla First:
                            it is not my port, it is made by peat_psuwit. 😉

                            Second:
                            @Flohack, @peat_psuwit : is it ok with you if I would share my halium and system image builds in this thread? Or do you think there should be some "hurdle", so that only people "who know what they are doing" can tryout this port?

                            Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                            F 1 Reply Last reply 25 Mar 2020, 07:21 Reply Quote 0
                            • F Offline
                              flohack @Luksus
                              last edited by 25 Mar 2020, 07:21

                              @Luksus No, but you would make a separate thread, since that one belongs to Ratchanan´s port. In general also I would love not to waste resources on 2 ports for the same device. Instead try to cooperate, make PRs and try to get it polished. There is no use in 50 different started ports but none finished. Get stuff done.

                              My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                flohack
                                last edited by 25 Mar 2020, 07:22

                                Also, please do not invest too much time in the old port. We need to bring all core devices to Halium 7.1 to see if we can fix longstanding bugs with that. So any fix for 5.1 is wasted time.

                                My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                                1 Reply Last reply Reply Quote 0
                                • L Offline
                                  Luksus
                                  last edited by 25 Mar 2020, 16:30

                                  @Flohack : oh you got me wrong a little bit. I did not create my own port.
                                  I just wanted to host the images I built out of Ratchanan´s port, since no prebuilt images are served yet.
                                  It is for the users, who are not able to download all sources or can't build it by themselves, but like to test the halium port.

                                  Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                                  F F 2 Replies Last reply 25 Mar 2020, 20:28 Reply Quote 2
                                  • F Offline
                                    Fla @Luksus
                                    last edited by 25 Mar 2020, 20:28

                                    @Luksus said in Fairphone 2 (FP2):

                                    It is for the users, who are not able to download all sources or can't build it by themselves, but like to test the halium port.

                                    So, exactly my case. I saw your PM, trying it right now 😉

                                    (And I'm interested about the 7.1 port, not the 5.1 one ;))

                                    1 Reply Last reply Reply Quote 0
                                    • F Offline
                                      flohack @Luksus
                                      last edited by 26 Mar 2020, 07:26

                                      @Luksus Okay then sure, you can host them 😉

                                      My languages: 🇦🇹 🇩🇪 🇬🇧 🇺🇸

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        Fla
                                        last edited by Fla 28 Mar 2020, 16:36

                                        I just followed the instruction and flashed halium-boot.img, the last rootfs and system.img on my device. It rebooted and... at a first look, nothing changed. I still have all my apps and data, and everything looks exactly as before... Except in the "About" page in the settings, the UT version isn't displayed anymore, and I am not able to choose any update channel in the update section, even after a reboot. How can I check I'm really on the new port?

                                        Output of the install script:

                                        halium-install-master/halium-install -p ut /home/fla/dev/UbuntuTouch/halium-7.1_FP2/ubports-touch.rootfs-xenial-armhf.tar.gz /home/fla/dev/UbuntuTouch/halium-7.1_FP2/system.img 
                                        Debug: Chosen rootfs is /home/fla/dev/UbuntuTouch/halium-7.1_FP2/ubports-touch.rootfs-xenial-armhf.tar.gz
                                        Debug: Chosen android image is /home/fla/dev/UbuntuTouch/halium-7.1_FP2/system.img
                                        Debug: Chosen release is ut
                                        Debug: Compress images before pushing: false
                                        
                                        I: Writing rootfs into mountable image
                                        I: Writing android image into mountable image
                                        I: Running post installation tasks
                                        enabling Mir ... [done]
                                        enabling SSH ... [done]
                                        Please enter a new password for the user 'phablet':
                                        Entrez le nouveau mot de passe UNIX : 
                                        Retapez le nouveau mot de passe UNIX : 
                                        passwd: password updated successfully
                                        I: Shrinking images
                                        e2fsck 1.44.1 (24-Mar-2018)
                                        resize2fs 1.44.1 (24-Mar-2018)
                                        En train de redimensionner le système de fichiers sur .halium-install-imgs.08wjD/system.img à 49415 (4k) blocs.
                                        Début de la passe 2 (max = 16173)
                                        Relocalisation de blocs       XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                                        Début de la passe 3 (max = 16)
                                        Examen de la table d'i-noeuds XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
                                        Le système de fichiers sur .halium-install-imgs.08wjD/system.img a maintenant une taille de 49415 blocs (4k).
                                        
                                        I: Unmounting images
                                        I: Pushing rootfs and android image to /data via ADB
                                        I:    Pushing rootfs to /data via ADB
                                        .halium-install-imgs.08wjD/rootfs.img: 1 file pushed. 8.4 MB/s (3221225472 bytes in 366.063s)
                                        I:    Pushing android image to /data via ADB
                                        .halium-install-imgs.08wjD/system.img: 1 file pushed. 7.7 MB/s (202403840 bytes in 25.054s)
                                        
                                        real	6m31,125s
                                        user	0m0,170s
                                        sys	0m1,509s
                                        I: Cleaning up
                                        umount: .halium-install-rootfs.Qjl0H : non monté.
                                        
                                        uname -a
                                        Linux ubuntu-phablet 3.4.0-perf-g87729745 #4 SMP PREEMPT Sat Mar 21 00:02:10 CET 2020 armv7l armv7l armv7l GNU/Linux
                                        

                                        Also, the flashlight still isn't working but I guess I need to install gstreamer-droid right?

                                        L 1 Reply Last reply 28 Mar 2020, 17:40 Reply Quote 0
                                        • L Offline
                                          Luksus @Fla
                                          last edited by 28 Mar 2020, 17:40

                                          @Fla without looking deeper, that sounds like you flashed Halium successfully.
                                          Yes, you need to follow the instructions of the gstreamer droid setup.
                                          To clarify : flashlight does only work on taking a picture with camera app so far.
                                          But I think the way isn't so far to make it work as flashlight only.

                                          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                                          1 Reply Last reply Reply Quote 0
                                          • F Offline
                                            Fla
                                            last edited by 29 Mar 2020, 14:12

                                            Okay so I found a proof (if needed) that I'm indeed running with the new Halium 7.1 base: the famous bug of toggling data after flight mode is gone! And that is great.

                                            However, I found some regressions:

                                            • The auto-brightness option isn't available anymore. Is the proximity sensor available?
                                            • The phone can't be updated anymore (no release channel available). I guess that is expected as far as this build isn't available on the official servers?

                                            I will continue to test and wrote my findings here.

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