Conectar fone bluetooth na linha de comando do linux

Published: 2020-07-10, Updated: 2023-05-05

 

Abra a console do bluetoothctl

$ bluetoothctl

Listando os dispositivos

# scan on
[NEW] Device 22:22:22:22:AB:D6 YET-M1
[NEW] Device 38:18:4C:EA:0F:AA LE_WH-1000XM3
[NEW] Device 94:DB:56:F5:78:41 WH-1000XM4
[NEW] Device EB:6B:AD:24:D0:00 VHM-314

Conectando no dispositivo

# connect 38:18:4C:EA:0F:AA

Selecionando o profile do áudio

Listando os profiles possíveis

$ pactl list cards  | grep -B4 -A10 WH-1000XM3


	Name: bluez_card.38_18_4C_EA_0F_AA
	Driver: module-bluez5-device.c
	Owner Module: 26
	Properties:
		device.description = "WH-1000XM3"
		device.string = "38:18:4C:EA:0F:AA"
		device.api = "bluez"
		device.class = "sound"
		device.bus = "bluetooth"
		device.form_factor = "headset"
		bluez.path = "/org/bluez/hci0/dev_38_18_4C_EA_0F_AA"
		bluez.class = "0x240404"
		bluez.alias = "WH-1000XM3"
		device.icon_name = "audio-headset-bluetooth"
		device.intended_roles = "phone"
	Profiles:
		headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, priority: 30, available: yes)
		a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 40, available: yes)
		off: Off (sinks: 0, sources: 0, priority: 0, available: yes)

Mudando o profile

$ pactl set-card-profile bluez_card.94_DB_56_F5_78_41 a2dp_sink

bluetooth bookmarks, bluetooth, ubuntu, conectar bluetooth, conectar fone bluetooth no ubuntu


Github Bookmarks Kafka Client Bookmarks

Comments