If you have been using Linux for a while , you would screw Bluetooth and Linux do n’t go paw in hand . Whatever may be the intellect , it ’s always a hassle to connect Bluetooth twist to your Linux system . late , since   myupgrade to Ubuntu 20.04 , I have do to notice that Bluetooth devices do n’t just machine - connect back to my system . I dug on it a circumstances and here are manner to fix “ Bluetooth gimmick does n’t automobile - connect in Ubuntu ” .

Fix “Bluetooth device doesn’t auto-connect” in Ubuntu

There is no one - stop result to this problem and your proceeds might differ from mine . For illustration , my Bluetooth headphones machine - connect back to my Ubuntu organisation as before long as I power it on . But , the next moment , it disconnects again and I have to connect it every time manually .

So , whatever may be the Bluetooth machine , here ’s a footmark - by - step localisation and do comment and let me know which of them works for you .

Step 1. AutoEnable

first off , you need to ensure that you have a turn Bluetooth faculty and it ’s turned on . Once , we have that out of the way of life , we need to verify if AutoEnable is turn on . Auto enable ensures that the Bluetooth module is turned on after every restart . Additionally , if you plug in a Bluetooth USB gimmick or mental faculty , AutoEnable ensures that it can start without a reboot .

To insure AutoEnable is turned on , we necessitate to dig in the Bluetooth configuration single file . To do that , use the following bidding .

In the Bluetooth shape file , navigate to the bottom . In case you see a job stating“AutoEnable = true ” , it ’s all good . In casing you do n’t , AutoEnable is turned off . Hence , we ’ll have to add the follow logical argument at the last of the file cabinet .

sudo-nano-bluetooth

This step is not that important for a Bluetooth audio twist but can fix a Bluetooth mouse , webcam , or keyboard car - connect issue .

Read : How to Fix AirPods not Working on Ubuntu

Step 2. Trust Device

If the above method did n’t solve the problem , a cause might be that the Bluetooth gadget is n’t trusted by Ubuntu . This causes an authentication failure when the gimmick sample to automobile - connect . To make certain your Bluetooth equipment is trust , we necessitate to add it to the trusted leaning .

To do that , we would firstly need the Bluetooth machine MAC address . To get the MAC reference , you call for to connect your Bluetooth twist with your system or at least make it discoverable . Next , head over to the top bar and select the battery ikon . From the extended drop - down , fall into place on theBluetoothicon and thenBluetooth preferences .

Under Bluetooth configurations , look for your Bluetooth equipment name and snap on it . From the toss off - up bill of fare , you will get the gadget MAC Address .

auto-enable-bluetooth.conf

Once we have the twist MAC reference , hit the “ Alt+Ctrl+T ” to reach the terminus . On the terminal , typewrite the following command and hit Enter .

To verify the machine is added to the trusted tilt , hit the following command .

Now , attempt and re-start your Bluetooth service , the twist should auto - connect now .

bluetooth-settings-bluetooth

Step 3. Re-pair Bluetooth device

In case things do n’t work out out , you could test removing the Bluetooth twist and couple it back again . At time , Ubuntu can misidentify the Bluetooth equipment type or year . For example , it can take the phone gimmick grade as a Bluetooth keyboard . This issue can be make by a re - pairing . you could do that through the GUI by removing the gadget but if you are a keyboard ninja like me , below is the command .

Put your headphones into mate modal value and hunt down the following program line

Once done , restart the Bluetooth and see if the machine auto - connects .

bluetooth-device-mac-address

Step 4. Reinstall Bluetooth

This is the last resort if things do n’t work out . A reinstall might fix the Bluetooth and other driver subject . BlueZis the prescribed Linux Bluetooth stack . To reinstall Bluetooth , we demand to reinstall the BlueZ package . To do that , apply the next command .

Read : How to Uninstall An program program In Ubuntu

Once you have reinstalled Bluez , enable and start the Bluetooth avail by using the following program line .

bluetoothctl-trust-device

Now , this might help you to fix the automatic reconnect of the Bluetooth gimmick . In showcase , it does n’t lets move to the next step .

Step 5. Script

In case the above steps did n’t work you , we are in the same shoe . While I was about to give up on this clause altogether , I stumbled upon a Python script on GitHub calledbluetooth - autoconnect . It ’s a python script that automatically connect to all paired and trusted Bluetooth devices . However , the script is not available to establish right away on Flatpak or Apt monument . Hence , we require to manually download and configure the service .

First of all , download the zip filing cabinet from GitHub or use the following command to clone the secretary to your home directory .

Now that we have the repository downloaded we need to move the service and script to their respective emplacement before we set forth the service . In my compositor’s case , I am using systemd architecture , hence the file destinations mentioned would be applicable to distros like ArchLinux , Ubuntu , Debian , etc . In case you use non - systemd distros , kindly google your table service directories .

bluetoothctl-info-device

Once , we have successfully copied the service to the respective directories , have ’s enable and initiate the service . To do that , use the following command .

Now , that we have the service started , it ’ll endeavor to reconnect to every paired and swear Bluetooth gimmick . The only caveat with this method is that you wo n’t be able to twin your Bluetooth gadget with other systems without switch off your Linux machine ’s Bluetooth . Since the machine would always strain to connect with your Bluetooth machine .

Visitbluetooth - autoconnect GitHub

bluetoothctl-remove-device

Closing Words

This article took me through oodles of forum and articles on the web . I tried udev script to PulseAudio to Bluez Manager but none of them could do the autoconnect line of work . Hence , I omitted them from this clause . In my journey with Linux system , aside from the lack of good professional apps , Bluetooth has been the secondly - most problem .   I could never get at the conclusion that whether it ’s the manufacturing business driver issue or something Linux has n’t figured it out yet .

Also Read:7 Best Equalizer Apps for Android For Every Music Lovers

How to Use Custom Mouse and Keyboard Shortcuts on Chromebook

What’s the Difference Between Chromebook and Chromebook Plus

How to Stream Apps From Android Phone to Chromebook

8 Unique ChromeOS and Android Integrated Ecosystem Features

20 Best Keyboard Shortcuts for Chromebook for Home Users

13 Tips to Customize and Personalize Your Chromebook

How to Edit a Picture or Screenshot on Chromebook

How to Add, Delete and Edit Payment Methods on Chrome

14 Best Fixes for Chromebook Microphone Not Working

How to Change Chromebook System and Keyboard Language

bluetoothctl-connect-device

reinstall-bluez-package

enable-and-start-bluetooth-service

copy-custom-services-to-directories

start-bluetooth-autoconnect-service