[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:57388] Re: run PulseAudio as system-wide daemon
こんにちは
松尾です。
a2dp-sink profile connect failed for 00:1D:DF:5E:EB:7F: Protocol not
available
とログを出してきていますが、
実はdbus関連に問題があるのでは?と予想しました。
そこで、dbus周りに手を入れてみました
/etc/dbus-1/system.d/bluetooth.conf に次を追加
---8<------8<---
<policy user="pulse">
<allow send_destination="org.bluez"/>
</policy>
---8<------8<---
/etc/dbus-1/system.d/pulseaudio-system.conf に次を追加
---8<------8<---
<policy user="root">
<allow send_destination="org.bluez"/>
</policy>
---8<------8<---
pulseaudio のユーザーは pulse、
bluetoothd のユーザーは root です。
この状態で bluetoothctl でBTスピーカーに接続しようとします。
---8<------8<---
[bluetooth]# devices
Device 00:1D:DF:5E:EB:7F SC-MC10
[bluetooth]# connect 00:1D:DF:5E:EB:7F
Attempting to connect to 00:1D:DF:5E:EB:7F
[CHG] Device 00:1D:DF:5E:EB:7F Connected: yes
Failed to connect: org.bluez.Error.Failed
[CHG] Device 00:1D:DF:5E:EB:7F Connected: no
[CHG] Device 00:1D:DF:5E:EB:7F Connected: yes
[CHG] Device 00:1D:DF:5E:EB:7F Connected: no
---8<------8<---
この時のsyslogが次のようになりました
---8<------8<---
Nov 11 01:38:10 s70 systemd-udevd[199]: Network interface NamePolicy=
disabled on kernel commandline, ignoring.
Nov 11 01:38:10 s70 bluetoothd[946]: connect error: Permission denied (13)
Nov 11 01:38:10 s70 bluetoothd[946]: (bluetoothd:946): GLib-CRITICAL **:
Source ID 110 was not found when attempting to remove it
Nov 11 01:38:12 s70 systemd[1369]: Time has been changed
Nov 11 01:38:12 s70 kernel: [ 294.017761] ------------[ cut here
]------------
Nov 11 01:38:12 s70 kernel: [ 294.017782] WARNING: CPU: 1 PID: 423 at
/build/linux-i5neKT/linux-3.16.5/net/bluetooth/hci_conn.c:296
hci_conn_timeout+0x4a/0x280 [bluetooth]()
Nov 11 01:38:12 s70 kernel: [ 294.017783] Modules linked in:
xt_multiport iptable_filter cpufreq_powersave cpufreq_stats
cpufreq_conservative cpufreq_userspace vhost_net vhost macvtap macvlan
bnep binfmt_misc bridge stp llc tun ipt_MASQUERADE xt_REDIRECT xt_tcpudp
iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat
nf_conntrack ip_tables x_tables intel_powerclamp coretemp kvm_intel kvm
ecb snd_hda_codec_realtek snd_hda_codec_generic btusb bluetooth
snd_hda_intel pt1_drv(O) snd_hda_controller 6lowpan_iphc rfkill
pt3_drv(O) evdev crc32_pclmul i915 ghash_clmulni_intel aesni_intel
snd_hda_codec iTCO_wdt snd_hwdep snd_pcm snd_timer iTCO_vendor_support
snd aes_x86_64 soundcore pcspkr tpm_infineon lrw tpm_tis drm_kms_helper
tpm gf128mul drm psmouse glue_helper ablk_helper cryptd video
i2c_algo_bit acpi_cpufreq i2c_i801 i2c_core lpc_ich processor mfd_core
shpchp button serio_raw thermal_sys loop fuse parport_pc ppdev lp
parport autofs4 ext4 crc16 mbcache jbd2 dm_mod sg sr_mod sd_mod
crc_t10dif cdrom crct10dif_generic ata_generic crct10dif_pclmul
crct10dif_common crc32c_intel ata_piix libata ehci_pci ehci_hcd scsi_mod
e1000e usbcore ptp usb_common pps_core
Nov 11 01:38:12 s70 kernel: [ 294.017831] CPU: 1 PID: 423 Comm:
kworker/u9:0 Tainted: G W O 3.16-3-amd64 #1 Debian 3.16.5-1
Nov 11 01:38:12 s70 kernel: [ 294.017832] Hardware name: NEC
Express5800/S70 [N8100-9021]/MS9666 , BIOS 1.0.0024 11/01/2010
Nov 11 01:38:12 s70 kernel: [ 294.017837] Workqueue: hci0
hci_conn_timeout [bluetooth]
Nov 11 01:38:12 s70 kernel: [ 294.017838] 0000000000000009
ffffffff815066c3 0000000000000000 ffffffff81065717
Nov 11 01:38:12 s70 kernel: [ 294.017840] ffff880270af48b8
00000000ffffffff ffff880270af4800 ffff88026e5b3400
Nov 11 01:38:12 s70 kernel: [ 294.017841] 0000000000000000
ffffffffa056ec7a ffff880264731840 ffff880270af48b8
Nov 11 01:38:12 s70 kernel: [ 294.017843] Call Trace:
Nov 11 01:38:12 s70 kernel: [ 294.017849] [<ffffffff815066c3>] ?
dump_stack+0x41/0x51
Nov 11 01:38:12 s70 kernel: [ 294.017853] [<ffffffff81065717>] ?
warn_slowpath_common+0x77/0x90
Nov 11 01:38:12 s70 kernel: [ 294.017858] [<ffffffffa056ec7a>] ?
hci_conn_timeout+0x4a/0x280 [bluetooth]
Nov 11 01:38:12 s70 kernel: [ 294.017862] [<ffffffff8107f4b2>] ?
process_one_work+0x172/0x420
Nov 11 01:38:12 s70 kernel: [ 294.017864] [<ffffffff8107fb45>] ?
worker_thread+0x115/0x520
Nov 11 01:38:12 s70 kernel: [ 294.017866] [<ffffffff8107fa30>] ?
rescuer_thread+0x2d0/0x2d0
Nov 11 01:38:12 s70 kernel: [ 294.017868] [<ffffffff81085ddd>] ?
kthread+0xbd/0xe0
Nov 11 01:38:12 s70 kernel: [ 294.017869] [<ffffffff81085d20>] ?
kthread_create_on_node+0x180/0x180
Nov 11 01:38:12 s70 kernel: [ 294.017872] [<ffffffff8150c6fc>] ?
ret_from_fork+0x7c/0xb0
Nov 11 01:38:12 s70 kernel: [ 294.017873] [<ffffffff81085d20>] ?
kthread_create_on_node+0x180/0x180
Nov 11 01:38:12 s70 kernel: [ 294.017874] ---[ end trace
cd5c5899c1e4546a ]---
Nov 11 01:38:13 s70 bluetoothd[946]: connect error: Permission denied (13)
Nov 11 01:38:14 s70 kernel: [ 296.558271] ------------[ cut here
]------------
Nov 11 01:38:14 s70 kernel: [ 296.558291] WARNING: CPU: 1 PID: 437 at
/build/linux-i5neKT/linux-3.16.5/net/bluetooth/hci_conn.c:296
hci_conn_timeout+0x4a/0x280 [bluetooth]()
Nov 11 01:38:14 s70 kernel: [ 296.558292] Modules linked in:
xt_multiport iptable_filter cpufreq_powersave cpufreq_stats
cpufreq_conservative cpufreq_userspace vhost_net vhost macvtap macvlan
bnep binfmt_misc bridge stp llc tun ipt_MASQUERADE xt_REDIRECT xt_tcpudp
iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat
nf_conntrack ip_tables x_tables intel_powerclamp coretemp kvm_intel kvm
ecb snd_hda_codec_realtek snd_hda_codec_generic btusb bluetooth
snd_hda_intel pt1_drv(O) snd_hda_controller 6lowpan_iphc rfkill
pt3_drv(O) evdev crc32_pclmul i915 ghash_clmulni_intel aesni_intel
snd_hda_codec iTCO_wdt snd_hwdep snd_pcm snd_timer iTCO_vendor_support
snd aes_x86_64 soundcore pcspkr tpm_infineon lrw tpm_tis drm_kms_helper
tpm gf128mul drm psmouse glue_helper ablk_helper cryptd video
i2c_algo_bit acpi_cpufreq i2c_i801 i2c_core lpc_ich processor mfd_core
shpchp button serio_raw thermal_sys loop fuse parport_pc ppdev lp
parport autofs4 ext4 crc16 mbcache jbd2 dm_mod sg sr_mod sd_mod
crc_t10dif cdrom crct10dif_generic ata_generic crct10dif_pclmul
crct10dif_common crc32c_intel ata_piix libata ehci_pci ehci_hcd scsi_mod
e1000e usbcore ptp usb_common pps_core
Nov 11 01:38:14 s70 kernel: [ 296.558339] CPU: 1 PID: 437 Comm:
kworker/u9:2 Tainted: G W O 3.16-3-amd64 #1 Debian 3.16.5-1
Nov 11 01:38:14 s70 kernel: [ 296.558340] Hardware name: NEC
Express5800/S70 [N8100-9021]/MS9666 , BIOS 1.0.0024 11/01/2010
Nov 11 01:38:14 s70 kernel: [ 296.558344] Workqueue: hci0
hci_conn_timeout [bluetooth]
Nov 11 01:38:14 s70 kernel: [ 296.558345] 0000000000000009
ffffffff815066c3 0000000000000000 ffffffff81065717
Nov 11 01:38:14 s70 kernel: [ 296.558347] ffff88026fcd30b8
00000000ffffffff ffff88026fcd3000 ffff88026e5b3400
Nov 11 01:38:14 s70 kernel: [ 296.558348] 0000000000000000
ffffffffa056ec7a ffff8800a291db80 ffff88026fcd30b8
Nov 11 01:38:14 s70 kernel: [ 296.558350] Call Trace:
Nov 11 01:38:14 s70 kernel: [ 296.558356] [<ffffffff815066c3>] ?
dump_stack+0x41/0x51
Nov 11 01:38:14 s70 kernel: [ 296.558360] [<ffffffff81065717>] ?
warn_slowpath_common+0x77/0x90
Nov 11 01:38:14 s70 kernel: [ 296.558364] [<ffffffffa056ec7a>] ?
hci_conn_timeout+0x4a/0x280 [bluetooth]
Nov 11 01:38:14 s70 kernel: [ 296.558368] [<ffffffff8107f4b2>] ?
process_one_work+0x172/0x420
Nov 11 01:38:14 s70 kernel: [ 296.558369] [<ffffffff8107fb45>] ?
worker_thread+0x115/0x520
Nov 11 01:38:14 s70 kernel: [ 296.558372] [<ffffffff81508ad1>] ?
__schedule+0x2b1/0x710
Nov 11 01:38:14 s70 kernel: [ 296.558374] [<ffffffff8107fa30>] ?
rescuer_thread+0x2d0/0x2d0
Nov 11 01:38:14 s70 kernel: [ 296.558376] [<ffffffff81085ddd>] ?
kthread+0xbd/0xe0
Nov 11 01:38:14 s70 kernel: [ 296.558377] [<ffffffff81085d20>] ?
kthread_create_on_node+0x180/0x180
Nov 11 01:38:14 s70 kernel: [ 296.558379] [<ffffffff8150c6fc>] ?
ret_from_fork+0x7c/0xb0
Nov 11 01:38:14 s70 kernel: [ 296.558381] [<ffffffff81085d20>] ?
kthread_create_on_node+0x180/0x180
Nov 11 01:38:14 s70 kernel: [ 296.558382] ---[ end trace
cd5c5899c1e4546b ]---
Nov 11 01:38:15 s70 systemd-udevd[199]: Network interface NamePolicy=
disabled on kernel commandline, ignoring.
---8<------8<---
bluetoothdとpulseaudioで通信がうまくできていないのではないかと
予想しているのですが…。
raspberry piなどでは
pulseaudio を system wide でつかって、
bluetoothスピーカーも使う人もいると思うのですが
なかなか情報を見つけることができません。
どなたかアドバイスいただけないでしょうか?
よろしくお願いします。
---8<------8<------8<---
# bluetoothctl
[NEW] Controller 00:1B:DC:03:85:4F s70-0 [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller 00:1B:DC:03:85:4F Discovering: yes
[NEW] Device 00:1D:DF:5E:EB:7F SC-MC10
[CHG] Device 00:1D:DF:5E:EB:7F RSSI: -68
[CHG] Device 00:1D:DF:5E:EB:7F RSSI: -76
[bluetooth]# pair 00:1D:DF:5E:EB:7F
Attempting to pair with 00:1D:DF:5E:EB:7F
[CHG] Device 00:1D:DF:5E:EB:7F Connected: yes
[CHG] Device 00:1D:DF:5E:EB:7F UUIDs:
0000110b-0000-1000-8000-00805f9b34fb
0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 00:1D:DF:5E:EB:7F Paired: yes
Pairing successful
[CHG] Device 00:1D:DF:5E:EB:7F Connected: no
[CHG] Device 00:1D:DF:5E:EB:7F Connected: yes
[CHG] Device 00:1D:DF:5E:EB:7F Connected: no
[bluetooth]# scan off
[CHG] Device 00:1D:DF:5E:EB:7F RSSI is nil
[CHG] Controller 00:1B:DC:03:85:4F Discovering: no
Discovery stopped
[bluetooth]# trust 00:1D:DF:5E:EB:7F
[CHG] Device 00:1D:DF:5E:EB:7F Trusted: yes
Changing 00:1D:DF:5E:EB:7F trust succeeded
[bluetooth]# connect 00:1D:DF:5E:EB:7F
Attempting to connect to 00:1D:DF:5E:EB:7F
Failed to connect: org.bluez.Error.Failed
---8<------8<------8<---
syslog
---8<------8<------8<---
Nov 6 10:24:23 s70 bluetoothd[539]: a2dp-sink profile connect failed
for 00:1D:DF:5E:EB:7F: Protocol not available
---8<------8<------8<---
---
このEメールはアバスト アンチウイルスによりウイルススキャンされています。
http://www.avast.com