Sprawdź konfigurację:
$ grep -A1 bluetooth-discover /etc/pulse/default.pa
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif
Zobacz zarejestrowane moduły związane z bluetooth:
$ pactl list short modules | grep bluetooth
9 module-bluetooth-policy auto_switch=false
10 module-bluetooth-discover
Jeśli trzeba, załaduj moduł:
$ pactl load-module module-bluetooth-discover
Znajdź i sparuj urządzenie:
$ bluetoothctl
Waiting to connect to bluetoothd...
[bluetooth]# hci0 new_settings: powered bondable ssp br/edr
[bluetooth]# Agent registered
[bluetooth]# [CHG] Controller 42:4C:55:AA:BB:CC Pairable: yes
[bluetooth]# scan on
[bluetooth]# SetDiscoveryFilter success
[bluetooth]# Discovery started
[bluetooth]# [CHG] Controller 42:4C:55:AA:BB:CC Discovering: yes
[bluetooth]# [NEW] Device 46:41:4E:00:11:22 Fancy Clip 4
[bluetooth]# pair 46:41:4E:00:11:22
Attempting to pair with 46:41:4E:00:11:22
[CHG] Device 46:41:4E:00:11:22 Connected: yes
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 Bonded: yes
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 UUIDs: 00002108-0000-1000-7000-0080deadbeef
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 UUIDs: 0000210b-0000-1000-7000-0080deadbeef
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 UUIDs: 0000210c-0000-1000-7000-0080deadbeef
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 UUIDs: 0000210d-0000-1000-7000-0080deadbeef
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 UUIDs: 0000210e-0000-1000-7000-0080deadbeef
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 UUIDs: 0000211e-0000-1000-7000-0080deadbeef
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 ServicesResolved: yes
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 Paired: yes
[Fancy Clip 4]# Pairing successful
Sprawdź:
[bluetooth]# devices
Device 46:41:4E:00:11:22 Fancy Clip 4
$ bluetoothctl devices Paired
Device 46:41:4E:00:11:22 Fancy Clip 4
$ bluetoothctl devices Bonded
Device 46:41:4E:00:11:22 Fancy Clip 4
Połącz z urządzeniem wcześniej sparowanym:
$ bluetoothctl connect 46:41:4E:00:11:22
Attempting to connect to 46:41:4E:00:11:22
[CHG] Device 46:41:4E:00:11:22 Connected: yes
[NEW] Endpoint /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1
[NEW] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd1
Connection successful
lub interaktywnie:
$ bluetoothctl
Waiting to connect to bluetoothd...
[bluetooth]# hci0 new_settings: powered bondable ssp br/edr
[bluetooth]# Agent registered
[bluetooth]# [CHG] Controller 42:4C:55:AA:BB:CC Pairable: yes
[bluetooth]# connect 46:41:4E:00:11:22
Attempting to connect to 46:41:4E:00:11:22
[CHG] Device 46:41:4E:00:11:22 Connected: yes
[Fancy Clip 4]# [NEW] Endpoint /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1
[Fancy Clip 4]# [NEW] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0
[Fancy Clip 4]# Connection successful
[Fancy Clip 4]# [CHG] Device 46:41:4E:00:11:22 ServicesResolved: yes
[Fancy Clip 4]# [CHG] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0 Volume: 0x003f (63)
[Fancy Clip 4]# [CHG] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0 State: active
[Fancy Clip 4]# [CHG] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0 Volume: 0x0047 (71)
[Fancy Clip 4]# [CHG] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0 Volume: 0x004f (79)
[Fancy Clip 4]# [CHG] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0 Volume: 0x0057 (87)
[Fancy Clip 4]# [CHG] Transport /org/bluez/hci0/dev_46_41_4E_00_11_22/sep1/fd0 Volume: 0x004f (79)
[Fancy Clip 4]#
Jeśli chcesz łączyć automatycznie, dodaj do zaufanych:
$ bluetoothctl trust 46:41:4E:00:11:22
[CHG] Device 46:41:4E:00:11:22 Trusted: yes
Changing 46:41:4E:00:11:22 trust succeeded