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

    Compass in Device Checklist

    Scheduled Pinned Locked Moved OS
    12 Posts 3 Posters 960 Views 1 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
        GT
        last edited by

        @dobey : Are you sure that it is not supported? I am asking, because the compass used to work on my BQ E4.5.

        dobeyD 1 Reply Last reply Reply Quote 0
        • jezekJ Offline
          jezek
          last edited by

          @dobey said in Xompass not working:

          Compass sensor is not implemented on UT currently. Xompass only works on specific devices, due to the way it tries to read hardware.

          Hmm, you say that on some devices the compass works. So it should be in the Device Checklist.

          Another argument for adding compass to list could be, that Sensors: Fingerprint reader (among some other items) is currently not supported too and is in the checklist. It also would be a good remainder, that it is something, that sometimes needs to be done. Or am I wrong?

          jEzEk

          dobeyD 1 Reply Last reply Reply Quote 0
          • dobeyD Offline
            dobey @jezek
            last edited by

            @jezek said in Compass in Device Checklist:

            Hmm, you say that on some devices the compass works

            No.

            Having proper sensor support doesn't work on any device with UT currently (well, except maybe on pinephone) at the moment.

            jezekJ 1 Reply Last reply Reply Quote 0
            • dobeyD Offline
              dobey @GT
              last edited by

              @GT said in Compass in Device Checklist:

              @dobey : Are you sure that it is not supported? I am asking, because the compass used to work on my BQ E4.5.

              Define "worked" in this case. Are you talking about Xompass app, or about QtSensors API? The latter has never had support for compass, in UT.

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

                @dobey : Yes, it was the compass app (predecessor of xompass) that worked on BQ 4.5.

                1 Reply Last reply Reply Quote 0
                • jezekJ Offline
                  jezek @dobey
                  last edited by

                  @dobey said in Compass in Device Checklist:

                  @jezek said in Compass in Device Checklist:

                  Hmm, you say that on some devices the compass works

                  No.

                  Having proper sensor support doesn't work on any device with UT currently (well, except maybe on pinephone) at the moment.

                  I don't understand your answer. Accelerometer or proximity sensors are sensors too and are working (in a way, that they can be used in ubports apps). What is the difference between compass sensor and them?

                  jEzEk

                  dobeyD 1 Reply Last reply Reply Quote 0
                  • dobeyD Offline
                    dobey @jezek
                    last edited by

                    @jezek qtubuntu-sensors does not handle compass. Try to make a QML app using QtSensors API for Compass, and you will find it does not work on UT.

                    Compass was never a requirement for core functionality of the system to work, so nobody ever implemented the abstraction for it. Only accelerometer and proximity were handled, because they are needed for the core functionality of the shell (rotation and screen management during call handling).

                    1 Reply Last reply Reply Quote 0
                    • jezekJ Offline
                      jezek
                      last edited by

                      @dobey said in Compass in Device Checklist:

                      Compass was never a requirement for core functionality of the system to work, so nobody ever implemented the abstraction for it.

                      Oh I see, thanks for clarifying. Another two questions.

                      Abstraction on what level are you talking about? The android LXC container does not handle the compass or the libhybris or the plaform API (reference image).

                      Is the fingerprint sensor the same case as the compass sensor? Or there was already some work done?

                      jEzEk

                      dobeyD 1 Reply Last reply Reply Quote 0
                      • dobeyD Offline
                        dobey @jezek
                        last edited by

                        @jezek said in Compass in Device Checklist:

                        Abstraction on what level are you talking about?

                        In qtubuntu-sensors.

                        @jezek said in Compass in Device Checklist:

                        Is the fingerprint sensor the same case as the compass sensor? Or there was already some work done?

                        No, it is not a sensor in the same sense of the word here. Biometrics is handled separately, and was not implemented in a generic way for the support that originally was developed for the Pro 5. However, there has been some work to get fingerprint working generically with libhybris, by some of the developers working on Halium 9 support.

                        jezekJ 1 Reply Last reply Reply Quote 1
                        • jezekJ Offline
                          jezek @dobey
                          last edited by

                          @dobey said in Compass in Device Checklist:

                          @jezek said in Compass in Device Checklist:
                          Abstraction on what level are you talking about?

                          In qtubuntu-sensors.

                          Thank you for reminding me. I forgot, there is already an issue opened on this.

                          jEzEk

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