Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • The Disadvantages of the use of Graphing Calculators Calculator
  • How to Find Draft Posts on Facebook Computer Tips
  • 6 Reasons AllTrails Pro Is Worth It for Avid Hikers – Opera News Software Reviews
  • How to Find Out Who Owns a Website or Domain Cool Websites
  • Best ti multiview calculator 2020

    Best ti multiview calculator 2020. 1 - Texas Instruments TI-30XS MultiView Scientific Calculator (Renewed) Top Reviews .... . 2 - Texas Inst

  • How I Removed Malware From my WordPress Site How-To
  • How To Scan Documents On MacOS Using Only Your iOS Device Tutorials
  • How do I change my preferences on facebook ad? Computer Tips

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Posted on October 18, 2020 By blog_786 No Comments on How to fix “Bluetooth device doesn’t auto-connect” in Linux

How to fix “Bluetooth device doesn’t auto-connect” in Linux.

If you’ve been using Linux for a while, you would know that Bluetooth and Linux don’t go hand in hand. Whatever the reason, it’s always difficult to connect Bluetooth devices to your Linux system. Recently, after upgrading to Ubuntu 20.04, I noticed that Bluetooth devices don’t just automatically connect to my system. I have been digging into this a lot and here are the ways to fix “Bluetooth device does not connect automatically in Ubuntu”.

Fix “Bluetooth device does not connect automatically” in Ubuntu

There is no universal solution to this problem, and your problem may be different from mine. For example, my Bluetooth headphones automatically connect to my Ubuntu system as soon as I turn it on. But the next second it disconnects again and I have to reconnect it manually every time.

So, whatever the bluetooth device is, here is a step by step solution, leave a comment and let me know which one works for you.

Step 1. Enable automatic

First of all, you need to make sure that you have a working Bluetooth module and that it is turned on. Once this is done, we need to check if AutoEnable is enabled. Auto power-on ensures that the Bluetooth module is enabled after every restart. Also, if you plug in a USB device or Bluetooth module, AutoEnable ensures that it can start without rebooting.

To make sure AutoEnable is enabled we need to dig into the bluetooth config file. To do this, use the following command. sudo nano /etc/bluetooth/main.conf

How to fix “Bluetooth device doesn’t auto-connect” in Linux

In the bluetooth config file, go to the very bottom. If you see the line “AutoEnable = true”, everything is fine. If you don’t, AutoEnable is disabled. Hence, we will need to add the following line to the end of the file. AutoEnable = true

This step is not as critical for a Bluetooth audio device, but may fix the issue with automatic connection of a Bluetooth mouse, webcam, or keyboard.

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Read: How to Fix AirPods Not Working in Ubuntu

Step 2. Trust the device

If the above method does not solve the problem, the reason may be that the Bluetooth device is not trusted by Ubuntu. This causes authentication to fail when the device tries to connect automatically. To make sure your Bluetooth device is trusted, we need to add it to the trusted list.

To do this, we first need the MAC address of the Bluetooth device. To get a MAC address, you need to connect a Bluetooth device to your system, or at least make it discoverable. Then go to the top panel and click on the battery icon. In the expanded drop-down list, click the Bluetooth icon and then Bluetooth Options.

How to fix “Bluetooth device doesn’t auto-connect” in Linux

In Bluetooth settings, find the name of your Bluetooth device and click it. In the pop-up menu, you will get the MAC address of the device.

How to fix “Bluetooth device doesn’t auto-connect” in Linux

After obtaining the MAC address of the device, press Alt + Ctrl + T to open a terminal. In the terminal, type the following command and press Enter. bluetoothctl trust mac_address

How to fix “Bluetooth device doesn’t auto-connect” in Linux

To make sure the device is added to the trusted list, press the following command. sudo bluetoothctl information mac_address

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Now try restarting the Bluetooth service, the device should connect automatically.

Step 3. Re-pair the Bluetooth device

If something doesn’t work, try removing the Bluetooth device and reconnecting it. Sometimes Ubuntu may mistakenly indicate the type or class of the Bluetooth device. For example, it can adopt the headphone class as a Bluetooth keyboard. This issue can be resolved by re-pairing. You can do this through the GUI by removing the device, but if you are a keyboard ninja like me, the command is below. bluetoothctl remove mac_address

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Put the headphones into pairing mode and run the following command bluetoothctl connect mac_address

How to fix “Bluetooth device doesn’t auto-connect” in Linux

After that, restart Bluetooth and see if the device connects automatically.

Step 4. Reinstall Bluetooth

This is the last resort if things don’t work out. Reinstallation can fix Bluetooth and other driver problems. BlueZ is the official Bluetooth stack for Linux. To reinstall Bluetooth, we need to reinstall the BlueZ package. To do this, use the following command. sudo apt reinstall bluez

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Read: How to uninstall an application in Ubuntu

After reinstalling Bluez, enable and start the Bluetooth service with the following command. sudo systemctl enable bluetooth.service sudo systemctl start bluetooth.service

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Now it can help you fix Bluetooth device auto reconnection. In case this does not allow you to proceed to the next step.

