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.5k 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 @Sladek9
        last edited by

        @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 Reply Quote 0
        • S Offline
          Sladek9 @Sladek9
          last edited by

          @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:~$

          c4pp4C 1 Reply Last reply Reply Quote 0
          • c4pp4C Offline
            c4pp4 @Sladek9
            last edited by

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

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Sladek9 @c4pp4
              last edited by

              @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.

              c4pp4C 1 Reply Last reply Reply Quote 0
              • c4pp4C Offline
                c4pp4 @Sladek9
                last edited by

                @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 Reply Quote 0
                • S Offline
                  Sladek9 @c4pp4
                  last edited by

                  @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.

                  c4pp4C 1 Reply Last reply Reply Quote 0
                  • c4pp4C Offline
                    c4pp4 @Sladek9
                    last edited by

                    @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 Reply Quote 0
                    • S Offline
                      Sladek9 @c4pp4
                      last edited by

                      @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

                        Up!

                        any news?
                        has anyone solved the problem?

                        N W 2 Replies Last reply Reply Quote 1
                        • N Offline
                          Nreal @danilo748
                          last edited by

                          @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

                            @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 Reply Quote 0
                            • N Offline
                              Nreal @wilfridd
                              last edited by

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

                              W 2 Replies Last reply Reply Quote 0
                              • W Offline
                                wilfridd @Nreal
                                last edited by

                                @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

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

                                  N 1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    Nreal @danilo748
                                    last edited by

                                    @danilo748 I tried that too, didnt work here

                                    D 1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      wilfridd @Nreal
                                      last edited by

                                      @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 Reply Quote 0
                                      • N Offline
                                        Nreal @wilfridd
                                        last edited by

                                        @nauvpp I have Xiaomi MI A2 and bluetooth does nothing, with or without wifi on / off.

                                        W 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          danilo748 @Nreal
                                          last edited by

                                          @nreal Infact! my BT is down again.
                                          After every update it becomes active again but, for some reason, after i use it for some time it come off again.

                                          1 Reply Last reply Reply Quote 0
                                          • W Offline
                                            wilfridd @Nreal
                                            last edited by

                                            @nreal Sorry I'm not sure to understand well. You mean BT is not working at all on your MiA2 ?

                                            N 1 Reply Last reply Reply Quote 0
                                            • D Offline
                                              danilo748
                                              last edited by

                                              When BT goes down (BT device list became empty and the icon disappeared), it seems like you can fix it with following steps.

                                              1. Activate WIFI
                                              2. Activate BT
                                              3. Restart the device

                                              Step 3 has to be quick before BT switches off again.
                                              I've tried multiple times and it's ok for me.

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