「Bluetooth ヘッドセット」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(Kusakata がページ「Bluetooth headset」を「Bluetooth ヘッドセット」に移動しました)
(文字列「http://ubuntuforums.org/」を「https://ubuntuforums.org/」に置換)
(2人の利用者による、間の10版が非表示)
3行目: 3行目:
 
[[en:Bluetooth headset]]
 
[[en:Bluetooth headset]]
 
[[ru:Bluetooth headset]]
 
[[ru:Bluetooth headset]]
  +
[[zh-hans:Bluetooth headset]]
 
{{Related articles start}}
 
{{Related articles start}}
 
{{Related|Bluetooth}}
 
{{Related|Bluetooth}}
10行目: 11行目:
 
現在、Arch Linux のデフォルト環境ではリモートオーディオ再生の A2DP プロファイル (Audio Sink) をサポートしています。
 
現在、Arch Linux のデフォルト環境ではリモートオーディオ再生の A2DP プロファイル (Audio Sink) をサポートしています。
   
{{Tip|最新版の [[Bluez]] はヘッドセット/ハンズフリープロファイルをサポートしていません。そのためマイク入力は動作せ、A2DP プロファイルをサポートしていないヘッドセットには音声が出力されません。ヘッドセット/ハンズフリープロファイルのヘッドセットを使うとき、[[AUR]]利用して他のパッケジを取得する旧式の方法を使用する必要があります。}}
+
{{Note|Bluez5 は [[PulseAudio]] しかサポートしておら[[ALSA]] はサポートしていません。PulseAudio を使いたくない場合 AUR から {{AUR|bluez-alsa-git}}インストする必要があります。}}
   
  +
== Bluez5/PulseAudio ==
{{Tip|{{AUR|pulseaudio-git}} はヘッドセット/ハンズフリープロファイルと Bluez5 のネイティブサポートが追加されています。}}
 
   
  +
PulseAudio 5.x はデフォルトで A2DP をサポートしています。以下のパッケージを[[インストール]]してください: {{Pkg|pulseaudio-alsa}}, {{Pkg|pulseaudio-bluetooth}}, {{Pkg|bluez}}, {{Pkg|bluez-libs}}, {{Pkg|bluez-utils}}, {{Pkg|bluez-firmware}}。{{Pkg|pulseaudio-bluetooth}} がないとペアリングした後に接続することができなくなります。エラーメッセージは表示されません。
{{Tip|Bluez5 は [[PulseAudio]] しかサポートしておらず [[ALSA]] はサポートしていません。PulseAudio を使いたくない場合は AUR から昔のバージョンの Bluez をインストールする必要があります。}}
 
   
  +
Bluetooth システムを起動:
== Bluez5/PulseAudio (git) ==
 
 
PulseAudio 5.x supports A2DP per default.
 
The current git also supports HFP.
 
Make sure the following packages are installed:
 
 
# pacman -S pulseaudio-alsa bluez bluez-libs bluez-utils bluez-firmware
 
 
Start the Bluetooth system:
 
   
 
# systemctl start bluetooth
 
# systemctl start bluetooth
   
  +
''bluetoothctl'' コマンドラインユーティリティを使うことでペアリングと接続が行えます。''bluetoothctl'' に関する詳細やトラブルシューティングは [[Bluetooth]] の記事を見てください。次のコマンドを実行することでコマンドプロンプトを開きます:
Now we can use the ''bluetoothctl'' command line utility to pair and connect. For troubleshooting and more detailed explanations of ''bluetoothctl'' see the [[Bluetooth]] article. Run
 
   
 
# bluetoothctl
 
# bluetoothctl
   
  +
そして以下を入力:
to be greeted by its internal command prompt. Then enter:
 
   
 
# power on
 
# power on
39行目: 32行目:
 
# scan on
 
# scan on
   
  +
ヘッドセットをペアリングモードにします。ヘッドセットは簡単に確認できます。例えば:
Now make sure that your headset is in pairing mode. It should be discovered shortly. For example,
 
 
[NEW] Device 00:1D:43:6D:03:26 Lasmex LBT10
 
[NEW] Device 00:1D:43:6D:03:26 Lasmex LBT10
shows a device that calls itself "Lasmex LBT10" and has MAC address ''00:1D:43:6D:03:26''. We will now use that MAC address to initiate the pairing:
+
上記の場合、デバイスの名前は "Lasmex LBT10" MAC アドレスは ''00:1D:43:6D:03:26'' です。この MAC アドレスを使ってペアリングを開始します:
   
 
# pair 00:1D:43:6D:03:26
 
# pair 00:1D:43:6D:03:26
   
  +
ペアリングが完了したら、デバイスを明示的に接続する必要があります (every time?):
After pairing, you also need to explicitly connect the device (every time?):
 
   
 
# connect 00:1D:43:6D:03:26
 
# connect 00:1D:43:6D:03:26
   
  +
全てが上手くいけば、[[PulseAudio]] にアウトプットデバイスが新しく作られます。
If everything works correctly, you now have a separate output device in [[PulseAudio]].
 
  +
{{Note|デバイスはデフォルトではオフになっています。{{Pkg|pavucontrol}} の "Configuration" タブでオーディオプロファイル (''OFF'', A2DP, HFP) を選択してください。}}
{{Note|The device may be off by default. Select it's audio profile (''OFF'', A2DP, HFP) in the "Configuration" tab of {{Pkg|pavucontrol}}.}}
 
  +
{{Pkg|pavucontrol}} の "Playback" や "Recording" タブを使うことでデバイスに音声を転送することができます。
You can now redirect any audio through that device using the "Playback" and "Recording" tabs of {{Pkg|pavucontrol}}.
 
   
  +
スキャンを無効化してプログラムを終了:
You can now disable scanning again and exit the program:
 
 
# scan off
 
# scan off
 
# exit
 
# exit
  +
  +
=== 自動接続の設定 ===
  +
  +
ヘッドセットを自動接続するには、PulseAudio の switch-on-connect モジュールを有効にする必要があります。以下を追加してください:
  +
{{hc|/etc/pulse/default.pa|
  +
# automatically switch to newly-connected devices
  +
load-module module-switch-on-connect
  +
}}
  +
  +
それから Bluetooth ヘッドセットを信頼するように ''bluetoothctl'' を使用しないと、以下のようなエラーが表示されます:
  +
bluetoothd[487]: Authentication attempt without agent
  +
bluetoothd[487]: Access denied: org.bluez.Error.Rejected
  +
  +
[bluetooth]# trust 00:1D:43:6D:03:26
  +
  +
再起動後、Bluetooth アダプタはデフォルトでは電源が入らないようになります。udev ルールを追加して電源を入れてください:
  +
{{hc|/etc/udev/rules.d/10-local.rules|2=
  +
# Set bluetooth power up
  +
ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/usr/bin/hciconfig %k up"
  +
}}
   
 
=== トラブルシューティング ===
 
=== トラブルシューティング ===
   
  +
A2DP/Bluetooth ヘッドセットが動作しないという報告は多数存在します。
Many users report frustration with getting A2DP/Bluetooth Headsets to work.
 
   
  +
==== 音声プロファイルを選択しても、ヘッドセットが機能せず音声が転送できない ====
==== Selected audio profile, but headset inactive and audio cannot be redirected ====
 
   
  +
一見、デバイスを接続する前に音声プロファイルが選択できるようにみえますが、残念ながら何の効果もありません。メニューはレシーバーがデバイスを認識するとすぐに作成されます。
Deceptively, this menu is available before the device has been connected; annoyingly it will have no effect. The menu seems to be created as soon as the receiver recognizes the device.
 
   
  +
bluetoothctl を (sudo あるいは root で) 実行して手動でデバイスを接続してください。毎回接続する手間を省くような設定オプションが存在するかもしれませんが、自動接続は上手くいきません。
Make sure to run bluetoothctl (with sudo/as root) and connect the device manually. There may be configuration options to remove the need to do this each time, but neither pairing nor trusting induce automatic connecting for me.
 
   
  +
==== AuthenticationFailed でペアリングが失敗する ====
==== Pairing fails with AuthenticationFailed ====
 
   
If pairing fails, you can try [https://stackoverflow.com/questions/12888589/linux-command-line-howto-accept-pairing-for-bluetooth-device-without-pin disabling SSPMode] with:
+
ペアリングが失敗する場合、次のコマンドで [https://stackoverflow.com/questions/12888589/linux-command-line-howto-accept-pairing-for-bluetooth-device-without-pin SSPMode を無効化] してみてください:
 
# hciconfig hci0 sspmode 0
 
# hciconfig hci0 sspmode 0
   
  +
==== ペアリングは成功するが、接続が失敗する ====
==== Pairing works, but connecting does not ====
 
   
  +
''bluetoothctl'' で以下のエラーが表示される場合:
You might see the following error in ''bluetoothctl'':
 
   
 
[bluetooth]# connect 00:1D:43:6D:03:26
 
[bluetooth]# connect 00:1D:43:6D:03:26
80行目: 93行目:
 
Failed to connect: org.bluez.Error.Failed
 
Failed to connect: org.bluez.Error.Failed
   
  +
以下のようなコマンドを使ってログを確認してみてください:
To further investigate, have a look at the log via one of the following commands:
 
   
 
# systemctl status bluetooth
 
# systemctl status bluetooth
 
# journalctl -n 20
 
# journalctl -n 20
   
  +
以下のようなメッセージが確認できる場合:
You might see a message like this:
 
   
 
bluetoothd[5556]: a2dp-sink profile connect failed for 00:1D:43:6D:03:26: Protocol not available
 
bluetoothd[5556]: a2dp-sink profile connect failed for 00:1D:43:6D:03:26: Protocol not available
   
  +
おそらく {{Pkg|pulseaudio-bluetooth}} パッケージがインストールされていないのが原因です。インストールしたら、pulseaudio を再起動してください。
The problem in this case is that PulseAudio is not catching up. A common solution to this problem is to restart PulseAudio. Note that it is perfectly fine to run ''bluetoothctl'' as root while PulseAudio runs as user. After restarting PulseAudio, retry to connect. It is not necessary to repeat the pairing.
 
   
  +
パッケージが欠けていることが問題ではない場合、PulseAudio が上手く起動していないのが原因です。一般的に PulseAudio を再起動することで問題は解決します。PulseAudio をユーザーで実行している場合に ''bluetoothctl'' を root で実行することは全く問題ありません。PulseAudio の再起動後、接続を再試行してください。ペアリングを繰り返す必要はありません。
If restarting PulseAudio does not work, you need to load module-bluetooth-discover.
 
  +
  +
PulseAudio の再起動で問題が直らないときは、module-bluetooth-discover をロードしてください:
   
 
# pactl load-module module-bluetooth-discover
 
# pactl load-module module-bluetooth-discover
   
The same load-module command can be added to {{ic|/etc/pulse/default.pa}}.
+
上記の load-module コマンドは {{ic|/etc/pulse/default.pa}} に追加することができます。
   
  +
それでも問題が修正されない場合、あるいは PulseAudio の system-wide モードを使っていない場合、以下の PulseAudio モジュールもロードしてください (以下のモジュールも {{ic|default.pa}} や {{ic|system.pa}} でロードすることができます):
If that still does not work, or you are using PulseAudio's system-wide mode, also load the following PulseAudio modules (again these can be loaded via your default.pa or system.pa):
 
   
 
module-bluetooth-policy
 
module-bluetooth-policy
103行目: 118行目:
 
module-bluez5-discover
 
module-bluez5-discover
   
  +
==== 接続は成功するが、音が聞こえない ====
To have your headset auto connect you need to enable PulseAudio's switch-on-connect module. Add the following:
 
{{hc|/etc/pulse/default.pa|
 
# automatically switch to newly-connected devices
 
load-module module-switch-on-connect
 
}}
 
   
  +
システムログに以下のメッセージが記録されてないか確認してください:
You then need to tell ''bluetoothctl'' to trust your Bluetooth headset, or you will see errors like this:
 
bluetoothd[487]: Authentication attempt without agent
 
bluetoothd[487]: Access denied: org.bluez.Error.Rejected
 
   
  +
bluetoothd[5556]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSource
[bluetooth]# trust 00:1D:43:6D:03:26
 
  +
bluetoothd[5556]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSink
   
  +
上記のようなメッセージがある場合、PulseAudio の設定を確認してください。もしくは、一度戻って接続が成功するかどうか確かめてください。
After a reboot, your Bluetooth adapter will not power on by default. You need to add a udev rule to power it on:
 
{{hc|/etc/udev/rules.d/10-local.rules|2=
 
# Set bluetooth power up
 
ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/usr/bin/hciconfig %k up"
 
}}
 
   
  +
[[GDM]] を使っている場合、PulseAudio のインスタンスが起動して、bluetooth デバイスの接続を奪っている可能性があります。以下のコマンドを実行して GDM ユーザーで pulseaudio ソケットを[[systemd#ユニットを使う|マスク]]することで問題は解決します:
==== Connecting works, but I cannot play sound ====
 
   
  +
# mkdir -p ~gdm/.config/systemd/user
Make sure that you see the following messages in your system log:
 
  +
# ln -s /dev/null ~gdm/.config/systemd/user/pulseaudio.socket
   
  +
再起動すれば PulseAudio のインスタンスが起動しなくなるはずです。
bluetoothd[5556]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSource
 
bluetoothd[5556]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSink
 
   
  +
bluez がヘッドセットを a2dp に対応していると認識してくれない場合もあります。そのようなときは、以下のコマンドで bluetooth デバイスのインデックスを検索してください:
If you see a message similar to this, you can go on and investigate your PulseAudio configuration. Otherwise, go back and ensure the connection is successful.
 
  +
  +
$ pacmd ls
  +
  +
以下のように bluetooth ヘッドセットに関連するセクションが出力されます:
  +
  +
{{hc
  +
|1=pacmd ls
  +
|2=index: 2
  +
name: <bluez_card.XX_XX_XX_XX_XX_XX>
  +
driver: <module-bluez5-device.c>
  +
owner module: 27
  +
properties:
  +
device.description = "SONY MDR-100ABN"
  +
device.string = "XX:XX:XX:XX:XX:XX"
  +
device.api = "bluez"
  +
device.class = "sound"
  +
...}}
  +
  +
プロファイルを手動で設定するには、以下のコマンドを実行 ({{ic|2}} は {{ic|pacmd ls}} で確認したデバイスのインデックスに置き換えてください):
  +
  +
$ pacmd set-card-profile 2 a2dp_sink
   
 
==== UUIDs has unsupported type ====
 
==== UUIDs has unsupported type ====
   
  +
ペアリング中に ''bluetoothctl'' で以下のような出力がされることがあります:
During pairing you might see this output in ''bluetoothctl'':
 
   
 
[CHG] Device 00:1D:43:6D:03:26 UUIDs has unsupported type
 
[CHG] Device 00:1D:43:6D:03:26 UUIDs has unsupported type
   
  +
このメッセージは無視してかまいません。
This message is a very common one and can be ignored.
 
  +
  +
==== PC からはデバイスがペアリング済みと認識されるがデバイスから PC が認識されていない ====
  +
  +
デバイスが bluetooth LE のペアリングに対応していない可能性があります。
  +
  +
{{ic|/etc/bluetooth/main.conf}} で {{ic|1=ControllerMode = bredr}} を設定してみてください。詳しくは [https://unix.stackexchange.com/questions/292189/pairing-bose-qc-35-over-bluetooth-on-fedora] を参照。
   
 
== 旧式の方法: ALSA-BTSCO ==
 
== 旧式の方法: ALSA-BTSCO ==
   
It is much easier to set up your bluetooth headset today, with bluez >= 3.16. You may want to try the out-of-box python script in [http://fosswire.com/2008/01/11/a2dp-stereo-linux/ this blog] (you need edit the script to work with gconftool-2). There is also a piece of equivalent bash script [http://lymanrb.blogspot.com/2008/05/linux.html here].
+
今日、bluez 3.16 以上では簡単に bluetooth ヘッドセットをセットアップすることができます。しかしながら [http://fosswire.com/2008/01/11/a2dp-stereo-linux/ このブログ] にある古い python スクリプトを使用するという方法もあります (gconftool-2 で動作するようにスクリプトを編集してください)。また、同じ機能の bash スクリプトが [http://lymanrb.blogspot.com/2008/05/linux.html こちら] に存在します。
   
  +
ヘッドセットの bdaddr が必要です。bdaddr は ''12:34:56:78:9A:BC'' という形式になります。ヘッドセットのドキュメントを読んで探すか、'''hcitool scan''' コマンドを実行してください。
You need your headset's bdaddr. It is of the form ''12:34:56:78:9A:BC''. Either find it in the documentation of your headset, on the headset itself or with the '''hcitool scan''' command.
 
   
Install {{AUR|btsco}}.
+
{{AUR|btsco}} をインストールしてください。
   
  +
次のコマンドでカーネルモジュールをロード:
To load the kernel module, type:
 
 
# modprobe snd-bt-sco
 
# modprobe snd-bt-sco
  +
これで新しい音声デバイスが作成されます。{{ic|alsamixer -cN}} (N は基本的に 1 になります) を使ってボリュームを設定してください。''BT headset'' デバイスを選択することで alsa 対応のアプリケーションからデバイスを使用することができます。あるいは OSS アプリケーションでは音声デバイスとして {{ic|/dev/dspN}} を使用します。
There will now be an extra audio device. Use {{ic|alsamixer -cN}} (where N is most likely 1) to set the volume. You can access the device with any alsa-capable application by choosing the device ''BT headset'', or with any OSS application by using {{ic|/dev/dspN}} as the audio device.
 
   
  +
実際に音を流すには、先にヘッドセットをコンピュータに接続する必要があります。
But to actually get any sound, you have to connect your headset to the computer first.
 
   
=== Connecting the headset ===
+
=== ヘッドセットを接続 ===
   
  +
初めてヘッドセットを接続する場合、まずペアリングのセクションを読んでください。ヘッドセットをコンピュータに接続するには、次のコマンドを使用します:
If you connect your headset for the first time, read the section about pairing first. To connect to your headset to the computer, use the command
 
 
$ btsco -f <bdaddr>
 
$ btsco -f <bdaddr>
  +
例:
for example
 
 
$ btsco -f 12:34:56:78:9A:BC
 
$ btsco -f 12:34:56:78:9A:BC
   
  +
==== ヘッドセットとコンピュータをペアリング ====
==== Pairing the headset with your computer ====
 
   
  +
ヘッドセットとの最初の接続時に、コンピュータとペアリングする必要があります。ペアリングするときは、ヘッドセットの PIN が必要です。使用するヘッドセットによっては、ヘッドセットをリセットする必要があり、別の bluetooth デバイスでヘッドセットを使うときは毎回ペアリングしなくてはなりません。
The first time you connect the headset, you have to pair it with the computer. To do this, you need your headset's PIN. Depending on your headset you may have to reset the headset and repeat the pairing everytime you used the headset with another bluetooth device.
 
   
  +
ヘッドセットとコンピュータをペアリングする方法は2つあります:
There are two ways to pair your headset with the computer:
 
   
 
===== ''bluez-gnome'' を使う =====
 
===== ''bluez-gnome'' を使う =====
   
  +
community リポジトリから ''bluez-gnome'' パッケージをインストールしてください。そして '''bt-applet''' プログラムを起動してください。ヘッドセットに接続しようとすると、ウィンドウが開いて PIN を要求します。
Install the ''bluez-gnome'' package from the community repository. Then start the '''bt-applet''' program. Once you try to connect to the headset, a window will open and ask for the PIN.
 
   
 
===== ''passkey-agent'' を使う =====
 
===== ''passkey-agent'' を使う =====
   
  +
ヘッドセットに接続する前に、次のコマンドを実行:
Before connecting to the headset, enter the command
 
 
$ passkey-agent --default <pin>
 
$ passkey-agent --default <pin>
  +
''<pin>'' はヘッドセットの PIN に置き換えてください。それからヘッドセットに接続してください。
where ''<pin>'' is your headset's PIN. Then try to connect to the headset.
 
   
 
=== ヘッドセットと ALSA デバイス ===
 
=== ヘッドセットと ALSA デバイス ===
   
  +
1. まず[[公式リポジトリ]]から {{Pkg|bluez}} を[[インストール]]してください。
1. First if you have not already, [[pacman|install]] {{Pkg|bluez}} from the [[official repositories]].
 
   
  +
2. デバイスをスキャン:
2. Scan for your device
 
 
$ hcitool (-i <optional hci#>***) scan
 
$ hcitool (-i <optional hci#>***) scan
   
  +
3. ヘッドセットとデバイスをペアリング:
3. Pair your headset with your device:
 
 
$ bluez-simple-agent (optional hci# ***) XX:XX:XX:XX:XX:XX
 
$ bluez-simple-agent (optional hci# ***) XX:XX:XX:XX:XX:XX
and put in your pin (0000 or 1234, etc)
+
そして pin を入力 (0000 1234 など)
   
4. Make sure your {{ic|/etc/bluetooth/audio.conf}} allows A2DP Audio Sinks. Place this line just bellow the [General] heading:
+
4. {{ic|/etc/bluetooth/audio.conf}} から A2DP Audio Sink を許可してください。[General] の下に以下の行を記述:
 
Enable=Source,Sink,Media,Socket
 
Enable=Source,Sink,Media,Socket
   
5. Add this to your {{ic|/etc/asound.conf}} file:
+
5. 以下を {{ic|/etc/asound.conf}} ファイルに追加:
 
#/etc/asound.conf
 
#/etc/asound.conf
 
 
210行目: 243行目:
 
}
 
}
   
  +
6. alsa デバイスに追加されたかどうか確認:
6. Check to see if it has been added to alsa devices
 
 
$ aplay -L
 
$ aplay -L
   
  +
7. aplay で再生:
7. Now play with aplay:
 
 
$ aplay -D btheadset /path/to/audio/file
 
$ aplay -D btheadset /path/to/audio/file
   
or Mplayer:
+
または Mplayer を使用:
 
$ mplayer -ao alsa:device=btheadset /path/to/audio/or/video/file
 
$ mplayer -ao alsa:device=btheadset /path/to/audio/or/video/file
   
  +
{{Tip|usb ドングルの hci# を確認するには、次を実行: {{ic|$ hcitool dev}}。}}
{{Tip|To find hci# for a usb dongle, type in
 
$ hcitool dev
 
}}
 
   
  +
=== ヘッドセットのマルチメディアボタン ===
=== Headset's multimedia buttons ===
 
   
In order to get your bluetooth headset's multimedia buttons (play, pause, next, previous) working you need to create {{ic|/etc/modules-load.d/uinput.conf}} containing {{ic|uinput}}.
+
bluetooth ヘッドセットのマルチメディアボタン (再生・停止・次へ・前へ) を使うには、{{ic|/etc/modules-load.d/uinput.conf}} を作成して {{ic|uinput}} と記述する必要があります。
   
 
== 旧式の方法: PulseAudio ==
 
== 旧式の方法: PulseAudio ==
   
  +
もっと簡単な方法です。PulseAudio はヘッドセットが有効になったときにシームレスに出力デバイスを切り替えます。サウンドサーバーとして ALSA を使っている場合、次のパッケージをインストールしてください: {{Pkg|pulseaudio}} と {{Pkg|pulseaudio-alsa}}。
This one is much easier and more elegant. PulseAudio will seamlessly switch between output devices when the headset is turned on. If you have ALSA as the sound server, you need the following packages installed:
 
{{Pkg|pulseaudio}} and {{Pkg|pulseaudio-alsa}}.
 
   
  +
bluetooth を使うように音声出力を設定するため、{{Pkg|pavucontrol}} をインストールして実行してください:
Now, to configure the audio output to use bluetooth, just install {{Pkg|pavucontrol}} and run it to configure the audio output:
 
 
$ pavucontrol
 
$ pavucontrol
  +
PulseAudio の設定については [[PulseAudio]] の記事を確認してください (特に KDE を使っている場合)。
Make sure to take a look at the [[PulseAudio]] wiki entry for setting up PulseAudio, especially if you are running KDE.
 
   
 
=== トラブルシューティング ===
 
=== トラブルシューティング ===
240行目: 270行目:
 
==== Audio sink fails ====
 
==== Audio sink fails ====
   
  +
Bluetooth ヘッドセットを接続しても ALSA/PulseAudio が接続されたデバイスを使用しないことがあります。"Audio sink fails" と表示されます。[https://wiki.gentoo.org/wiki/Bluetooth_Headset gentoo wiki] によれば、{{ic|/etc/bluetooth/audio.conf}} の {{ic|[General]}} セクションの下に {{ic|<nowiki>Enable=Socket</nowiki>}} が必要です。
Bluetooth headset is connected, but ALSA/PulseAudio fails to pick up the connected device. You will get "Audio sink fails".
 
According to [http://wiki.gentoo.org/wiki/Bluetooth_Headset gentoo wiki], you have to verify than in {{ic|/etc/bluetooth/audio.conf}} there is {{ic|<nowiki>Enable=Socket</nowiki>}} under the {{ic|[General]}} section heading.
 
   
Just do a {{ic|# systemctl restart bluetooth}} to apply it.
+
設定したら {{ic|# systemctl restart bluetooth}} を実行して適用してください。
   
 
==== Page timeout issue ====
 
==== Page timeout issue ====
   
  +
bluez-simple-agent を使用してヘッドセットとシステムをペアリングしたときにこのエラーが表示される場合、システムを再起動してデスクトップ環境に付属している bluez のグラフィカルアプレットを使ってみてください。
If you receive this error whilst trying to pair your headset with your system using bluez-simple-agent, then you can try to restart your system and use the graphical bluez applet of your desktop environment.
 
   
 
== 旧式のドキュメント: ALSA, bluez5, PulseAudio の方法 ==
 
== 旧式のドキュメント: ALSA, bluez5, PulseAudio の方法 ==
   
  +
[[ALSA]], [[bluez|bluez5]], [[PulseAudio]] を使うことでワイヤレス [[Bluetooth]] ヘッドセットで音声を再生することができます。以下の方法は Lenovo T61p ノートパソコンと SoundBot SB220 ワイヤレス bluetooth ヘッドセットで確認しています。大量のソフトウェアスタックが必要で、全てのソフトウェアがインストールされていないと謎のエラーが発生するかもしれません。以下のソフトウェアパッケージのリストは最小限必要なセットとは限りません。
[[ALSA]], [[bluez|bluez5]], and [[PulseAudio]] work together to allow a wireless [[Bluetooth]] headset to play audio. The following method works with a Lenovo T61p laptop and SoundBot SB220 wireless bluetooth headset. The required software stack is extensive and failure to include all components can produce errors which are difficult to understand. The following list of software packages might not be the minimum required set and needs to be examined more closely.
 
   
Bluez5 has a regression causing HSP/HFP Telephone profile to not be available. This regression is documented in the [http://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0/ draft release notes for Pulseaudio 5.0] which say (in "Notes for packagers"): "PulseAudio now supports BlueZ 5, but only the A2DP profile. BlueZ 4 is still the only way to make HSP/HFP work." ([https://fedoraproject.org/wiki/Common_F20_bugs#bluez5-profile from here])
+
Bluez5 にリグレッションが存在し HSP/HFP Telephone プロファイルを使うことができません。このリグレッションは [https://www.freedesktop.org/wiki/Software/PulseAudio/Notes/5.0/ Pulseaudio 5.0 のリリースノートのドラフト版] に次のように記述されています ("Notes for packagers"): "PulseAudio BlueZ 5 をサポートしますが A2DP プロファイルだけです。HSP/HFP を使用するには BlueZ 4 が必要になります" ([https://fedoraproject.org/wiki/Common_F20_bugs#bluez5-profile 参照])
   
 
=== ソフトウェアパッケージのインストール ===
 
=== ソフトウェアパッケージのインストール ===
   
  +
中心となるソフトウェアコンポーネントは [[ALSA]], Bluez5, [[PulseAudio]] です。ただし、他にも必要なライブラリが存在します。また、音声ファイルを再生するプレイヤーも必要です。以下のセクションではヘッドセットを接続してヘッドセットから音声を流すためにインストールする必要があるソフトウェアパッケージを記載しています。
The core software components are [[ALSA]], Bluez5, [[PulseAudio]]. However there are additional libraries which are required. As well as a player which can play audio files. The following section lists the software packages installed in order to connect the headset and play audio over the headset.
 
   
 
==== ALSA と関連ライブラリのインストール ====
 
==== ALSA と関連ライブラリのインストール ====
   
[[ALSA]] works with the linux kernel to provide audio services to user mode software. The following packages are used with the [[Bluetooth]] headset: {{Pkg|alsa-utils}}, {{Pkg|alsa-plugins}}, {{Pkg|alsa-tools}}.
+
[[ALSA]] Linux カーネルと一緒に動作してユーザーモードソフトウェアにオーディオサービスを提供します。[[Bluetooth]] ヘッドセットでは次のパッケージが使われます: {{Pkg|alsa-utils}}, {{Pkg|alsa-plugins}}, {{Pkg|alsa-tools}}
   
 
==== Bluez5 のインストール ====
 
==== Bluez5 のインストール ====
   
Bluez5 is the latest [[Bluetooth]] stack. It is required for [[PulseAudio]] to interface with wireless headsets. Required packages: {{Pkg|bluez}}, {{Pkg|bluez-utils}}, {{Pkg|bluez-libs}}.
+
Bluez5 は最新の [[Bluetooth]] スタックです。[[PulseAudio]] で無線ヘッドセットを使うのに必要になります。必要なパッケージ: {{Pkg|bluez}}, {{Pkg|bluez-utils}}, {{Pkg|bluez-libs}}
 
==== Install PulseAudio ====
 
 
[[PulseAudio]] interfaces with [[ALSA]], Bluez and other user mode programs. The {{AUR|pulseaudio-git}} package from [[AUR]] has capabilities not provided by the stock {{Pkg|pulseaudio}} package. The additional capabilities are required by Bluez5. More info regarding the differences between Bluez5 and PulseAudio are [https://bbs.archlinux.org/viewtopic.php?pid=1302270#p1302270 here.]
 
 
Required packages: {{AUR|pulseaudio-git}}, {{Pkg|pavucontrol}}.
 
   
 
==== Audacious のインストール ====
 
==== Audacious のインストール ====
   
[[Audacious]] is a program which plays audio files. It can work directly with [[ALSA]] or with [[PulseAudio]]. Required packages: {{Pkg|audacious}}, {{Pkg|audacious-plugins}}.
+
[[Audacious]] は音声ファイルを再生するプログラムです。[[ALSA]] [[PulseAudio]] で直接機能します。必要なパッケージ: {{Pkg|audacious}}, {{Pkg|audacious-plugins}}
   
=== Procedure ===
+
=== 手順 ===
   
  +
必要なパッケージをインストールしたら、以下の手順で Bluetooth ヘッドセットを使うことができます。ヘッドセットをペアリングして、接続し、プレイヤーを設定して、PulseAudio を設定して、音声を流します。
Once the required packages are installed, use this procedure to play audio with a bluetooth headset. The high level overview of the procedure is to pair the headset, connect the headset, configure the player and pulse audio controller and then play audio.
 
   
Start the bluetooth service as root:
+
bluetooth サービスを root で起動:
 
# systemctl start bluetooth
 
# systemctl start bluetooth
   
Verify Bluetooth is started
+
Bluetooth が起動したことを確認:
 
# systemctl status bluetooth
 
# systemctl status bluetooth
 
bluetooth.service - Bluetooth service
 
bluetooth.service - Bluetooth service
302行目: 325行目:
 
Hint: Some lines were ellipsized, use -l to show in full.
 
Hint: Some lines were ellipsized, use -l to show in full.
   
  +
PulseAudio デーモンを起動。X が起動してから通常ユーザーで実行してください:
Start the PulseAudio daemon. This must be done after X windows is started and as a normal user.
 
 
$ pulseaudio -D
 
$ pulseaudio -D
   
  +
PulseAudio デーモンが動作していることを確認してください:
Verify the PulseAudio daemon is running.
 
 
$ pulseaudio --check -v
 
$ pulseaudio --check -v
 
I: [pulseaudio] main.c: Daemon running as PID 3186
 
I: [pulseaudio] main.c: Daemon running as PID 3186
382行目: 405行目:
 
[http://netskink.blogspot.com/2013/12/pulseaudio-pavucontrol-and-audacious.html screenshot of application settings]
 
[http://netskink.blogspot.com/2013/12/pulseaudio-pavucontrol-and-audacious.html screenshot of application settings]
   
==== Miscellaneous configuration files ====
+
==== 設定ファイル ====
   
 
For reference, these settings were also done.
 
For reference, these settings were also done.
   
===== ALSA /etc/asound.conf =====
+
===== ALSA /etc/asound.conf =====
   
 
The settings shown at the top of this page was used, but the additional modification for Intel laptop sound cards.
 
The settings shown at the top of this page was used, but the additional modification for Intel laptop sound cards.
419行目: 442行目:
   
 
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+
"https://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 
<busconfig>
 
<busconfig>
   
459行目: 482行目:
 
== HSV と A2DP の設定の切り替え ==
 
== HSV と A2DP の設定の切り替え ==
   
  +
以下のコマンドを実行することで簡単に切り替えられます (2 は適切なデバイス番号に置き換えて下さい):
This can easily be achieved by the following command where 2 needs to be changed with the correct device number.
 
   
pacmd set-card-profile 2 a2dp
+
pacmd set-card-profile 2 a2dp_sink
   
=== A2DP not working with PulseAudio ===
+
=== PulseAudio A2DP が動作しない ===
   
  +
==== Socket インターフェイスの問題 ====
If PulseAudio fails when changing the profile to A2DP with bluez 4.1+ and PulseAudio 3.0+, you can try disabling the Socket interface from {{ic|/etc/bluetooth/audio.conf}} by removing the line {{ic|1=Enable=Socket}} and adding line {{ic|1=Disable=Socket}}.
 
  +
  +
bluez 4.1+ と PulseAudio 3.0+ を使っていて、PulseAudio でプロファイルを A2DP に切り替えられない場合、{{ic|/etc/bluetooth/audio.conf}} を編集して {{ic|1=Enable=Socket}} という行を削除して {{ic|1=Disable=Socket}} という行を追加することで Socket インターフェイスを無効化できます。
  +
  +
==== Gnome と GDM ====
  +
{{Note|以下は Gnome 3.16.2 と PulseAudio 7.0 で確認済みです。}}
  +
  +
GNOME と GDM を使っている場合にプロファイルを A2DP に変更すると PulseAudio が動作しなくなる場合、GDM が PulseAudio のインスタンスを起動しないように設定する必要があります。[[#接続は成功するが、音が聞こえない]]に書かれている修正を試してください。
  +
  +
{{Note|1=この問題に関する議論は [https://bbs.archlinux.org/viewtopic.php?id=194006 こちら] や [https://bbs.archlinux.org/viewtopic.php?id=196689 こちら] にあります。}}
  +
  +
== Bluez5/bluez-alsa ==
  +
  +
以下の方法を使うのは PulseAudio を使えない、あるいは使いたくない場合に限ります。
  +
  +
まずはヘッドセットがペアリング・接続できることを確認してください。PulseAudio で {{ic|bluetoothctl}} を使用するのと同じです。
  +
  +
{{AUR|bluez-alsa-git}} をインストールして {{ic|bluealsa}} サービスを[[起動]]・[[有効化]]してください。
  +
  +
{{ic|/etc/dbus-1/system.d/bluetooth.conf}} ファイルを編集して以下を {{ic|</busconfig>}} の前に追加してください:
  +
  +
{{bc|
  +
<policy user&#61;"bluealsa">
  +
<allow send_destination&#61;"org.bluez"/>
  +
</policy>
  +
}}
  +
  +
最後に {{ic|bluealsa}} を使うために、使用しているユーザーを {{ic|audio}} グループに追加してください。
  +
  +
以下のコマンドでヘッドセットをテストできます (MAC アドレスや音声ファイルは適当に置き換えてください):
  +
$ aplay -D bluealsa:HCI=hci0,DEV=00:1D:43:6D:03:26,PROFILE=a2dp ./testme.wav
  +
  +
音が鳴るのであれば HCI, DEV, PROFILE をデフォルトに設定できます。以下を {{ic|.asoundrc}} に追加してください:
  +
  +
{{bc|
  +
defaults.bluealsa {
  +
interface "hci0"
  +
device "00:1D:43:6D:03:26"
  +
profile "a2dp"
  +
}
  +
}}
  +
  +
これで bluealsa を使ってヘッドセットが使用できます。{{ic|alsamixer}} を使ってボリュームを設定することもできます ({{ic|alsamixer -D bluealsa}})。
   
 
== テスト済みのヘッドセット ==
 
== テスト済みのヘッドセット ==
475行目: 540行目:
 
! 対応状況
 
! 対応状況
 
|-
 
|-
| '''Philips SHB9150'''
+
| '''Philips SHB3060'''
  +
| bluez 5.40, PulseAudio 9.0
| bluez5, pulseaudio 5
 
  +
| ボタンが機能しません。対応プロファイル: HSP (マイクロフォンも動作) と A2DP。
| Pause and resume does not work. With at least mpv and Banshee hitting the pause button stops audio output but does not pause the player.
 
  +
| {{Yes}}
  +
|-
  +
| '''Philips SHB4000WT'''
  +
| bluez5
  +
| A2DP で動作、HDP は問題あり。
  +
| {{Yes}}
  +
|-
  +
| '''Philips SHB5500BK/00'''
  +
| bluez 5.28, PulseAudio 6.0
  +
| 停止・再生が機能せず。
 
| {{R|Limited}}
 
| {{R|Limited}}
 
|-
 
|-
| '''Philips SHB9100'''
+
| '''Philips SHB7000'''
 
|
 
|
  +
| 停止・再生がおかしい。
| Pause and resume is flaky. See [https://bbs.archlinux.org/viewtopic.php?pid=1315428#p1315428] for the underlying issue and a temporary solution to improve audio quality.
 
 
| {{R|Limited}}
 
| {{R|Limited}}
 
|-
 
|-
| '''Philips SHB7000'''
+
| '''Philips SHB7100'''
  +
| bluez 5.32, pulseaudio 6.0
  +
| 次へ・前へボタンも動作。停止・再生は微妙 (VLC では動くこともあるが、Audacious では全く機能しない)。A2DP と Handsfree の音声出力のみで確認。マイクは機能せず。
  +
| {{R|Limited}}
  +
|-
  +
| '''Philips SHB7150'''
  +
| bluez 5.32, pulseaudio 6.0
  +
| 次へ・前へボタンも動作。停止・再生は VLC では動作。A2DP プロファイルでのみ確認。
  +
| {{Yes}}
  +
|-
  +
| '''Philips SHB9100'''
 
|
 
|
  +
| 停止・再生がおかしい。音質を改善する一時的な方法は [https://bbs.archlinux.org/viewtopic.php?pid=1315428#p1315428] を参照。
| Pause and resume is flaky.
 
 
| {{R|Limited}}
 
| {{R|Limited}}
  +
|-
  +
| '''Philips SHB9150'''
  +
| bluez5, pulseaudio 9
  +
|
  +
| {{Yes}}
  +
|-
  +
| '''Philips AEA2000/12'''
  +
| bluez5
  +
|
  +
| {{Yes}}
 
|-
 
|-
 
| '''Parrot Zik'''
 
| '''Parrot Zik'''
 
|
 
|
  +
| マイクは認識されますが機能しません (HSP プロファイルは使えません)。Bluetooth 接続が切れると、音声に遅延が発生します。Bluetooth 接続を初期化することで解決します。
| Firmware 1.04. The microphone is detected, but does not work. Sometimes it lags (but does not stutter); usually this is not noticeable unless playing games, in which case you may switch to a wired connection.
 
  +
| {{R|Limited}}
  +
|-
  +
| '''Parrot Zik 2.0'''
  +
|
  +
| マイクは認識されますが機能しません (HSP プロファイルは使えません)。Bluetooth 接続が切れると、音声に遅延が発生します。Bluetooth 接続を初期化することで解決します。
  +
| {{R|Limited}}
  +
|-
  +
| '''Parrot Zik 3.0'''
  +
|
  +
| マイクは認識されますが機能しません (HSP プロファイルは使えません)。遅延の問題はありません。
 
| {{R|Limited}}
 
| {{R|Limited}}
 
|-
 
|-
 
| '''Sony DR-BT50'''
 
| '''Sony DR-BT50'''
 
| bluez{4,5}
 
| bluez{4,5}
| Works for a2dp, see [http://vlsd.blogspot.com/2013/11/bluetooth-headphones-and-arch-linux.html]). Adapter: D-Link DBT-120 USB dongle.
+
| a2dp で動作。[http://vlsd.blogspot.com/2013/11/bluetooth-headphones-and-arch-linux.html] を参照。アダプタ: D-Link DBT-120 USB ドングル。
  +
| {{Yes}}
  +
|-
  +
| '''Sony SBH20'''
  +
| bluez 5.30, pulseaudio 6.0
  +
| A2DP プロファイルで問題なく動作。
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
 
| '''Sony SBH50'''
 
| '''Sony SBH50'''
 
| bluez5
 
| bluez5
| Works for a2dp, Adapter: Broadcom Bluetooth 2.1 Device (Vendor=0a5c ProdID=219b Rev=03.43). Requires the {{ic|btusb}} [[modprobe|module]].
+
| a2dp で動作。アダプタ: Broadcom Bluetooth 2.1 Device (Vendor=0a5c ProdID=219b Rev=03.43){{ic|btusb}} [[modprobe|モジュール]]が必要。
  +
| {{Yes}}
  +
|-
  +
| '''Sony SBH80'''
  +
| bluez 5.36, pulseaudio 7.1
  +
| メディアボタンは機能せず。blueman でプロファイルを無効化して A2DP を有効化することで動作。
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
 
| '''Sony MDR-XB950BT'''
 
| '''Sony MDR-XB950BT'''
 
| pulseaudio
 
| pulseaudio
  +
| a2dp でテスト済み。アダプタ: Grand-X BT40G。自動で接続されない場合、手動で接続する必要があります。他の機能は問題なく動作。
| Tested a2dp. Adapter: Grand-X BT40G. Doesn't auto-connect, need to connect manually. Other functionality works fine.
 
 
| {{R|Limited}}
 
| {{R|Limited}}
  +
|-
  +
| '''Sony MDR-ZX330BT'''
  +
| bluez 5.31, pulseaudio 6.0
  +
| 何も設定しなくても動作 (HSP/HFP と A2DP)。ボタンは特定のアプリで動作。
  +
| {{Yes}}
  +
|-
  +
| '''Sony MUC-M1BT1'''
  +
| bluez5, {{AUR|pulseaudio-git}}
  +
| A2DP & HSP/HFP どちらも問題なく動作。
  +
| {{Yes}}
 
|-
 
|-
 
| '''SoundBot SB220'''
 
| '''SoundBot SB220'''
517行目: 642行目:
 
| '''Auna Air 300'''
 
| '''Auna Air 300'''
 
| bluez5, pulseaudio-git
 
| bluez5, pulseaudio-git
  +
| 何らかの理由で、再起動が必要ですが、それで問題なく起動します。
| For some reason, a few restarts were required, and eventually it just started working.
 
 
| {{R|Limited}}
 
| {{R|Limited}}
 
|-
 
|-
527行目: 652行目:
 
| '''Sennheiser MM 550-X Travel'''
 
| '''Sennheiser MM 550-X Travel'''
 
| bluez 5.27-1, pulseaudio 5.0-1
 
| bluez 5.27-1, pulseaudio 5.0-1
  +
| 次・前ボタンは何も設定しなくても動作しますが、再生・停止ボタンは動作しません。
| Next/Previous buttons work out-of-the-box, Play/Pause does not
 
  +
| {{Yes}}
  +
|-
  +
| '''Sennheiser URBANITE XL Wireless'''
  +
| bluez 5.37-2, pulseaudio 7.1-3
  +
| A2DP 高音質再生。再生・停止・次へ・前へも問題なく動作。
  +
| {{Yes}}
  +
|-
  +
| '''Sennheiser Momentum 2'''
  +
| bluez5, pulseaudio 9.0-1
  +
| GDM で起動できない問題を解決しないと A2DP プロファイルの変更に失敗することがあります。
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
537行目: 672行目:
 
| '''Logitech Wireless Headset'''
 
| '''Logitech Wireless Headset'''
 
| bluez 5.14, pulseaudio-git
 
| bluez 5.14, pulseaudio-git
| part number PN 981-000381, advertised for use with iPad
+
| 製造番号 PN 981-000381。iPad 用と喧伝されているヘッドセット。
  +
| {{Yes}}
  +
|-
  +
| '''Logitech UE9000'''
  +
| bluez 5.37, pulseaudio 7.1, gnome 3.18.2
  +
| [[#接続は成功するが、音が聞こえない|gnome/gdm の修正]]をすることで再生可能。音声プロファイルのデフォルトは HSP/HFP。マイクは HSP/HFP と A2DP プロファイルのどちらでも動作。再生・停止や次へ・前へは Spotify や VLC で機能する。
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
547行目: 687行目:
 
| '''PT-810'''
 
| '''PT-810'''
 
| bluez 5.14, pulseaudio-git
 
| bluez 5.14, pulseaudio-git
| Generic USB-Powered Bluetooth Audio Receiver with 3.5mm headset jack and a2dp profile. Widely available as "USB Bluetooth Receiver." IDs as PT-810.
+
| 汎用の USB 給電 Bluetooth 音声レシーバー。3.5mm ヘッドセットジャックと a2dp プロファイルで機能。"USB Bluetooth Receiver" ID として PT-810 は広く使えます。
| {{Yes}}
 
|-
 
| '''Philips SHB4000WT'''
 
| bluez5
 
|
 
| {{Yes}}
 
|-
 
| '''Philips AEA2000/12'''
 
| bluez5
 
|
 
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
567行目: 697行目:
 
| '''Creative AirwaveHD'''
 
| '''Creative AirwaveHD'''
 
| bluez 5.23
 
| bluez 5.23
| Bluetooth adapter Atheros Communications usb: 0cf3:0036
+
| Bluetooth アダプタ Atheros Communications usb: 0cf3:0036
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
 
| '''Creative HITZ WP380'''
 
| '''Creative HITZ WP380'''
 
| bluez 5.27, pulseaudio 5.0-1
 
| bluez 5.27, pulseaudio 5.0-1
  +
| A2DP プロファイルのみ。ボタンも動作 (再生, 停止, 次へ, 前へ)。ボリュームボタンはハードウェアのみ。自動接続もできるが bluetooth モジュールを "pulseaudio" に組み込んで自動的に切り替えさせる必要がある。ハイレゾ再生もクリア (デバイスとしては APTx コーデックをサポートしていますが Linux ではまだ対応されていません)。遅延の問題が発生するときは pulseaudio を再起動する必要あり。
| A2DP Profile only. Buttons work (Play, Pause, Prev, Next). Volume buttons are hardware-only. Auto-connect works but you should include the bluetooth module in "pulseaudio" to switch to it automatically. Clear HD Music Audio (This device support APTx codec but it isn't supported in linux yet). You may have some latency problems which needs pulseaudio restart.
 
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
 
| '''deleyCON Bluetooth Headset'''
 
| '''deleyCON Bluetooth Headset'''
 
| bluez 5.23
 
| bluez 5.23
  +
| アダプタ: CSL - USB nano Bluetooth-Adapter V4.0。a2dp プロファイルでテスト。マイクは未テスト。(ペアリングしても) 自動接続は行われないため、手動で接続する必要あり。再生/停止ボタンを押すとヘッドフォンがミュート/アンミュートになるが、再生には影響なし。次に進む/前に戻るボタンは動作せず (''xev'' で変化なし)。
| Adapter: CSL - USB nano Bluetooth-Adapter V4.0. Tested a2dp profile. Untested microphone. Does not auto-connect (even when paired and trusted), must connect manually. Play/pause button mutes/unmutes the headphones, not the playback. Playback fwd/bwd buttons do not work (nothing visible with ''xev'').
 
 
| {{R|Limited}}
 
| {{R|Limited}}
 
|-
 
|-
 
| '''UE BOOM'''
 
| '''UE BOOM'''
 
| bluez 5.27, pulseaudio-git 5.99
 
| bluez 5.27, pulseaudio-git 5.99
  +
| 最新の UE BOOM fw 1.3.58 にアップデート。動画再生における音声の遅延は pavucontrol を設定することで解決できる。UE BOOM x2 で動作。
| Update to latest UE BOOM fw 1.3.58. Sound latency in video solved by configuring pavucontrol. Works with UE BOOM x2.
 
 
| {{Yes}}
 
| {{Yes}}
 
|-
 
|-
 
| '''LG HBS-730'''
 
| '''LG HBS-730'''
| bluez 5.27, pulseaudio 5.0
+
| bluez 5.30, pulseaudio 6.0
  +
| A2DP プロファイルで何も設定しなくても動作。
| Works out of box.
 
  +
| {{Yes}}
  +
|-
  +
| '''LG HBS-750'''
  +
| bluez 5.30, pulseaudio-git 6.0
  +
| A2DP プロファイルで何も設定しなくても動作。
  +
| {{Yes}}
  +
|-
  +
| '''Beats Studio Wireless'''
  +
| bluez 5.28, pulseaudio 6.0
  +
| 何も設定しなくても動作。マルチメディアボタンは未テスト。
  +
| {{Yes}}
  +
|-
  +
| '''AKG Y45BT'''
  +
| bluez 5.30, pulseaudio 6.0
  +
| 停止・再生が動作せず。{{ic|/etc/bluetooth/audio.conf}} に {{ic|1=Enable=Socket}} を、{{ic|/etc/pulse/default.pa}} に {{ic|load-module module-bluetooth-discover}} を設定する必要あり。
  +
| {{Yes}}
  +
|-
  +
| '''Bluedio Turbine/Turbine 2+'''
  +
| bluez 5.3, pulseaudio 6.0
  +
| HSP/HFP で動作、A2DP も問題なく動作。
  +
| {{Yes}}
  +
|-
  +
| '''Nokia BH-111'''
  +
| bluez 5.30, pulseaudio 6.0
  +
| HSP/HFP と A2DP どちらでも動作。ボタンは特定のアプリで動作。
  +
| {{Yes}}
  +
|-
  +
| '''Samsung Level Link'''
  +
| bluez 5.33, pulseaudio 6.0
  +
| 何も設定しなくても動作 (HSP/HFP と A2DP)。ボタンは特定のアプリで動作。
  +
| {{Yes}}
  +
|-
  +
| '''Bernafon Soundgate 3'''
  +
| bluez 5.34-2, pulseaudio 7.0-1
  +
| blueman-git 2.0.r53.g2a812a8-1 をインストールすることで動作 (A2DP)。
  +
| {{Yes}}
  +
|-
  +
| '''JBL E40 BT'''
  +
| bluez 5.35, pulseaudio 7.0
  +
| blueberry と blueman をインストールすることで接続可能。{{ic|1=Disable=Socket}} を {{ic|/etc/bluetooth/audio.conf}} に追加することで A2DP が動作。メディアボタンも動作。
  +
| {{Yes}}
  +
|-
  +
| '''JBL Everest 300'''
  +
| bluez 5.37, pulseaudio 8.0
  +
| 全てが問題なく動作。HSP/HFP プロファイルでヘッドフォンを接続すると音質が悪いが、'''pavucontrol''' でプロファイルを A2DP sink に切り替えることで音質はかなり改善する。ペアリングに問題なし。
  +
| {{Yes}}
  +
|-
  +
| '''Kitsound Manhattan'''
  +
| bluez 5.37, pulseaudio 7.13
  +
| 全て問題なし。Pulseaudio をユーザーでなく root で ( --system) 動作させた場合、ペアリングしても接続できなかったり、(アクセス PIN を要求して) システムがフリーズしてしまう可能性あり。注意が必要。
  +
| {{Yes}}
  +
|-
  +
| '''Jawbone Jambox'''
  +
| bluez 5.38, pulseaudio 8.0
  +
|
  +
| {{Yes}}
  +
|-
  +
| '''Plantronics BackBeat FIT'''
  +
| bluez5, pulseaudio 8.0
  +
| ヘッドセットと a2dp プロファイルどちらも完全に動作。停止ボタンでプレイヤーを停止できます ([[mpv]] で確認)。
  +
| {{Yes}}
  +
|-
  +
| '''Plantronics BackBeat Pro'''
  +
| bluez5, pulseaudio 9.0
  +
| ヘッドセットと a2dp プロファイルどちらも完全に動作。停止ボタンを押したりヘッドセットを外すとプレイヤーが停止します。
  +
| {{Yes}}
  +
|-
  +
| '''Aukey EP-B26'''
  +
| bluez 5.39-1, pulseaudio 8.0-3
  +
| ヘッドセット (低品質) と a2dp (高品質) プロファイルどちらも完全に動作。停止ボタンでプレイヤーを停止したり、次・前ボタンで曲を変えられます。マイクは HSP/HFP モードでのみ動作。
  +
| {{Yes}}
  +
|-
  +
| '''Bose AE2 SoundLink'''
  +
| bluez 5.36, pulseaudio 7.1
  +
| 停止・再生ボタンが動作しません。マイクも使えません。
  +
| {{R|Limited}}
  +
|-
  +
| '''Bose QuietComfort 35'''
  +
| bluez 5.41, pulseaudio 9.0
  +
| {{ic|1=ControllerMode=bredr}} を設定することでペアリングできます。
  +
| {{Yes}}
  +
|-
  +
| '''Blue Tiger Dual Elite'''
  +
| bluez-5.42-1, pulseaudio 9.0-1
  +
| {{ic|1=pulseaudio-bluetooth}} パッケージで接続できます。マイクや操作ボタンは未確認。
 
| {{Yes}}
 
| {{Yes}}
 
|}
 
|}
593行目: 808行目:
 
== 参照 ==
 
== 参照 ==
   
  +
Windows と Linux でペアリングを解除しないでデバイスを共有する方法:
Using the same device on Windows and Linux without pairing the device over and over again
 
   
* [http://ubuntuforums.org/showthread.php?p=9363229#post9363229 Dual booting with a Bluetooth keyboard]
+
* [https://ubuntuforums.org/showthread.php?p=9363229#post9363229 Dual booting with a Bluetooth keyboard]

2018年2月6日 (火) 23:54時点における版

関連記事

現在、Arch Linux のデフォルト環境ではリモートオーディオ再生の A2DP プロファイル (Audio Sink) をサポートしています。

ノート: Bluez5 は PulseAudio しかサポートしておらず ALSA はサポートしていません。PulseAudio を使いたくない場合は AUR から bluez-alsa-gitAUR をインストールする必要があります。

目次

Bluez5/PulseAudio

PulseAudio 5.x はデフォルトで A2DP をサポートしています。以下のパッケージをインストールしてください: pulseaudio-alsa, pulseaudio-bluetooth, bluez, bluez-libs, bluez-utils, bluez-firmwarepulseaudio-bluetooth がないとペアリングした後に接続することができなくなります。エラーメッセージは表示されません。

Bluetooth システムを起動:

# systemctl start bluetooth

bluetoothctl コマンドラインユーティリティを使うことでペアリングと接続が行えます。bluetoothctl に関する詳細やトラブルシューティングは Bluetooth の記事を見てください。次のコマンドを実行することでコマンドプロンプトを開きます:

# bluetoothctl

そして以下を入力:

# power on
# agent on
# default-agent
# scan on

ヘッドセットをペアリングモードにします。ヘッドセットは簡単に確認できます。例えば:

[NEW] Device 00:1D:43:6D:03:26 Lasmex LBT10

上記の場合、デバイスの名前は "Lasmex LBT10" で MAC アドレスは 00:1D:43:6D:03:26 です。この MAC アドレスを使ってペアリングを開始します:

# pair 00:1D:43:6D:03:26

ペアリングが完了したら、デバイスを明示的に接続する必要があります (every time?):

# connect 00:1D:43:6D:03:26

全てが上手くいけば、PulseAudio にアウトプットデバイスが新しく作られます。

ノート: デバイスはデフォルトではオフになっています。pavucontrol の "Configuration" タブでオーディオプロファイル (OFF, A2DP, HFP) を選択してください。

pavucontrol の "Playback" や "Recording" タブを使うことでデバイスに音声を転送することができます。

スキャンを無効化してプログラムを終了:

# scan off
# exit

自動接続の設定

ヘッドセットを自動接続するには、PulseAudio の switch-on-connect モジュールを有効にする必要があります。以下を追加してください:

/etc/pulse/default.pa
# automatically switch to newly-connected devices
load-module module-switch-on-connect

それから Bluetooth ヘッドセットを信頼するように bluetoothctl を使用しないと、以下のようなエラーが表示されます:

bluetoothd[487]: Authentication attempt without agent
bluetoothd[487]: Access denied: org.bluez.Error.Rejected
[bluetooth]# trust 00:1D:43:6D:03:26

再起動後、Bluetooth アダプタはデフォルトでは電源が入らないようになります。udev ルールを追加して電源を入れてください:

/etc/udev/rules.d/10-local.rules
# Set bluetooth power up
ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/usr/bin/hciconfig %k up"

トラブルシューティング

A2DP/Bluetooth ヘッドセットが動作しないという報告は多数存在します。

音声プロファイルを選択しても、ヘッドセットが機能せず音声が転送できない

一見、デバイスを接続する前に音声プロファイルが選択できるようにみえますが、残念ながら何の効果もありません。メニューはレシーバーがデバイスを認識するとすぐに作成されます。

bluetoothctl を (sudo あるいは root で) 実行して手動でデバイスを接続してください。毎回接続する手間を省くような設定オプションが存在するかもしれませんが、自動接続は上手くいきません。

AuthenticationFailed でペアリングが失敗する

ペアリングが失敗する場合、次のコマンドで SSPMode を無効化 してみてください:

# hciconfig hci0 sspmode 0

ペアリングは成功するが、接続が失敗する

bluetoothctl で以下のエラーが表示される場合:

[bluetooth]# connect 00:1D:43:6D:03:26
Attempting to connect to 00:1D:43:6D:03:26
Failed to connect: org.bluez.Error.Failed

以下のようなコマンドを使ってログを確認してみてください:

# systemctl status bluetooth
# journalctl -n 20

以下のようなメッセージが確認できる場合:

bluetoothd[5556]: a2dp-sink profile connect failed for 00:1D:43:6D:03:26: Protocol not available

おそらく pulseaudio-bluetooth パッケージがインストールされていないのが原因です。インストールしたら、pulseaudio を再起動してください。

パッケージが欠けていることが問題ではない場合、PulseAudio が上手く起動していないのが原因です。一般的に PulseAudio を再起動することで問題は解決します。PulseAudio をユーザーで実行している場合に bluetoothctl を root で実行することは全く問題ありません。PulseAudio の再起動後、接続を再試行してください。ペアリングを繰り返す必要はありません。

PulseAudio の再起動で問題が直らないときは、module-bluetooth-discover をロードしてください:

# pactl load-module module-bluetooth-discover

上記の load-module コマンドは /etc/pulse/default.pa に追加することができます。

それでも問題が修正されない場合、あるいは PulseAudio の system-wide モードを使っていない場合、以下の PulseAudio モジュールもロードしてください (以下のモジュールも default.pasystem.pa でロードすることができます):

module-bluetooth-policy
module-bluez5-device
module-bluez5-discover

接続は成功するが、音が聞こえない

システムログに以下のメッセージが記録されてないか確認してください:

bluetoothd[5556]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSource
bluetoothd[5556]: Endpoint registered: sender=:1.83 path=/MediaEndpoint/A2DPSink

上記のようなメッセージがある場合、PulseAudio の設定を確認してください。もしくは、一度戻って接続が成功するかどうか確かめてください。

GDM を使っている場合、PulseAudio のインスタンスが起動して、bluetooth デバイスの接続を奪っている可能性があります。以下のコマンドを実行して GDM ユーザーで pulseaudio ソケットをマスクすることで問題は解決します:

# mkdir -p ~gdm/.config/systemd/user
# ln -s /dev/null ~gdm/.config/systemd/user/pulseaudio.socket

再起動すれば PulseAudio のインスタンスが起動しなくなるはずです。

bluez がヘッドセットを a2dp に対応していると認識してくれない場合もあります。そのようなときは、以下のコマンドで bluetooth デバイスのインデックスを検索してください:

$ pacmd ls

以下のように bluetooth ヘッドセットに関連するセクションが出力されます:

pacmd ls
index: 2
        name: <bluez_card.XX_XX_XX_XX_XX_XX>
        driver: <module-bluez5-device.c>
        owner module: 27
        properties:
                device.description = "SONY MDR-100ABN"
                device.string = "XX:XX:XX:XX:XX:XX"
                device.api = "bluez"
                device.class = "sound"
                ...

プロファイルを手動で設定するには、以下のコマンドを実行 (2pacmd ls で確認したデバイスのインデックスに置き換えてください):

$ pacmd set-card-profile 2 a2dp_sink

UUIDs has unsupported type

ペアリング中に bluetoothctl で以下のような出力がされることがあります:

[CHG] Device 00:1D:43:6D:03:26 UUIDs has unsupported type

このメッセージは無視してかまいません。

PC からはデバイスがペアリング済みと認識されるがデバイスから PC が認識されていない

デバイスが bluetooth LE のペアリングに対応していない可能性があります。

/etc/bluetooth/main.confControllerMode = bredr を設定してみてください。詳しくは [1] を参照。

旧式の方法: ALSA-BTSCO

今日、bluez 3.16 以上では簡単に bluetooth ヘッドセットをセットアップすることができます。しかしながら このブログ にある古い python スクリプトを使用するという方法もあります (gconftool-2 で動作するようにスクリプトを編集してください)。また、同じ機能の bash スクリプトが こちら に存在します。

ヘッドセットの bdaddr が必要です。bdaddr は 12:34:56:78:9A:BC という形式になります。ヘッドセットのドキュメントを読んで探すか、hcitool scan コマンドを実行してください。

btscoAUR をインストールしてください。

次のコマンドでカーネルモジュールをロード:

# modprobe snd-bt-sco

これで新しい音声デバイスが作成されます。alsamixer -cN (N は基本的に 1 になります) を使ってボリュームを設定してください。BT headset デバイスを選択することで alsa 対応のアプリケーションからデバイスを使用することができます。あるいは OSS アプリケーションでは音声デバイスとして /dev/dspN を使用します。

実際に音を流すには、先にヘッドセットをコンピュータに接続する必要があります。

ヘッドセットを接続

初めてヘッドセットを接続する場合、まずペアリングのセクションを読んでください。ヘッドセットをコンピュータに接続するには、次のコマンドを使用します:

$ btsco -f <bdaddr>

例:

$ btsco -f 12:34:56:78:9A:BC

ヘッドセットとコンピュータをペアリング

ヘッドセットとの最初の接続時に、コンピュータとペアリングする必要があります。ペアリングするときは、ヘッドセットの PIN が必要です。使用するヘッドセットによっては、ヘッドセットをリセットする必要があり、別の bluetooth デバイスでヘッドセットを使うときは毎回ペアリングしなくてはなりません。

ヘッドセットとコンピュータをペアリングする方法は2つあります:

bluez-gnome を使う

community リポジトリから bluez-gnome パッケージをインストールしてください。そして bt-applet プログラムを起動してください。ヘッドセットに接続しようとすると、ウィンドウが開いて PIN を要求します。

passkey-agent を使う

ヘッドセットに接続する前に、次のコマンドを実行:

$ passkey-agent --default <pin>

<pin> はヘッドセットの PIN に置き換えてください。それからヘッドセットに接続してください。

ヘッドセットと ALSA デバイス

1. まず公式リポジトリから bluezインストールしてください。

2. デバイスをスキャン:

$ hcitool (-i <optional hci#>***) scan

3. ヘッドセットとデバイスをペアリング:

$ bluez-simple-agent (optional hci# ***) XX:XX:XX:XX:XX:XX

そして pin を入力 (0000 や 1234 など)。

4. /etc/bluetooth/audio.conf から A2DP Audio Sink を許可してください。[General] の下に以下の行を記述:

Enable=Source,Sink,Media,Socket

5. 以下を /etc/asound.conf ファイルに追加:

#/etc/asound.conf

pcm.btheadset {
   type plug
   slave {
       pcm {
           type bluetooth
           device XX:XX:XX:XX:XX:XX 
           profile "auto"
       }   
   }   
   hint {
       show on
       description "BT Headset"
   }   
}
ctl.btheadset {
  type bluetooth
}  

6. alsa デバイスに追加されたかどうか確認:

$ aplay -L

7. aplay で再生:

$ aplay -D btheadset /path/to/audio/file

または Mplayer を使用:

$ mplayer -ao alsa:device=btheadset /path/to/audio/or/video/file
ヒント: usb ドングルの hci# を確認するには、次を実行: $ hcitool dev

ヘッドセットのマルチメディアボタン

bluetooth ヘッドセットのマルチメディアボタン (再生・停止・次へ・前へ) を使うには、/etc/modules-load.d/uinput.conf を作成して uinput と記述する必要があります。

旧式の方法: PulseAudio

もっと簡単な方法です。PulseAudio はヘッドセットが有効になったときにシームレスに出力デバイスを切り替えます。サウンドサーバーとして ALSA を使っている場合、次のパッケージをインストールしてください: pulseaudiopulseaudio-alsa

bluetooth を使うように音声出力を設定するため、pavucontrol をインストールして実行してください:

$ pavucontrol

PulseAudio の設定については PulseAudio の記事を確認してください (特に KDE を使っている場合)。

トラブルシューティング

Audio sink fails

Bluetooth ヘッドセットを接続しても ALSA/PulseAudio が接続されたデバイスを使用しないことがあります。"Audio sink fails" と表示されます。gentoo wiki によれば、/etc/bluetooth/audio.conf[General] セクションの下に Enable=Socket が必要です。

設定したら # systemctl restart bluetooth を実行して適用してください。

Page timeout issue

bluez-simple-agent を使用してヘッドセットとシステムをペアリングしたときにこのエラーが表示される場合、システムを再起動してデスクトップ環境に付属している bluez のグラフィカルアプレットを使ってみてください。

旧式のドキュメント: ALSA, bluez5, PulseAudio の方法

ALSA, bluez5, PulseAudio を使うことでワイヤレス Bluetooth ヘッドセットで音声を再生することができます。以下の方法は Lenovo T61p ノートパソコンと SoundBot SB220 ワイヤレス bluetooth ヘッドセットで確認しています。大量のソフトウェアスタックが必要で、全てのソフトウェアがインストールされていないと謎のエラーが発生するかもしれません。以下のソフトウェアパッケージのリストは最小限必要なセットとは限りません。

Bluez5 にリグレッションが存在し HSP/HFP Telephone プロファイルを使うことができません。このリグレッションは Pulseaudio 5.0 のリリースノートのドラフト版 に次のように記述されています ("Notes for packagers"): "PulseAudio は BlueZ 5 をサポートしますが A2DP プロファイルだけです。HSP/HFP を使用するには BlueZ 4 が必要になります" (参照)。

ソフトウェアパッケージのインストール

中心となるソフトウェアコンポーネントは ALSA, Bluez5, PulseAudio です。ただし、他にも必要なライブラリが存在します。また、音声ファイルを再生するプレイヤーも必要です。以下のセクションではヘッドセットを接続してヘッドセットから音声を流すためにインストールする必要があるソフトウェアパッケージを記載しています。

ALSA と関連ライブラリのインストール

ALSA は Linux カーネルと一緒に動作してユーザーモードソフトウェアにオーディオサービスを提供します。Bluetooth ヘッドセットでは次のパッケージが使われます: alsa-utils, alsa-plugins, alsa-tools

Bluez5 のインストール

Bluez5 は最新の Bluetooth スタックです。PulseAudio で無線ヘッドセットを使うのに必要になります。必要なパッケージ: bluez, bluez-utils, bluez-libs

Audacious のインストール

Audacious は音声ファイルを再生するプログラムです。ALSAPulseAudio で直接機能します。必要なパッケージ: audacious, audacious-plugins

手順

必要なパッケージをインストールしたら、以下の手順で Bluetooth ヘッドセットを使うことができます。ヘッドセットをペアリングして、接続し、プレイヤーを設定して、PulseAudio を設定して、音声を流します。

bluetooth サービスを root で起動:

# systemctl start bluetooth

Bluetooth が起動したことを確認:

# systemctl status bluetooth
bluetooth.service - Bluetooth service
  Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled)
  Active: active (running) since Sat 2013-12-07 12:31:14 PST; 12s ago
    Docs: man:bluetoothd(8)
Main PID: 3136 (bluetoothd)
  Status: "Running"
  CGroup: /system.slice/bluetooth.service
          └─3136 /usr/lib/bluetooth/bluetoothd

Dec 07 12:31:14 t61p systemd[1]: Starting Bluetooth service...
Dec 07 12:31:14 t61p bluetoothd[3136]: Bluetooth daemon 5.11
Dec 07 12:31:14 t61p systemd[1]: Started Bluetooth service.
Dec 07 12:31:14 t61p bluetoothd[3136]: Starting SDP server
Dec 07 12:31:14 t61p bluetoothd[3136]: Bluetooth management interface 1.3 i...ed
Hint: Some lines were ellipsized, use -l to show in full.

PulseAudio デーモンを起動。X が起動してから通常ユーザーで実行してください:

$ pulseaudio -D

PulseAudio デーモンが動作していることを確認してください:

$ pulseaudio --check -v
I: [pulseaudio] main.c: Daemon running as PID 3186

Start up bluetoothctl as root and pair and connect your headset. As a regular user, bluetoothctl will pair but not connect. Perhaps this is related to the config file (shown below) which is setup for what appears to be the root user. Note: the procedure shown below is for an initial pair and connect of the headphone. If the headset is already paired, then the procedure below can be shortened to: power on, agent on, default-agent, connect <mac address>. The mac address can be seen from the devices command output.

 $ bluetoothctl 
 [NEW] Controller 00:1E:4C:F4:98:5B t61p-0 [default]
 [NEW] Device 00:1A:7D:12:36:B9 SoundBot SB220
 [bluetooth]# show
 Controller 00:1E:4C:F4:98:5B
       Name: t61p
       Alias: t61p-0
       Class: 0x000000
       Powered: no
       Discoverable: no
       Pairable: yes
       UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
       UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
       UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
       UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
       UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
       UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
       UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
       Modalias: usb:v1D6Bp0246d050B
       Discovering: no
 [bluetooth]# power on
 [CHG] Controller 00:1E:4C:F4:98:5B Class: 0x0c010c
 Changing power on succeeded
 [CHG] Controller 00:1E:4C:F4:98:5B Powered: yes
 [bluetooth]# agent on
 Agent registered
 [bluetooth]# default-agent
 Default agent request successful

<power on your headset in pairing mode. Eventually you will see what appears to be a mac address.>

 [bluetooth]# scan on
 Discovery started
 [CHG] Controller 00:1E:4C:F4:98:5B Discovering: yes
 [CHG] Device 00:1A:7D:12:36:B9 RSSI: -61
 [bluetooth]# pair 00:1A:7D:12:36:B9
 Attempting to pair with 00:1A:7D:12:36:B9
 [CHG] Device 00:1A:7D:12:36:B9 Connected: yes
 [CHG] Device 00:1A:7D:12:36:B9 UUIDs has unsupported type
 [CHG] Device 00:1A:7D:12:36:B9 Paired: yes
 Pairing successful
 [bluetooth]# connect 00:1A:7D:12:36:B9
 [CHG] Device 00:1A:7D:12:36:B9 Connected: yes
 Connection successful
 [bluetooth]# info 00:1A:7D:12:36:B9
 Device 00:1A:7D:12:36:B9
       Name: SoundBot SB220
       Alias: SoundBot SB220
       Class: 0x240404
       Icon: audio-card
       Paired: yes
       Trusted: no
       Blocked: no
       Connected: yes
       LegacyPairing: yes
       UUID: Headset                   (00001108-0000-1000-8000-00805f9b34fb)
       UUID: Audio Sink                (0000110b-0000-1000-8000-00805f9b34fb)
       UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
       UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
       UUID: Handsfree                 (0000111e-0000-1000-8000-00805f9b34fb)

Start up alsamixer, for simplicity un-mute all your outputs. Oddly enough some can be muted though. The ones I had muted during playback were:

  • Headphones
  • SPIDF

Start up audacious. Use the menu to select PulseAudio as your output. Somewhere I read that bluez5 requires pulseaudio-git and this jives with my experience.

Start up pavucontrol in a terminal. In the Outputs tab select the bluetooth headset.

screenshot of application settings

設定ファイル

For reference, these settings were also done.

ALSA の /etc/asound.conf

The settings shown at the top of this page was used, but the additional modification for Intel laptop sound cards.

pcm.btheadset {
  type plug
  slave {
    pcm {
      type bluetooth
      device 00:1A:7D:12:36:B9
      profile "auto"
    }
  }
  hint {
    show on
    description "BT Headset"
  }
}
ctl.btheadset {
  type bluetooth
}
options snd-hda-intel model=laptop
/etc/dbus-1/system.d/bluetooth.conf

The settings here seem to be enabled for root only. See the policy user="root" section. However, if a regular user is specified here, the system fails to start. Someone with more knowledge could explain why.

/etc/dbus-1/system.d/bluetooth.conf
<!-- This configuration file specifies the required security policies for Bluetooth core daemon to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
  "https://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- ../system.conf have denied everything, so we just punch some holes -->

  <policy user="root">
    <allow own="org.bluez"/>
    <allow send_destination="org.bluez"/>
    <allow send_interface="org.bluez.Agent1"/>
    <allow send_interface="org.bluez.MediaEndpoint1"/>
    <allow send_interface="org.bluez.MediaPlayer1"/>
    <allow send_interface="org.bluez.ThermometerWatcher1"/>
    <allow send_interface="org.bluez.AlertAgent1"/>
    <allow send_interface="org.bluez.Profile1"/>
    <allow send_interface="org.bluez.HeartRateWatcher1"/>
    <allow send_interface="org.bluez.CyclingSpeedWatcher1"/>
  </policy>

  <policy at_console="true">
    <allow send_destination="org.bluez"/>
  </policy>

  <!-- allow users of lp group (printing subsystem) to communicate with bluetoothd -->
  <policy group="lp">
    <allow send_destination="org.bluez"/>
  </policy>

  <policy context="default">
    <deny send_destination="org.bluez"/>
  </policy>

</busconfig>
テスト済みのアプリケーション

As noted above this will work easily with audacious. YouTube videos with Chromium and Flash Player will work on some videos. If the video has ads it will not work, but if the video does not have ads it will work. Just make sure that after audacious is working with Bluetooth headset, start Chromium, and navigate to YouTube. Find a video without leading ads, and it should play the audio. If the settings icon has the a menu with two drop-down combo boxes for Speed and Quality it will play.

HSV と A2DP の設定の切り替え

以下のコマンドを実行することで簡単に切り替えられます (2 は適切なデバイス番号に置き換えて下さい):

pacmd set-card-profile 2 a2dp_sink

PulseAudio で A2DP が動作しない

Socket インターフェイスの問題

bluez 4.1+ と PulseAudio 3.0+ を使っていて、PulseAudio でプロファイルを A2DP に切り替えられない場合、/etc/bluetooth/audio.conf を編集して Enable=Socket という行を削除して Disable=Socket という行を追加することで Socket インターフェイスを無効化できます。

Gnome と GDM

ノート: 以下は Gnome 3.16.2 と PulseAudio 7.0 で確認済みです。

GNOME と GDM を使っている場合にプロファイルを A2DP に変更すると PulseAudio が動作しなくなる場合、GDM が PulseAudio のインスタンスを起動しないように設定する必要があります。#接続は成功するが、音が聞こえないに書かれている修正を試してください。

ノート: この問題に関する議論は こちらこちら にあります。

Bluez5/bluez-alsa

以下の方法を使うのは PulseAudio を使えない、あるいは使いたくない場合に限ります。

まずはヘッドセットがペアリング・接続できることを確認してください。PulseAudio で bluetoothctl を使用するのと同じです。

bluez-alsa-gitAUR をインストールして bluealsa サービスを起動有効化してください。

/etc/dbus-1/system.d/bluetooth.conf ファイルを編集して以下を </busconfig> の前に追加してください:

<policy user="bluealsa">
  <allow send_destination="org.bluez"/>
</policy>

最後に bluealsa を使うために、使用しているユーザーを audio グループに追加してください。

以下のコマンドでヘッドセットをテストできます (MAC アドレスや音声ファイルは適当に置き換えてください):

$ aplay -D bluealsa:HCI=hci0,DEV=00:1D:43:6D:03:26,PROFILE=a2dp ./testme.wav

音が鳴るのであれば HCI, DEV, PROFILE をデフォルトに設定できます。以下を .asoundrc に追加してください:

defaults.bluealsa {
    interface "hci0"
    device "00:1D:43:6D:03:26"
    profile "a2dp"
}

これで bluealsa を使ってヘッドセットが使用できます。alsamixer を使ってボリュームを設定することもできます (alsamixer -D bluealsa)。

テスト済みのヘッドセット

機種 バージョン コメント 対応状況
Philips SHB3060 bluez 5.40, PulseAudio 9.0 ボタンが機能しません。対応プロファイル: HSP (マイクロフォンも動作) と A2DP。 Yes
Philips SHB4000WT bluez5 A2DP で動作、HDP は問題あり。 Yes
Philips SHB5500BK/00 bluez 5.28, PulseAudio 6.0 停止・再生が機能せず。 Limited
Philips SHB7000 停止・再生がおかしい。 Limited
Philips SHB7100 bluez 5.32, pulseaudio 6.0 次へ・前へボタンも動作。停止・再生は微妙 (VLC では動くこともあるが、Audacious では全く機能しない)。A2DP と Handsfree の音声出力のみで確認。マイクは機能せず。 Limited
Philips SHB7150 bluez 5.32, pulseaudio 6.0 次へ・前へボタンも動作。停止・再生は VLC では動作。A2DP プロファイルでのみ確認。 Yes
Philips SHB9100 停止・再生がおかしい。音質を改善する一時的な方法は [2] を参照。 Limited
Philips SHB9150 bluez5, pulseaudio 9 Yes
Philips AEA2000/12 bluez5 Yes
Parrot Zik マイクは認識されますが機能しません (HSP プロファイルは使えません)。Bluetooth 接続が切れると、音声に遅延が発生します。Bluetooth 接続を初期化することで解決します。 Limited
Parrot Zik 2.0 マイクは認識されますが機能しません (HSP プロファイルは使えません)。Bluetooth 接続が切れると、音声に遅延が発生します。Bluetooth 接続を初期化することで解決します。 Limited
Parrot Zik 3.0 マイクは認識されますが機能しません (HSP プロファイルは使えません)。遅延の問題はありません。 Limited
Sony DR-BT50 bluez{4,5} a2dp で動作。[3] を参照。アダプタ: D-Link DBT-120 USB ドングル。 Yes
Sony SBH20 bluez 5.30, pulseaudio 6.0 A2DP プロファイルで問題なく動作。 Yes
Sony SBH50 bluez5 a2dp で動作。アダプタ: Broadcom Bluetooth 2.1 Device (Vendor=0a5c ProdID=219b Rev=03.43)。btusb モジュールが必要。 Yes
Sony SBH80 bluez 5.36, pulseaudio 7.1 メディアボタンは機能せず。blueman でプロファイルを無効化して A2DP を有効化することで動作。 Yes
Sony MDR-XB950BT pulseaudio a2dp でテスト済み。アダプタ: Grand-X BT40G。自動で接続されない場合、手動で接続する必要があります。他の機能は問題なく動作。 Limited
Sony MDR-ZX330BT bluez 5.31, pulseaudio 6.0 何も設定しなくても動作 (HSP/HFP と A2DP)。ボタンは特定のアプリで動作。 Yes
Sony MUC-M1BT1 bluez5, pulseaudio-gitAUR A2DP & HSP/HFP どちらも問題なく動作。 Yes
SoundBot SB220 bluez5, pulseaudio-gitAUR Yes
Auna Air 300 bluez5, pulseaudio-git 何らかの理由で、再起動が必要ですが、それで問題なく起動します。 Limited
Sennheiser MM 400-X bluez5, pulseaudio 4.0-6 Yes
Sennheiser MM 550-X Travel bluez 5.27-1, pulseaudio 5.0-1 次・前ボタンは何も設定しなくても動作しますが、再生・停止ボタンは動作しません。 Yes
Sennheiser URBANITE XL Wireless bluez 5.37-2, pulseaudio 7.1-3 A2DP 高音質再生。再生・停止・次へ・前へも問題なく動作。 Yes
Sennheiser Momentum 2 bluez5, pulseaudio 9.0-1 GDM で起動できない問題を解決しないと A2DP プロファイルの変更に失敗することがあります。 Yes
Audionic BlueBeats (B-777) bluez5, pulseaudio 4.0-6 Yes
Logitech Wireless Headset bluez 5.14, pulseaudio-git 製造番号 PN 981-000381。iPad 用と喧伝されているヘッドセット。 Yes
Logitech UE9000 bluez 5.37, pulseaudio 7.1, gnome 3.18.2 gnome/gdm の修正をすることで再生可能。音声プロファイルのデフォルトは HSP/HFP。マイクは HSP/HFP と A2DP プロファイルのどちらでも動作。再生・停止や次へ・前へは Spotify や VLC で機能する。 Yes
HMDX Jam Classic Bluetooth bluez, pulseaudio-git Yes
PT-810 bluez 5.14, pulseaudio-git 汎用の USB 給電 Bluetooth 音声レシーバー。3.5mm ヘッドセットジャックと a2dp プロファイルで機能。"USB Bluetooth Receiver" ID として PT-810 は広く使えます。 Yes
Nokia BH-104 bluez4 Yes
Creative AirwaveHD bluez 5.23 Bluetooth アダプタ Atheros Communications usb: 0cf3:0036 Yes
Creative HITZ WP380 bluez 5.27, pulseaudio 5.0-1 A2DP プロファイルのみ。ボタンも動作 (再生, 停止, 次へ, 前へ)。ボリュームボタンはハードウェアのみ。自動接続もできるが bluetooth モジュールを "pulseaudio" に組み込んで自動的に切り替えさせる必要がある。ハイレゾ再生もクリア (デバイスとしては APTx コーデックをサポートしていますが Linux ではまだ対応されていません)。遅延の問題が発生するときは pulseaudio を再起動する必要あり。 Yes
deleyCON Bluetooth Headset bluez 5.23 アダプタ: CSL - USB nano Bluetooth-Adapter V4.0。a2dp プロファイルでテスト。マイクは未テスト。(ペアリングしても) 自動接続は行われないため、手動で接続する必要あり。再生/停止ボタンを押すとヘッドフォンがミュート/アンミュートになるが、再生には影響なし。次に進む/前に戻るボタンは動作せず (xev で変化なし)。 Limited
UE BOOM bluez 5.27, pulseaudio-git 5.99 最新の UE BOOM fw 1.3.58 にアップデート。動画再生における音声の遅延は pavucontrol を設定することで解決できる。UE BOOM x2 で動作。 Yes
LG HBS-730 bluez 5.30, pulseaudio 6.0 A2DP プロファイルで何も設定しなくても動作。 Yes
LG HBS-750 bluez 5.30, pulseaudio-git 6.0 A2DP プロファイルで何も設定しなくても動作。 Yes
Beats Studio Wireless bluez 5.28, pulseaudio 6.0 何も設定しなくても動作。マルチメディアボタンは未テスト。 Yes
AKG Y45BT bluez 5.30, pulseaudio 6.0 停止・再生が動作せず。/etc/bluetooth/audio.confEnable=Socket を、/etc/pulse/default.paload-module module-bluetooth-discover を設定する必要あり。 Yes
Bluedio Turbine/Turbine 2+ bluez 5.3, pulseaudio 6.0 HSP/HFP で動作、A2DP も問題なく動作。 Yes
Nokia BH-111 bluez 5.30, pulseaudio 6.0 HSP/HFP と A2DP どちらでも動作。ボタンは特定のアプリで動作。 Yes
Samsung Level Link bluez 5.33, pulseaudio 6.0 何も設定しなくても動作 (HSP/HFP と A2DP)。ボタンは特定のアプリで動作。 Yes
Bernafon Soundgate 3 bluez 5.34-2, pulseaudio 7.0-1 blueman-git 2.0.r53.g2a812a8-1 をインストールすることで動作 (A2DP)。 Yes
JBL E40 BT bluez 5.35, pulseaudio 7.0 blueberry と blueman をインストールすることで接続可能。Disable=Socket/etc/bluetooth/audio.conf に追加することで A2DP が動作。メディアボタンも動作。 Yes
JBL Everest 300 bluez 5.37, pulseaudio 8.0 全てが問題なく動作。HSP/HFP プロファイルでヘッドフォンを接続すると音質が悪いが、pavucontrol でプロファイルを A2DP sink に切り替えることで音質はかなり改善する。ペアリングに問題なし。 Yes
Kitsound Manhattan bluez 5.37, pulseaudio 7.13 全て問題なし。Pulseaudio をユーザーでなく root で ( --system) 動作させた場合、ペアリングしても接続できなかったり、(アクセス PIN を要求して) システムがフリーズしてしまう可能性あり。注意が必要。 Yes
Jawbone Jambox bluez 5.38, pulseaudio 8.0 Yes
Plantronics BackBeat FIT bluez5, pulseaudio 8.0 ヘッドセットと a2dp プロファイルどちらも完全に動作。停止ボタンでプレイヤーを停止できます (mpv で確認)。 Yes
Plantronics BackBeat Pro bluez5, pulseaudio 9.0 ヘッドセットと a2dp プロファイルどちらも完全に動作。停止ボタンを押したりヘッドセットを外すとプレイヤーが停止します。 Yes
Aukey EP-B26 bluez 5.39-1, pulseaudio 8.0-3 ヘッドセット (低品質) と a2dp (高品質) プロファイルどちらも完全に動作。停止ボタンでプレイヤーを停止したり、次・前ボタンで曲を変えられます。マイクは HSP/HFP モードでのみ動作。 Yes
Bose AE2 SoundLink bluez 5.36, pulseaudio 7.1 停止・再生ボタンが動作しません。マイクも使えません。 Limited
Bose QuietComfort 35 bluez 5.41, pulseaudio 9.0 ControllerMode=bredr を設定することでペアリングできます。 Yes
Blue Tiger Dual Elite bluez-5.42-1, pulseaudio 9.0-1 pulseaudio-bluetooth パッケージで接続できます。マイクや操作ボタンは未確認。 Yes

参照

Windows と Linux でペアリングを解除しないでデバイスを共有する方法: