Arch-Linux

使用藍牙從揚聲器流式傳輸

  • May 22, 2019

我在 Manjaro xfce 最新更新 64 位,我有Jbl charge 2,我能夠連接到它並通過藍牙信任它。我不知道如何通過它傳輸筆記型電腦的音頻。我玩過 PulseAudio 音量控制,更改了設置和其他東西,但一無所獲。那麼該怎麼做呢?

似乎是一個藍人問題,我想我看到了這個錯誤

Bluetooth device added successfully but failed to connect

通過安裝pulseaudio-bluetooth解決,我仍在配置它以使音頻正常工作,但這是一個起點

按照Arch Wiki中的幾個步驟,我在 Arch Linux 上連接了 Bose Color II :

  1. 安裝依賴項。
pacman -Syu bluez bluez-utils
  1. 啟動藍牙服務(或者在下次啟用它以跳過此步驟)。
systemctl start bluetooth.service
  1. 執行藍牙服務外殼。
bluetoothctl
  1. 來自wiki的範例會話:
# bluetoothctl 
[NEW] Controller 00:10:20:30:40:50 pi [default]
[bluetooth]# agent KeyboardOnly 
Agent registered
[bluetooth]# default-agent 
Default agent request successful
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 00:10:20:30:40:50 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:10:20:30:40:50 Discovering: yes
[NEW] Device 00:12:34:56:78:90 myLino
[CHG] Device 00:12:34:56:78:90 LegacyPairing: yes
[bluetooth]# pair 00:12:34:56:78:90
Attempting to pair with 00:12:34:56:78:90
[CHG] Device 00:12:34:56:78:90 Connected: yes
[CHG] Device 00:12:34:56:78:90 Connected: no
[CHG] Device 00:12:34:56:78:90 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 00:12:34:56:78:90 Paired: yes
Pairing successful
[CHG] Device 00:12:34:56:78:90 Connected: no
[bluetooth]# connect 00:12:34:56:78:90
Attempting to connect to 00:12:34:56:78:90
[CHG] Device 00:12:34:56:78:90 Connected: yes
Connection successful

配對音頻流設備後,建議您使用pavucontrol選擇藍牙設備作為輸出設備。

引用自:https://unix.stackexchange.com/questions/208728