View previous topic :: View next topic |
Author |
Message |
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 10:14 am Post subject: Sound from headphone/mic 3.5mm socket on bluetooth headset |
|
|
I'm trying to get sound which I'm getting trough 3.5mm headphone/mic socket on notebook played on my connected bluetooth headset. How to accomplish that on Gentoo/Xfce? I'm using Pulseaudio/pavucontrol/bluez/blueman-applet. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Tue Sep 18, 2018 11:32 am Post subject: |
|
|
gmaksim,
You will have several sound devices.
Code: | cat /proc/asound/devices | will list them.
I suspect that your bluetooth headset is not the default sound card, that's always card 0.
To use a non default sound card, you need to tell the app you are using or make the right sound card the default.
Pulseaudio may get in the way as its a wrapper around the sound system.
What you need to do depends on the ease of switching you require. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 11:34 am Post subject: |
|
|
cat /proc/asound/devices
2: [29] : control
3: [ 0] : control
4: [ 0- 0]: digital audio playback
5: [ 0- 0]: digital audio capture
6: [ 0- 3]: digital audio playback
7: [ 0- 7]: digital audio playback
8: [ 0- 8]: digital audio playback
9: [ 0- 0]: hardware dependent
10: [ 0- 3]: hardware dependent
33: : timer |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Tue Sep 18, 2018 11:43 am Post subject: |
|
|
gmaksim,
Do you have a driver installed for your bluetooth audio device?
Code: | 2: [29] : control
3: [ 0] : control |
It has a control node but no playback nodes.
The other entries are your default sound card.
Code: | 6: [ 0- 3]: digital audio playback
10: [ 0- 3]: hardware dependent | That's very odd too.
The first number is the device minor number in /dev/snd.
The 0-3 is the sound card and device on the sound card. This says that the same device has two different functions and two different minor numbers. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 11:48 am Post subject: |
|
|
I don't know I paired my bluetooth headphones using blueman-applet. I am a beginner in Linux so could you guide me a little bit? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Tue Sep 18, 2018 5:00 pm Post subject: |
|
|
gmaksim,
There are lots of layers of software an work here.
Pairing means that the bluetooth layer is doing its thing. That's required but not sufficient.
Please post your dmesg output to a pastebin. wgetpaste is your friend.
and post the output of if you don't have that command yet, its a part of pciutils. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Tue Sep 18, 2018 6:22 pm Post subject: |
|
|
gmaksim,
Code: | [ 14.305929] Bluetooth: Core ver 2.22
...
[ 14.305950] Bluetooth: HCI device and connection manager initialized
[ 14.305954] Bluetooth: HCI socket layer initialized
[ 14.305956] Bluetooth: L2CAP socket layer initialized
[ 14.305967] Bluetooth: SCO socket layer initialized
...
[ 15.153124] Bluetooth: hci0: BCM: chip id 63
[ 15.154121] Bluetooth: hci0: BCM: features 0x07
[ 15.170131] Bluetooth: hci0: BCM20702A
[ 15.171127] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000
[ 15.273737] bluetooth hci0: Direct firmware load for brcm/BCM20702A1-0a5c-21e6.hcd failed with error -2
[ 15.273741] Bluetooth: hci0: BCM: Patch brcm/BCM20702A1-0a5c-21e6.hcd not found |
That's all good until the last two lines.
Root is mounted read only at
Code: | [ 6.018797] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null) |
You need to find the file BCM20702A1-0a5c-21e6.hcd and put it into /lib/firmware/brcm/ so that the kernel can load it. Google knows of several sources, choose one that you like.
As its a patch, bluetooth may work without it. Do you have any other bluetooth devices to test with? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 6:39 pm Post subject: |
|
|
No. Unfortunately because I have several headphones of same type that I use when battery gets low on one I connect another. And what about this root as read-only? What does that affect? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Tue Sep 18, 2018 6:58 pm Post subject: |
|
|
gmaksim,
Root is mounted read only at first to allow rootfsck to be run. Once that passes root is remounted read write.
Its normal behaviour.
The significance here is that firmware cannot be loaded from /lib/firmware until root is available read only.
The timing of root being read only and your bluetooth starting up shows that /lib/firmware can be read when its needed.
Were bluetooth to be started before root was read only, /lib/firmware would not be available and the firmware would have to be built into the kernel.
The significance is where brcm/BCM20702A1-0a5c-21e6.hcd goes so its available when bluetooth starts. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 7:26 pm Post subject: |
|
|
After copying patch now I don't have any bluetooth adapter if blueman gives correct info. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 7:50 pm Post subject: |
|
|
I deleted the file you mentioned to copy to /lib/firmware/... and installed BlueZ-firmware for Broadcom bluetooth adapters. Now I have again bluetooth adapter working and this is DMESG output:
https://pastebin.com/PA4GfnQt
If this is ok, where to go from that? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54096 Location: 56N 3W
|
Posted: Tue Sep 18, 2018 7:58 pm Post subject: |
|
|
gmaksim,
Have you found the Wiki Page? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
Posted: Tue Sep 18, 2018 8:07 pm Post subject: |
|
|
Yes. I have seen that but I can’t say that is something that applies to what I’m trying to accomplish. I use pulseaudio with bluez and control it by pavucontrol and I want to redirect sound which is going trough microphone socket on notebook to connected bluetooth headphones. So far I haven’t found that someone explaind on Internet how to acomplish that?! |
|
Back to top |
|
|
gmaksim n00b
Joined: 16 Jun 2005 Posts: 31 Location: Croatia
|
|
Back to top |
|
|
|