Chapter 9. Connecting Bluetooth devices
Chapter 9. Connecting Bluetooth devices You can wirelessly connect Bluetooth devices like keyboards, mouse, headsets, and other Bluetooth supported devices to your Red Hat Enterprise Linux system. Bluetooth settings in the GNOME desktop environment provide an interface to discover, pair, and manage your Bluetooth devices. You can connect Bluetooth devices using the graphical user interface and the bluetoothctl command-line utility. 9.1. Connecting Bluetooth devices with GUI Connect your Bluetooth devices from the Settings application in the GNOME desktop environment. Prerequisite The bluetooth.service unit is enabled. Procedure On your Red Hat Enterprise Linux, go to Settings > Bluetooth . Toggle the button at the top-right corner to switch ON the Bluetooth. Your system automatically starts scanning for nearby discoverable devices. Put the device you want to connect within range of your system into pairing mode. When your device is discovered, click on it and follow the on-screen instructions to pair. Optional : Verify the PIN between your Bluetooth device and your system. Click Confirm . Note The devices you previously paired might connect automatically when they are turned on and within range. Verification When your device is connected, click on it. You can verify connection status, device type, physical address, and other information of your device. 9.2. Connecting Bluetooth devices with bluetoothctl bluetoothctl is a command-line utility to scan for, pair, connect, and manage connections without relying on a graphical user interface. Prerequisite The bluetooth.service unit is enabled. Procedure Enter into the bluetoothctl interactive prompt: Check the status of Bluetooth on your system: If bluetoothctl is not powered on, enter: Put the device you want to connect within range of your system into pairing mode: Start scanning for Bluetooth devices: The list of discovered devices is displayed with their MAC addresses and names (if available). When you find your device, stop scanning: Note the MAC address of the device you want to connect. Pair the device: You might be prompted to confirm a pairing code on your system. Trust the device you paired: Optional : If you want this device to automatically connect in the future, you can set it as the default: Quit bluetoothctl when you are done: Verification Verify the status of device you connected:
bluetoothctl show Powered: no Discoverable: no DiscoverableTimeout: 0x000000b4 Pairable: no power on discoverable on pairable on scan on scan off pair XX:XX:XX:XX:XX:XX trust XX:XX:XX:XX:XX:XX default XX:XX:XX:XX:XX:XX quit devices Device AA:BB:CC:DD:EE:FF Headphones (Connected: yes) Device 11:22:33:44:55:66 Keyboard (Connected: no) info AA:BB:CC:DD:EE:FF <device information> Connected: yes