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

Sony Xperia X (suzu/F5121 & F5122)

Scheduled Pinned Locked Moved Sony Xperia X (F5121 & F5122)
324 Posts 63 Posters 235.4k Views 15 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.
    • C Offline
      c4pp4 @fredldotme
      last edited by c4pp4 6 Jun 2020, 20:29 6 Jun 2020, 07:56

      @fredldotme
      It should work on all devices using 'hardware/qcom/audio'. Now it takes default settings from pulseaudio (44.100 kHz) if it's not specified through /etc/pulse/daemon.conf. You can override it changing 'default-sample-rate' parameter. You can change the sampling rate through /etc/pulse/touch.pa as well using 'rate', 'sink_rate' or source_rate' parameter when loading module-droid-card-24.

      F 1 Reply Last reply 6 Jun 2020, 18:41 Reply Quote 0
      • F Offline
        fredldotme @c4pp4
        last edited by 6 Jun 2020, 18:41

        @c4pp4 awesome stuff! Should give us more flexibility should the default not provide a sufficient audio experience. Will you prepare a PR for it? I'm currently off my normal setup, only carrying a backup of Halium 7.1 on a microSD card.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kalle.kruse
          last edited by 7 Jun 2020, 19:39

          Thanks again for the great port, @fredldotme! I have been using the Xperia X as my daily driver for months already and I am pretty happy with it. I have been observing a number of issues, and before creating bug reports I would like to make sure they are not specific to this port and that there are no easy fixes:

          • Under "Updates" I see an "Ubuntu touch Version 320" update but when clicking on "Restart & install" nothing happens.
          • Sometimes when the screen has been locked and turned off for a long time the device takes ages (>10sec?) to wake up.
          • On openstreetmap.org I cannot scroll the map in Morph Browser. I am pretty sure this had been working before on the bq Aquarius E4.5.

          And a question: Is there any hope to get autofocus to work for the camera?

          1 Reply Last reply Reply Quote 0
          • D Offline
            dan.socea
            last edited by 11 Jun 2020, 07:39

            Hello!
            Are there any plans on moving to ubuntu 20.04, or this is not possible due to Xperia X's hardware?

            F 1 Reply Last reply 11 Jun 2020, 12:36 Reply Quote 0
            • F Offline
              flohack @dan.socea
              last edited by 11 Jun 2020, 12:36

              @dan-socea We will move to 20.04 and the Xperia X should not have an issue for that, as its just about kernel version to be high enough for systemd to run.

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

              D 1 Reply Last reply 11 Jun 2020, 12:48 Reply Quote 1
              • D Offline
                dan.socea @flohack
                last edited by 11 Jun 2020, 12:48

                @Flohack That is great to hear, that there is still some life left into this device.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  c4pp4
                  last edited by 15 Jun 2020, 00:52

                  I got a problem when playing music after the screen is turned off. When on BATTERY, the music is interrupted. After couple of seconds it's playing again and it's again interrupted. When the screen is turned on (still locked) the music is playing without problem. When on BATTERY and Wi-Fi is turned off, it's playing without problem. When on USB it's playing without problem regardless of Wi-Fi state. It's not only about music player. When I receive a message it vibrates but it plays sound after the screen is activated. Incoming call is without problem. Clean reinstalling via UBports installer didn't solve it. Can someone confirm it? Maybe it's caused by some of recent updates.

                  W 1 Reply Last reply 15 Jun 2020, 08:48 Reply Quote 0
                  • E Offline
                    eichenbast
                    last edited by 15 Jun 2020, 08:22

                    I can confirm "When on BATTERY, the music is interrupted. After couple of seconds it's playing again and it's again interrupted. When the screen is turned on (still locked) the music is playing without problem. When on BATTERY and Wi-Fi is turned off, it's playing without problem." and "When I receive a message it vibrates but it plays sound after the screen is activated. Incoming call is without problem."

                    I have not tested more. And: no problem with the Apps: "Flas" and "Clound Music" .

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wdehoog @c4pp4
                      last edited by 15 Jun 2020, 08:48

                      @c4pp4 @eichenbast how are you playing the music?

                      This is probably caused by the media-hub not keeping/aquiring a 'wakelock'.
                      Flas probably works since it plays a stream (which is 1 track) for which the lock is acquired. (I don't know what Cloud Music is.)

                      When charging or with screen on the phone does not go in sleep mode so the music plays fine. Some app or service preventing to go to sleep (for example by having a lock) also keeps the music playing fine.

                      C 1 Reply Last reply 15 Jun 2020, 12:48 Reply Quote 0
                      • C Offline
                        c4pp4 @wdehoog
                        last edited by 15 Jun 2020, 12:48

                        @wdehoog said in Sony Xperia X (suzu/F5121 & F5122):

                        how are you playing the music?

                        I'm using preinstalled UBports Music app.

                        W 1 Reply Last reply 15 Jun 2020, 12:57 Reply Quote 0
                        • W Offline
                          wdehoog @c4pp4
                          last edited by 15 Jun 2020, 12:57

                          @c4pp4 Then I would expect the first track to be played ok (media-hub has the lock) and the next ones being 'interrupted' (media-hub) does not acquire a new lock for the next tracks).

                          If I remember well you can see the locks being aquired/released in /var/log/repowerd.log.
                          Something like requestSysState and clearSysState. Maybe it is worth checking to see if this is the issue.

                          C 1 Reply Last reply 15 Jun 2020, 14:00 Reply Quote 0
                          • C Offline
                            c4pp4 @wdehoog
                            last edited by 15 Jun 2020, 14:00

                            @wdehoog said in Sony Xperia X (suzu/F5121 & F5122):

                            Then I would expect the first track to be played ok

                            No, it's interrupted immediately after the screen is turned off.

                            /var/log/repowerd.log

                            OK, I'll check it.

                            W 1 Reply Last reply 15 Jun 2020, 17:23 Reply Quote 0
                            • C Offline
                              c4pp4
                              last edited by 15 Jun 2020, 16:41

                              Please, where can I find changes applied via System Settings > Updates named "Ubuntu touch" with number e.g. 335, 336 etc.?

                              1 Reply Last reply Reply Quote 0
                              • W Offline
                                wdehoog @c4pp4
                                last edited by wdehoog 15 Jun 2020, 17:23

                                @c4pp4 Is the Music app still in your list of apps that will not be suspended (marked 'prevent app suspension' in UTT)?

                                or use: gsettings get com.canonical.qtmir lifecycle-exempt-appids

                                C 1 Reply Last reply 15 Jun 2020, 18:41 Reply Quote 0
                                • C Offline
                                  c4pp4 @wdehoog
                                  last edited by 15 Jun 2020, 18:41

                                  @wdehoog said in Sony Xperia X (suzu/F5121 & F5122):

                                  Is the Music app still in your list of apps that will not be suspended

                                  Yes it is. I don't think it's related to suspension. It looks like there is a very agressive powersave management or something like that. The Music app is active, but it plays about one second and then it's interrupted and after a while it plays and it's interrupted again. The same is SMS notification, it vibrates immediately but the sound notification is delayed. And now I find out it's related to the sound of incoming call, the same as SMS, it vibrates, but the melody is delayed and then played and interrupted as the Music player.

                                  W 1 Reply Last reply 15 Jun 2020, 18:47 Reply Quote 0
                                  • W Offline
                                    wdehoog @c4pp4
                                    last edited by wdehoog 15 Jun 2020, 18:47

                                    @c4pp4 still strange that some other apps can play without being interrupted. anything interesting in log files? /var/log/syslog or /var/log/repowerd.log or ~/.cache/upstart/media-hub.log

                                    C 2 Replies Last reply 15 Jun 2020, 18:59 Reply Quote 0
                                    • C Offline
                                      c4pp4 @wdehoog
                                      last edited by 15 Jun 2020, 18:59

                                      @wdehoog said in Sony Xperia X (suzu/F5121 & F5122):

                                      anything interesting in log files?

                                      I'll check it later if you don't mind.

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        c4pp4 @wdehoog
                                        last edited by 15 Jun 2020, 22:19

                                        @wdehoog
                                        Maybe the problem is caused by this commit https://github.com/ubports/repowerd/commit/cfb1cec49ab53a33458112b7aa1ae61afba8e207

                                        I've compared /var/log/repowerd.log when Wi-Fi ON (music is interrupted) and OFF (music plays) and there are additional lines when Wi-Fi is ON:

                                        2020-06-15T23:34:03.229697+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
                                        2020-06-15T23:34:03.229754+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: deactivate_session()
                                        2020-06-15T23:34:03.363673+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c3,/org/freedesktop/login1/session/c3)
                                        2020-06-15T23:34:03.392526+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
                                        2020-06-15T23:34:03.392601+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: deactivate_session()
                                        2020-06-15T23:34:03.419897+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c3,/org/freedesktop/login1/session/c3)
                                        2020-06-15T23:34:07.082551+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(,/)
                                        2020-06-15T23:34:07.082593+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: deactivate_session()
                                        2020-06-15T23:34:07.111357+02:00 ubuntu-phablet repowerd[1286]: LogindSessionTracker: change_seat_properties(/org/freedesktop/login1/seat/seat0), ActiveSession=(c3,/org/freedesktop/login1/session/c3)
                                        
                                        W 1 Reply Last reply 16 Jun 2020, 08:03 Reply Quote 0
                                        • W Offline
                                          wdehoog @c4pp4
                                          last edited by 16 Jun 2020, 08:03

                                          @c4pp4 If the problems are caused by the repowerd commit you refer to then it remains strange that some apps do not suffer from this issue. The relation to wifi is also a mystery to me. I am afraid I cannot be of much help here.

                                          E 1 Reply Last reply 16 Jun 2020, 08:49 Reply Quote 0
                                          • E Offline
                                            eichenbast @wdehoog
                                            last edited by 16 Jun 2020, 08:49

                                            @wdehoog I am not sure, that for example "Flas" is not related. Cause I noticed, that after a while it also stops. First I thought, it is because of the quality of My wifi connection .

                                            1 Reply Last reply Reply Quote 0
                                            205 out of 324
                                            • First post
                                              205/324
                                              Last post