Lgo.png

 Going Linux

   for computer users who just want to use Linux to get things done


How To Pair Bluetooth Devices

Updated: 07-May-2022

Ubuntu MATE, like many Linux distributions, provides the software you need to support Bluetooth connections to headphones, mice, keyboards, or other computing devices. These illustrations are specific to Ubuntu MATE 22.04, but they apply to many other desktop Linux distributions.

The most common and easiest method of connecting (pairing) a Bluetooth device with a Linux desktop is to use the Bluetooth management utilities provided with your Linux distribution. Ubuntu MATE provides the blueman-applet that appears as an icon in the top panel and the blueman-manager software package for managing and pairing Bluetooth devices.

How To Connect Devices Graphically

In order to use a Bluetooth device like a mouse or a headset, you first need to connect (pair) your computer and the device. Before you begin, make sure Bluetooth is enabled. Some computers allow you to disable Bluetooth from BIOS/UEFI. Check your BIOS settings to ensure that, if you have this setting, Bluetooth is enabled. Some laptops have a function key or other button that toggles Bluetooth and/or Wifi on and off. If your computer has this capability, make sure that Bluetooth is enabled in that way as well.

  1. Click the Bluetooth icon in the upper panel and select Devices. The Bluetooth device setup assistant will open to help you in configuring and connecting Bluetooth enabled devices.
    Bluetooth devices list
  2. Make the other Bluetooth device discoverable or visible (or put it in pairing mode) and place it within 30 feet (about 10 meters) of your computer.
  3. Click Search. Your computer will begin searching for devices. If the device you want to pair is not in the list, click the magnifying glass icon to begin the search again.
  4. Right-click on the device you want to pair and select Connect. The pairing should happen automatically.
    Connecting the Bluetooth device

  5. In the notification area, click Confirm to accept the pairing request.

Note: You need to finish your connection within about 20 seconds on most devices or the connection will not be successful. If that happens, return to the device list and start again.

How To Connect Devices Using The Command Line

If the graphical method doesn't work for your Bluetooth device, or if your device does not show up in the search results, there is another way to complete the pairing using the bluetoothctl command-line utility provided with Ubuntu MATE. In this example, we connect a Bluetooth 3.0 Keyboard.

  1. From the menu, open MATE Terminal.
  2. In the terminal, type
    bluetoothctl
    and press Enter.
  3. The terminal will display:
    agent registered
  4. Now type
    scan on
    and press Enter to begin the discovery process.
  5. Note the MAC address of the keyboard or device you want to connect. You will it need to activate the Bluetooth pairing on the keyboard.
  6. Let's assume the MAC address of the keyboard is ab:cd:ef:12:34:56
  7. Stop the Bluetooth pairing on the keyboard otherwise, the following option won't work. To do this, type
    scan off
    and press Enter.
  8. Type
    trust ab:cd:ef:12:34:56
    and press Enter.
  9. Type
    pair ab:cd:ef:12:34:56
    and press Enter.
  10. Bluetooth pairing begins. If a prompt for a pin appears, use the pin provided by your device maker and press the Enter key on your keyboard. The pin for many devices is four zeroes. (0000)
  11. Type exit
    to quit the utility.

Site Created with theMaker for Linux

Theme music for the Going Linux podcast is generously provided by Mark Blasco. https://www.podcastthemes.com
Creative Commons License Going Linux Podcast by Larry Bushey is licensed under a Creative Commons Attribution 4.0 International License.