Skip to content

Instantly share code, notes, and snippets.

@geosharma
Last active February 11, 2023 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geosharma/3c7df9477b61f5cf19778e939f04e9fc to your computer and use it in GitHub Desktop.
Save geosharma/3c7df9477b61f5cf19778e939f04e9fc to your computer and use it in GitHub Desktop.
Pairing and connecting bluetooth headset in T450s and Arch Linux

Using Bluetooth Headset in T450s and Arch Linux

This is not a getting started guide, just notes to myself. Due to my limited knowledge there could be mistakes and better ways to do things. I have configured bluetooth to the best of my knowledge after reading the manpages and forums. Please refer to archlinux bluetooth wiki page for installation and configuration.

References:

Check if your computer has bluetooth

Use dmesg to check if you have bluetooth.

sudo dmesg | grep -i blue

I had to use sudo, you may or maynot need sudo. The output was as follows:

[   13.056484] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
[   15.050044] Bluetooth: Core ver 2.22
[   15.050081] NET: Registered PF_BLUETOOTH protocol family
[   15.050084] Bluetooth: HCI device and connection manager initialized
[   15.050090] Bluetooth: HCI socket layer initialized
[   15.050093] Bluetooth: L2CAP socket layer initialized
[   15.050099] Bluetooth: SCO socket layer initialized
[   15.649581] Bluetooth: hci0: Legacy ROM 2.5 revision 1.0 build 3 week 17 2014
[   15.654990] Bluetooth: hci0: Intel Bluetooth firmware file: intel/ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
[   15.973581] Bluetooth: hci0: Intel BT fw patch 0x32 completed & activated

Or alternatively use use lsusb.

lsusb | grep Blue

The output was follows:

Bus 002 Device 002: ID 8087:0a2a Intel Corp. Bluetooth wireless interface

From above I gathered my laptop has bluetooth capability.

Installation

Install the following:

sudo pacman -S bluez bluez-utils blueman

I also have pulseaudio and pulseaudio-bluetooth installed.

Enable bluetooth service

If service is not enabled then start and enable bluetooth.service.

sudo systemctl start bluetooth.service
sudo systemctl enable bluetooth.service

Paring Using bluetoothctl

Start bluetoothctl in interactive mode.

bluetoothctl

The output was:

Agent registered
[bluetooth]#

Then enter the following:

[bluetooth]# power on

Got the following message:

No default controller available

Check if rfkill is blocking bluetooth

rfkill list all

0: tpacpi_bluetooth_sw: Bluetooth
	Soft blocked: yes
	Hard blocked: no

To unblock:

rfkill unblock 0

Try again:

bluetoothctl
Agent registered
[bluetooth]# power on
[CHG] Controller 5D:36:55:8A:F3:F5 Class: 0x007c010c
Changing power on succeeded
[CHG] Controller 5D:36:55:8A:F3:F5 Powered: yes
[bluetooth]# 

Continue:

[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on

[NEW] Device D2:54:00:6E:3C:47 Charge 3
[CHG] Device D8:AB:0A:F5:61:A7 TxPower: 5
[DEL] Device 64:E7:D8:5A:6C:D7 64-E7-D8-5A-6C-D7
[NEW] Device EE:B9:34:AA:1D:48 S20
[NEW] Device 4F:9E:CB:9F:0B:9D 4F-9E-CB-9F-0B-9D
[DEL] Device FD:00:B9:6F:AF:88 Charge 4

My headset is EE:B9:34:AA:1D:48 S20:

pair EE:B9:34:AA:1D:48

After pairing:

connect EE:B9:34:AA:1D:48

And maybe:

trust EE:B9:34:AA:1D:48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment