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

Unable to turn on bluetooth on Mi A2

Scheduled Pinned Locked Moved Xiaomi Mi A2
xiaomi mi a2bluetooth
37 Posts 8 Posters 7.4k Views 2 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.
    • S Offline
      Sladek9
      last edited by Sladek9 10 Sept 2021, 18:11 9 Oct 2021, 18:01

      Hello all,
      yesterday I managed to successfully install the UT (OTA-19) on my Xiaomi Mi A2. Everything works well apart from bluetooth.
      After boot, the bluetooth is activated in the system tray, but when go to the bluetooth settings to search for devices, the bluetooth is off and the phone is undiscoverable. And it cannot be switched on at all.
      Sometimes it helps when I disable the bluetooth in the system tray right after reboot, go to settings and enable it there. But not always. I cannot find any particular pattern how to make it work reliably.
      Another thing is that even if I am lucky sometimes, I manage to activate the bluetooth and connect to any audio device (headphones, car multimedia), the sound is played through the bluettoth device in all cases except from the phone call. If I make a call, then its sound does not go through the bluettoth, but through speaker of the phone (dialing via bluetooth works well).
      Does anybody have similar experience or does anybody happen to know how to fix it and make bluetooth work reliably?
      Thank you.

      L C 2 Replies Last reply 9 Oct 2021, 18:45 Reply Quote 0
      • L Offline
        Lakotaubp @Sladek9
        last edited by 9 Oct 2021, 18:45

        @sladek9 Don't have this device myself but if you are not on the Devel channel try that first. Other than that Bluetooth can be a bit hit and miss on a few devices, I get a similar thing on the PinePhone. Might be a case of waiting for things to improve. Unlesss of course someone else can help you out. Fingers crossed.

        1 Reply Last reply Reply Quote 0
        • C Offline
          c4pp4 @Sladek9
          last edited by 10 Oct 2021, 08:44

          @sladek9 submit a result of:

          rfkill list bluetooth
          
          S 1 Reply Last reply 10 Oct 2021, 09:55 Reply Quote 0
          • S Offline
            Sladek9 @c4pp4
            last edited by 10 Oct 2021, 09:55

            @c4pp4 Bluetooth works at the moment. The output is:
            0: bt_power: Bluetooth
            Soft blocked: no
            Hard blocked: no
            2: hci0: Bluetooth
            Soft blocked: no
            Hard blocked: no
            I will try the same as soon as the problem reoccurs. It might show something.
            Thank for the advice.

            S 1 Reply Last reply 18 Oct 2021, 08:34 Reply Quote 0
            • S Offline
              Sladek9 @Sladek9
              last edited by 18 Oct 2021, 08:34

              @sladek9 So now it stopped working again. I cannot make it working and rfkill list bluetooth gives:

              0: bt_power: Bluetooth
              Soft blocked: no
              Hard blocked: no

              the section about hci0 is missing. Does anybody know what this means?
              Thank you.

              S 1 Reply Last reply 18 Oct 2021, 09:03 Reply Quote 0
              • S Offline
                Sladek9 @Sladek9
                last edited by 18 Oct 2021, 09:03

                @sladek9 I made another finding by using dmesg | grep -i blue
                It seems that there was some failure during bluetooth initiation. The output is below:

                phablet@ubuntu-phablet:~$ dmesg | grep -i blue
                [ 1.363871] Bluetooth: fffffffcf9533d68
                [ 1.363919] Bluetooth: fffffffcf9533d68
                [ 1.363933] Bluetooth: fffffffcf9533d48Bluetooth: fffffffcf9533d28
                [ 1.363975] Bluetooth: fffffffcf9533d48<6>[ 1.364322] cfg80211: World regulatory domain updated:
                [ 1.960541] Bluetooth: fffffffcf9533d78
                [ 2.186937] Bluetooth: fffffffcf9533d48
                [ 2.186943] Bluetooth: fffffffcf9533d48Bluetooth: fffffffcf9533d68
                [ 2.186964] Bluetooth: fffffffcf9533d28Bluetooth: fffffffcf9533d28
                [ 2.186975] Bluetooth: fffffffcf9533d08Bluetooth: fffffffcf9533d78
                [ 2.186987] Bluetooth: fffffffcf9533d58<6>[ 2.187022] l2tp_core: L2TP core driver, V2.0
                [ 4.670332] init: /vendor/etc/init/hw/init.qcom.rc: 576: ParseTriggers() failed: unexported property trigger found: ro.bluetooth.ftm_enabled
                [ 4.695718] init: Parsing file /vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc...
                [ 7.909464] init: starting service 'vendor.bluetooth-1-0-qti'...
                [ 7.934887] init: Command 'mkdir /persist/bluetooth 0770 bluetooth bluetooth' action=boot (/vendor/etc/init/hw/init.qcom.rc:176) took 0ms and failed: mkdir() failed: Read-only file system
                [ 21.241687] bluetooth_power: bt_power gpio config failed
                phablet@ubuntu-phablet:~$

                C 1 Reply Last reply 18 Oct 2021, 09:47 Reply Quote 0
                • C Offline
                  c4pp4 @Sladek9
                  last edited by 18 Oct 2021, 09:47

                  @sladek9
                  Just for sure. Did you install UT via ubports-installer with downloaded default vendor.img?

                  S 1 Reply Last reply 18 Oct 2021, 10:53 Reply Quote 0
                  • S Offline
                    Sladek9 @c4pp4
                    last edited by 18 Oct 2021, 10:53

                    @c4pp4 Yes. I downloaded the vednor.img from the link in the ubports installer and then uploaded it manually. The only thing is that I downloaded the vendor.img in the latest version of ubports installer, but the intsallation itself was done in the older version - 0.88 I guess.
                    It was necessary due to the fact that the latest uboports installer did allow selecting the downloadad vendor.img in the file picker, but nothing happened then (button next did not respond). The version 0.88 worked fine. I had to use DEB package, because in SNAP package, the installer always crashed when trying to select the vendor.img in file picker.
                    I do not know if this procedure might bring any problems, but I do not think so, because it installed the latest version of UT successfully without any complaints.

                    C 1 Reply Last reply 18 Oct 2021, 11:57 Reply Quote 0
                    • C Offline
                      c4pp4 @Sladek9
                      last edited by 18 Oct 2021, 11:57

                      @sladek9
                      try:

                      sudo stop bluebinder
                      rfkill list bluetooth
                      sudo start bluebinder
                      rfkill list bluetooth
                      

                      here is output from my device:
                      screenshot20211018_135307931.png

                      S 1 Reply Last reply 18 Oct 2021, 14:11 Reply Quote 0
                      • S Offline
                        Sladek9 @c4pp4
                        last edited by 18 Oct 2021, 14:11

                        @c4pp4 Still no hci0 unfortunately. Output is below:

                        phablet@ubuntu-phablet:~$ sudo stop bluebinder
                        [sudo] password for phablet:
                        bluebinder stop/waiting
                        phablet@ubuntu-phablet:~$ rfkill list bluetooth
                        0: bt_power: Bluetooth
                        Soft blocked: no
                        Hard blocked: no
                        phablet@ubuntu-phablet:~$ sudo start bluebinder
                        bluebinder start/running, process 10005
                        phablet@ubuntu-phablet:~$ rfkill list bluetooth
                        0: bt_power: Bluetooth
                        Soft blocked: no
                        Hard blocked: no
                        phablet@ubuntu-phablet:~$

                        It is strange, because it has worked until today in the morning.

                        C 1 Reply Last reply 18 Oct 2021, 15:29 Reply Quote 0
                        • C Offline
                          c4pp4 @Sladek9
                          last edited by 18 Oct 2021, 15:29

                          @sladek9 Have you restarted your device in the morning or what?
                          BTW: I have the same output of 'dmesg | grep -i blue'

                          S 1 Reply Last reply 19 Oct 2021, 07:32 Reply Quote 0
                          • S Offline
                            Sladek9 @c4pp4
                            last edited by 19 Oct 2021, 07:32

                            @c4pp4 If I restart, then the hci0 goes on. But when I go to the settings to search for any device to connect, the hci0 goes out. So it seems going to the settings is breaking it.

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              danilo748
                              last edited by 12 Nov 2021, 08:05

                              Up!

                              any news?
                              has anyone solved the problem?

                              N W 2 Replies Last reply 13 Nov 2021, 08:20 Reply Quote 1
                              • N Offline
                                Nreal @danilo748
                                last edited by 13 Nov 2021, 08:20

                                @danilo748
                                It doesnt work here either.
                                Mobile network is having issues too.
                                Cannot use my nextcloud..

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wilfridd @danilo748
                                  last edited by 13 Nov 2021, 12:32

                                  @danilo748 hi! Seems that BT and Wifi are linked together.
                                  I've recently noticed that BT if not working anymore if you switch off WIFI. Switching back on Wfi + A device restart is needed to have BT working again, or maybe at least a netword service restart with command line.

                                  N 1 Reply Last reply 13 Nov 2021, 14:02 Reply Quote 0
                                  • N Offline
                                    Nreal @wilfridd
                                    last edited by 13 Nov 2021, 14:02

                                    @nauvpp Ti doesnt seem to make any difference if wifi is on or of here.

                                    W 2 Replies Last reply 13 Nov 2021, 14:45 Reply Quote 0
                                    • W Offline
                                      wilfridd @Nreal
                                      last edited by 13 Nov 2021, 14:45

                                      @nreal here's what "rfkill list" shows on my device
                                      0: bt_power: Bluetooth
                                      Soft blocked: no
                                      Hard blocked: no
                                      1: phy0: Wireless LAN
                                      Soft blocked: no
                                      Hard blocked: no
                                      2: hci0: Bluetooth
                                      Soft blocked: no
                                      Hard blocked: no

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        danilo748
                                        last edited by 13 Nov 2021, 16:43

                                        I change the channel from stable to devel and now th BT works!

                                        N 1 Reply Last reply 13 Nov 2021, 21:55 Reply Quote 0
                                        • N Offline
                                          Nreal @danilo748
                                          last edited by 13 Nov 2021, 21:55

                                          @danilo748 I tried that too, didnt work here

                                          D 1 Reply Last reply 16 Nov 2021, 09:02 Reply Quote 0
                                          • W Offline
                                            wilfridd @Nreal
                                            last edited by 14 Nov 2021, 00:11

                                            @nreal Theses steps to reproduce :
                                            WIFI is on and BT is on = OK, can see devices. BT off then on again = OK, can see devices.
                                            Set WIFI off = BT goes OFF itself few seconds after WIFI.
                                            fd911c70-96d8-46a1-94fc-8bea9b69c800-image.png
                                            Set WIFI back on = BT stays off.
                                            Restart is needed to get BT back on too.
                                            If you can repoduce, I will file a bug.

                                            N 1 Reply Last reply 14 Nov 2021, 09:32 Reply Quote 0
                                            • First post
                                              Last post