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

    Bluetooth headset not detected as audio output

    Scheduled Pinned Locked Moved Support
    10 Posts 4 Posters 789 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.
      • henri2hH Offline
        henri2h
        last edited by henri2h

        Hi,
        Is there a way to forcibily set a bluetooth device as audio output as my bluetooth headset is not recognised as a audio output ?
        Thanks !

        1 Reply Last reply Reply Quote 0
        • henri2hH Offline
          henri2h
          last edited by henri2h

          Well, after a long time of trying to understand the bluetooth daemon, I managed to get the headset working on my phone.
          Device : Xperia X running the edge arm64 branch.
          I had this issue appearing in /var/log/syslog after I tried to connect to my headset :

          Apr 29 23:45:11 ubuntu-phablet bluetoothd[1387]: GATT service objects disabled
          

          Steps to resolve :

          Changing bluetooth controller mode

          change the bluetooth controller to bredr

          sudo mount -o rw,remount /
          

          Then open (as root) /etc/bluetooth/main.conf and change the line
          ControllerMode = bredr

          And finally remount the file system

          sudo mount -o ro,remount /
          

          Fixing sound glitches

          And I had sound glitches which can be avoided by changing the latency of the sound card as described here (search for "Connecting works, but there are sound glitches all the time")

          pactl set-port-latency-offset <bluez_card> headset-output 125000
          

          Where the identifier of the card can be found with

          pacmd list-sinks | egrep -o 'bluez_card[^>]*'
          

          This seems like an issue with bluetooth low energy not working on xperia x. @fredldotme should I open a new issue ?

          fredldotmeF 1 Reply Last reply Reply Quote 0
          • fredldotmeF Offline
            fredldotme @henri2h
            last edited by

            @henri2h It seems as if our PulseAudio is a little too old for Bluetooth LE. But filing a bug should be no problem.

            Regarding its functionality: Just asking, have you only tried music playback or is call audio also working for you?

            henri2hH 1 Reply Last reply Reply Quote 0
            • henri2hH Offline
              henri2h @fredldotme
              last edited by henri2h

              @fredldotme yes, I tried to update bluez with apt upgrade but the update was stuck at some point...
              For the audio call, the audio wasn't redirected to the headset.
              For the bug report, I'm going to open one. Do you know where I should open one, I have looked in gitlab but didn't find a proper place.

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

                For the bluetooth you need a trick,
                Please follow this link : https://forums.ubports.com/topic/3253/oneplus-3-3t/397

                fredldotmeF 1 Reply Last reply Reply Quote 1
                • fredldotmeF Offline
                  fredldotme @ernest
                  last edited by

                  @ernest Could you please show me the sources of what has changed for bluetooth audio in calls?

                  E 1 Reply Last reply Reply Quote -1
                  • E Offline
                    ernest @fredldotme
                    last edited by

                    @fredldotme

                    The source of the package is from focal : https://github.com/ubports/bluez-packaging/commits/xenial_-_even-newer-bluez

                    On the OP3, this version is helping to connect to some speaker which failed with the released version. I think to improve the call pulseaudio should be upgraded (you might know more).

                    Side note : I'm impressed SFOS bluetooth works smooth.

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

                      @ernest Pardon me for my intrusion. What does SFOS mean in regard to bluetooth. My net searching skills must have failed me, cuz I found nothing. Thanks.

                      jEzEk

                      E 1 Reply Last reply Reply Quote 0
                      • E Offline
                        ernest @jezek
                        last edited by

                        @jezek You'll not find difference except if you dig into their gitlab : https://git.sailfishos.org/mer-core

                        They seem to have upgrade pulseaudio and bluez in a more constant way. (Of course depend on time and resources 😉 ). Their package are not compatible with ubports from my understanding.

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

                          @ernest Ah, I see. SFOS means SailFishOS. Thanks.

                          jEzEk

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