[pulseaudio-tickets] [Bug 97064] No audio stream from headset in HSP/HFP mode
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Aug 15 19:50:36 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=97064
--- Comment #4 from Tanu Kaskinen <tanuk at iki.fi> ---
I would guess that this isn't a pulseaudio bug, the device (or the kernel
driver) is probably just not producing any audio for some reason. But we can
try to get some more information from logs.
First, prevent automatic starting of pulseaudio and bluetoothd. For pulseaudio,
I'm not sure if gentoo uses systemd or not to manage pulseaudio. If it does,
then run commands
systemctl --user disable pulseaudio.service pulseaudio.socket
systemctl --user stop pulseaudio.service pulseaudio.socket
To undo this later, use these commands:
systemctl --user enable pulseaudio.socket
systemctl --user start pulseaudio.socket
If gentoo doesn't use systemd with pulseaudio, put "autospawn = no" to
~/.config/pulse/client.conf. (To undo this later, remove that setting.) Then,
run "killall pulseaudio".
Now pulseaudio shouldn't be running, and "pactl info" should say "Connection
refused".
To disable bluetoothd, I think these commands should do the trick:
sudo systemctl disable bluetooth.service
sudo systemctl stop bluetooth.service
To undo this later, use these commands:
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
Now bluetoothd shouldn't be running.
Next, start the daemons in terminals. First, start bluetoothd with
sudo /usr/lib/bluetooth/bluetoothd --debug --nodetach
(The path might also start with /usr/lib64, I'm not familiar with the gentoo
file system layout.)
Then, start pulseaudio in another terminal with
LANG=C pulseaudio --log-time -vv
Then, connect the headset, and set the profile to "off" with this command:
pactl set-card-profile bluez_card.00_16_94_15_49_C8 off
Now, hit enter a few times in the bluetoothd and pulseaudio terminals. This
helps with visually separating the interesting parts.
Then, switch to the HSP profile:
pactl set-card-profile bluez_card.00_16_94_15_49_C8 headset_head_unit
Hit enter again a few times in the bluetoothd and pulseaudio terminals.
Then, try to record something with parecord:
parecord -v --device=bluez_source.00_16_94_15_49_C8 /dev/null
Hit enter again a few times in the bluetoothd and pulseaudio terminals.
Normally, parecord should update the time and latency that are shown on the
last line, but I guess in this case both stay at zero?
Now the experiments are done. You can stop parecord with ctrl-c, and bluetoothd
and pulseaudio likewise. Copy the bluetoothd and pulseaudio logs from the
terminals to files and attach the files to this bug.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20160815/48cf5965/attachment.html>
More information about the pulseaudio-bugs
mailing list