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

    Bluetooth stopped working

    Scheduled Pinned Locked Moved Xiaomi Mi A2
    29 Posts 10 Posters 4.6k Views 4 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.
      • E Offline
        embeddedmz
        last edited by

        Hi,

        Bluetooth used to work but now when I enable it it doesn't search for devices (usually I get many 'unknown' devices and some with numbers I don't know what are these strange devices, I noticed the same stuff with Ubuntu desktop OS).

        When I change the page, the button is set to OFF.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mkarpicki @embeddedmz
          last edited by

          @embeddedmz could it be that your device finds devices without name?
          I see some like that too but also named ones on same list..

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            embeddedmz @mkarpicki
            last edited by embeddedmz

            @mkarpicki There's some crazy theories that say it's the jabbed people that sends MAC addresses... Personally, it's the first time I witness something like this. I see also TVs, but it's the first time that I see a bunch of unknown devices and/or having a name with numbers.

            Anyway, the bluetooth is not working anymore on my Ubuntu touch : I shut down the device, restarted it etc... in the settings when I switch it on, it doesn't search for devices and when I close the settings page then go back to it, the switch is in OFF.

            Is there something I can do with a terminal to fix it ?

            KenedaK 1 Reply Last reply Reply Quote 1
            • KenedaK Offline
              Keneda @embeddedmz
              last edited by Keneda

              @embeddedmz said in Bluetooth stopped working:

              Is there something I can do with a terminal to fix it ?

              There are some command lines here you could try : https://forums.ubports.com/topic/5771/how-to-stop-and-restart-bluetooth-service/15?_=1641806080750

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
              🇲🇫🇬🇧

              E 1 Reply Last reply Reply Quote 1
              • E Offline
                embeddedmz @Keneda
                last edited by embeddedmz

                @keneda sudo service bluetooth restart

                it blocks and never returns !

                I restarted the phone and now everything is getting back to work.

                Thank you

                KenedaK 1 Reply Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @embeddedmz
                  last edited by Keneda

                  @embeddedmz
                  Great !

                  @embeddedmz said in Bluetooth stopped working:

                  sudo service bluetooth restart
                  it blocks and never returns !

                  Maybe next time (hope there will not be) BT hangs you could try the rfkill command for no reboot, read this post : https://forums.ubports.com/topic/5771/how-to-stop-and-restart-bluetooth-service/15?_=1641805952497

                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                  2023-2024 : Nexus 5 ☠️⚰️✝️
                  2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                  🇲🇫🇬🇧

                  E 2 Replies Last reply Reply Quote 0
                  • E Offline
                    embeddedmz @Keneda
                    last edited by embeddedmz

                    @keneda it stopped working again and rfkill commands don't solve the issue anymore 😞

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      embeddedmz @Keneda
                      last edited by

                      @keneda and when I try to restart the bluetooth service, it stays forever (bluetooth stop/waiting).

                      KenedaK MrT10001M 2 Replies Last reply Reply Quote 0
                      • KenedaK Offline
                        Keneda @embeddedmz
                        last edited by Keneda

                        @embeddedmz
                        I won't be able to help you further with command lines as i'm not an advanced Linux user.

                        I can tell you some basics when you end with no other solution, wich is trying to reinstall with ubports software, without wiping data if you need to keep it, or full wipe if you don't.

                        But before that, you could tell more about your issue.

                        When did it occured ? Did you update OS and then it stopped ? Did you install some apps and then it stopped, did you mod you system files, etc...

                        The more details, the more likely someone can provide helpfull advices.

                        2015-2023 : Meizu MX4 ☠️⚰️✝️
                        2023-2024 : Nexus 5 ☠️⚰️✝️
                        2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                        🇲🇫🇬🇧

                        E 1 Reply Last reply Reply Quote 0
                        • MrT10001M Offline
                          MrT10001 @embeddedmz
                          last edited by

                          @embeddedmz If you really need Bluetooth, you can't restart the service or it won't connect, try a reinstall of Ubuntu Touch using the installer. Otherwise I wouldn't bother - for me personally, I don't require Bluetooth. I had an issue on my Pixel 2 losing Wi-Fi after the OTA-21 update - a reinstall solved it, all working with my usual apps installed in 20 minutes. Sometimes it is quicker to reinstall than try to and fault find if you need that service just to get it working.

                          Xiaomi Redmi Note 7.... And more...
                          I have too many devices...

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            embeddedmz @Keneda
                            last edited by

                            @keneda said in Bluetooth stopped working:

                            When did it occured ? Did you update OS and then it stopped ? Did you install some apps and then it stopped, did you mod you system files, etc...

                            Now its back after a restart. I will never disable it (but I'm afraid that if I enable airplane mode, the issue will reappears and I will have to wait for luck to fix it).

                            Maybe there's a link with airplane mode. I dunno.

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              mkarpicki @embeddedmz
                              last edited by

                              @embeddedmz you are correct. I see same after reading your reply.
                              I am not able to say if this problem came with recent ota-21 update as I did not use BT before but niw I,see same problem you describe (including toggle goin back to disabled)

                              messayistoM KenedaK 2 Replies Last reply Reply Quote 1
                              • messayistoM Offline
                                messayisto @mkarpicki
                                last edited by

                                @mkarpicki same problem on my device. I'm n rc channel.

                                1 Reply Last reply Reply Quote 0
                                • KenedaK Offline
                                  Keneda @mkarpicki
                                  last edited by Keneda

                                  @mkarpicki @messayisto are you both on MiA2 too ?
                                  Maybe an issue to feedback to porter ?

                                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                                  2023-2024 : Nexus 5 ☠️⚰️✝️
                                  2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                  🇲🇫🇬🇧

                                  messayistoM 1 Reply Last reply Reply Quote 0
                                  • messayistoM Offline
                                    messayisto @Keneda
                                    last edited by

                                    @keneda how to do this? vis github or the devices site?

                                    KenedaK 1 Reply Last reply Reply Quote 0
                                    • KenedaK Offline
                                      Keneda @messayisto
                                      last edited by Keneda

                                      @messayisto
                                      On the device page https://devices.ubuntu-touch.io/device/jasmine-sprout/ is said to contact @shouko .

                                      You can first try this.

                                      2015-2023 : Meizu MX4 ☠️⚰️✝️
                                      2023-2024 : Nexus 5 ☠️⚰️✝️
                                      2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                                      🇲🇫🇬🇧

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

                                        You can also try this to get your bluetooth working : enable WiFi, shut down Ubuntu and then start it.

                                        messayistoM 1 Reply Last reply Reply Quote 0
                                        • messayistoM Offline
                                          messayisto @Keneda
                                          last edited by

                                          @keneda thanks, I will try this.

                                          1 Reply Last reply Reply Quote 0
                                          • messayistoM Offline
                                            messayisto @embeddedmz
                                            last edited by

                                            @embeddedmz Thank You for the hint. Indeed bluetooth is only working with wifi turned on. I will report this too.

                                            messayistoM 1 Reply Last reply Reply Quote 0
                                            • messayistoM Offline
                                              messayisto @messayisto
                                              last edited by

                                              @messayisto Opened an issue here:

                                              https://github.com/ubports/ubuntu-touch/issues/1914

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