Step 5. Script

If the steps above did not work for you, we are in the same position. While about to ditch this article entirely, I came across a Python script on GitHub called bluetooth-autoconnect. This is a Python script that automatically connects to all paired and trusted Bluetooth devices. However, the script is not available for installation directly into the Flatpak or Apt repository. Hence, we need to manually load and configure the service.

First of all, download the zip file from GitHub or use the following command to clone the repository to your home directory. git clone https://github.com/jrouleau/bluetooth-autoconnect.git

Now that we have the repository loaded, we need to move the service and scripts to their respective location before we start the service. In my case, I am using the systemd architecture, so the file destinations provided are applicable to distributions such as ArchLinux, Ubuntu, Debian, etc. sudo cp bluetooth-autoconnect / bluetooth-autoconnect.service / etc / systemd / system / sudo cp ‘/ home / pratik / bluetooth-autoconnect / bluetooth-autoconnect’ / usr / bin /

How to fix “Bluetooth device doesn’t auto-connect” in Linux

After we have successfully copied the service to the appropriate directories, let’s enable and start the service. To do this, use the following command. sudo systemctl enable bluetooth-autoconnect.service sudo systemctl start bluetooth-autoconnect.service

How to fix “Bluetooth device doesn’t auto-connect” in Linux

Now that we have the service running, it will try to reconnect to all paired and trusted Bluetooth devices. The only caveat when using this method is that you won’t be able to pair your Bluetooth device with other systems without disabling Bluetooth on your Linux computer. Because the device will always try to connect to your bluetooth device.

Visit GitHub with automatic bluetooth connection

Closing words

In this article, I have looked through dozens of forums and articles on the Internet. I’ve tried using udev scripts for PulseAudio and Bluez Manager, but neither of them was able to auto-connect. Therefore, I have excluded them from this article. In my journey with Linux systems, besides the lack of good professional applications, Bluetooth was the second biggest problem. I could never come to the conclusion that the problem is in the manufacturer’s driver or whatever, Linux hasn’t figured it out yet.

Tell me about your experience in the comments and we can work out a solution together.

Also Read: 7 Best Equalizer Apps for Android for All Music Lovers

Share this:

  • Twitter
  • Facebook
How-To Tags:Closing words, Fix Bluetooth device does not connect automatically in Ubuntu, How to fix Bluetooth device doesnt auto-connect in Linux, Step Enable automatic, Step Re pair the Bluetooth device, Step Reinstall Bluetooth, Step Script, Step Trust the device

Post navigation

Previous Post: How to Share Screenshots in One Tap on iPhone
Next Post: How to Stop iPhone from Autocorrecting Curse Words?

Related Posts

  • How to Check if your Twitter Account is Shadow Banned? How-To
  • How to Check if Your Login Credentials Were Compromised How-To
  • How to Remove Parallels From Mac Along With Windows Installation File How-To
  • How to Generate an Alter Table Script in SQL How-To
  • How to Sync Your Mouse Between Two Computers How-To
  • Skype Microphone Not Working on Windows 10? 8 Ways to Fix It How-To

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • 3 Sites like YouTube to Earn Money With Your Videos
  • Buying Bitcoin in India? Top 4 Indian Bitcoin Exchange Compared
  • TemplateMonster WordPress Theme Review – Build a Site With Ease
  • 6 Best FTP Clients For Android
  • MailTag: Real-time Email Tracking, Made Easy
DMCA.com Protection Status

Recent Posts

  • How to Watch Winter Olympics 2018 from Anywhere
  • 5 Sites That Are Like Audible, But Free
  • How to Reduce PNG File Size of a Photo
  • Why does Instagram say this story is unavailable?
  • How to turn off Do Not Disturb mode on Android

Recent Comments

  1. 5 Sites That Are Like Audible, But Free on 14 Best Free Audiobooks on Audible – 2022
  2. How to Reduce PNG File Size of a Photo on How to Convert a Screenshot to a Jpeg on a Mac
  3. 3 Sites like YouTube to Earn Money With Your Videos on Here are the Top 10 highest paid YouTubers of 2013
  4. Buying Bitcoin in India? Top 4 Indian Bitcoin Exchange Compared on How to Buy Bitcoin in India – Step by Step Guide
  5. TemplateMonster WordPress Theme Review Build a Site With Ease on How to make a secure website with WordPress 2023
  • How To Update Mac OS X & Mac Apps From Terminal OS X
  • Five Differences Between Static IP and Dynamic IP Computer Tips
  • How to Use Windows 7 with Boot Camp Mac OS X
  • TripIt vs Google Trips Software Reviews
  • Best ti 30 xs multiview calculator 2020

    Best ti 30 xs multiview calculator 2020. 1 - TEXTI30XSMV - Texas Instruments TI-30XS MultiView Calculator Top Reviews G

  • How to Transfer Bookmarks To And From All Major Browsers How-To
  • How To Check Saved Password in Chrome Mobile How-To
  • Troubleshoot Printer Stuck in Offline Status in Windows Windows 10

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version