Arch Linuxでbluetooth Speaker (headphone)が使いたいわよ
ども、BobbyQuineです。正直書かなくていい気もするけど一応書いとく。
正直これ読めばいい
https://wiki.archlinux.jp/index.php/Bluetooth_%E3%83%98%E3%83%83%E3%83%89%E3%82%BB%E3%83%83%E3%83%88
つないだ相手はsonyのh.earなんちゃらかんちゃら。
必要なもの入れる
$ sudo pacman -S pulseaudio-alsa pulseaudio-bluetooth bluez bluez-libs bluez-utils bluez-firmware
ついでに
$ sudo pacman -S pavucontrol
その後、headphoneの電源入れて"ペアリングモードにしてから"
$ sudo systemctl start bluetooth.service
$ sudo bluetoothctl
これでシェルが変わるはず。多分下な感じ
[bluetooth]# power on
[bluetooth]# agent on
[bluetooth]# default-agent
[bluetooth]# scan on
そしたら多分使いたいデバイスのMacアドレスとデバイス名出るから確認。
[bluetooth]# pair yourdevicesMacAdd
ペアリングできたら
[bluetooth]# connect yourdevicesMacAdd
でなんだけどこれだと多分接続できない
別でまたTerminal立ち上げて
$ pulseaudio -k
$ pulseaudio
でpulseaudio再起動させてからもっかいコネクトとかやってみて。
接続できたら
[bluetooth]# scan off
[bluetooth]# exit