GNOME Bluetoothが正常に動作しない

GNOME Bluetoothが正常に動作しない

Debian 8でBluetooth経由でヘッドフォンを接続したいです。端末で実行

systemctl enable bluetooth
systemctl start bluetooth

次に、gnome-bluetoothを使用してデバイスを表示して接続しようとします。 1秒も経過せず、接続が切断されるたびにデバイスの状態が「切断」になります。また、上記のコマンドを実行しないと、gnome-bluetoothでデバイスを表示できません。この問題をGoogleで検索してみると、この問題は一般的なようですが、解決策が見つかりませんでした。

これはlsusbの出力です:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b3d5 Chicony Electronics Co., Ltd 
Bus 001 Device 009: ID 13d3:3393 IMC Networks 
Bus 001 Device 005: ID 1004:631c LG Electronics, Inc. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

答え1

私は解決策を見つけましたが、なぜこれが起こるのかわかりません。

sudo apt-get install pulseaudio-module-bluetooth

システムを再起動します。

sudo systemctl start bluetooth.service

次に、Bluetooth GUIユーティリティを開き、Bluetoothが「オン」に設定されていることを確認してください。

端子タイプ

Bluetoothコントロール

コマンドを確認してください

展示する

実際に次のようなものを示しています

Name: debiansystem
Alias: debiansystem
Class: 0x0c010c
Powered: yes
Discoverable: yes
Pairable: yes
...

今すぐデバイスを信頼し、ペアリングして接続します。

少なくとも私にはこれが効果がある

答え2

私はBluetoothとDebian 8で同じ問題に遭遇し、多くのことを試しましたが、gnome-bluetoothは機能しませんでした。私はこのページの指示に従いました。https://wiki.debian.org/BluetoothUser/a2dpだから私はそうでした。

sudo apt-get install pulseaudio pulseaudio-module-bluetooth pavucontrol bluez-firmware

それから

systemctl restart bluetooth

私はgnome-bluetoothを持っていますが、それはうまくいかなかったのでblueman-appletをインストールしました。

apt-get install blueman

その後、インストールしたBluetoothマネージャプログラムを開き(gnome-bluetoothがオフになっていることを確認して)、それでBluetoothスピーカーをペアリングできました。唯一の欠けているステップは、設定でサウンドをオンにし、Bluetoothスピーカーを出力として選択することでした。

役に立ったことを願っています!

答え3

私も問題がありましたが、SELinuxを無効にすることで問題が解決されました。

# First check if this is even your problem, is SELinux enabled?
getenforce

# If the above created the output of '1', then this could very
# well be your problem.. keep reading.

# Disable SELinux
setenforce 0

# Restart bluetooth
systemctl restart bluetooth

必要に応じて、この手順を停止できます(デバイスを接続して使用)。ただし、後でこの問題を解決するには、SELinuxライブラリを内部的に更新して再度有効にすることが正しい解決策です。

# Create your own module
grep bluetooth /var/log/audit/audit.log | audit2allow -M mybluetooth

# Install it now:
semodule -i mybluetooth.pp

# Now safely re-enable SELinux:
setenforce 1

私の場合、以下の項目が原因でした。

type=AVC msg=audit(1522596590.758:103): avc:  denied  { mounton } for  pid=999 comm="(uetoothd)" path="/var/lib/bluetooth" dev="dm-0" ino=2362849 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:bluetooth_var_lib_t:s0 tclass=dir permissive=0

関連情報