Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bluez-5.47-r1 and PA audio source connected to AVR sink
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1133

PostPosted: Mon Nov 27, 2017 6:00 pm    Post subject: bluez-5.47-r1 and PA audio source connected to AVR sink Reply with quote

Hi All,

I've tried to set up a Gentoo laptop as audio source to play music out of an AVR which accepts bluetooth as input. I am able to connect with bluetooth to the AVR using bluetoothctl. However, I am not able to play music with VLC and make it come out of the AVR speakers.

I suspect this is a pulseaudio/alsa issue, but I am not sure how to trouble shoot it. I've tried various things like installing bluealsa, which didn't help. Then installed media-sound/pulseaudio-10.0:

Code:
Installed versions:  10.0(14:42:38 11/21/17)(X alsa alsa-plugin asyncns bluetooth caps dbus gdbm glib ipv6 orc ssl tcpd udev webrtc-aec -doc -equalizer -gnome -gtk -jack -libressl -libsamplerate -lirc -native-headset -neon -ofono-headset -oss -qt4 -realtime -selinux -sox -system-wide -systemd -test -zeroconf ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")


and added in /etc/bluetooth/main.conf:
Code:
[General]
Enable=Control,Gateway,Headset,Media,Sink,Socket,Source


VLC does not show a bluetooth audio device to play sound with, while pactl lists the following:
Code:
Module #0
        Name: module-device-restore
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute state of devices"
                module.version = "10.0"

Module #1
        Name: module-stream-restore
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute/device state of streams"
                module.version = "10.0"

Module #2
        Name: module-card-restore
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore profile of cards"
                module.version = "10.0"

Module #3
        Name: module-augment-properties
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Augment the property sets of streams with additional static information"
                module.version = "10.0"

Module #4
        Name: module-switch-on-port-available
        Argument:
        Usage counter: n/a
        Properties:
               

Module #5
        Name: module-udev-detect
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Detect available audio hardware and load matching drivers"
                module.version = "10.0"

Module #6
        Name: module-alsa-card
        Argument: device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1"
        Usage counter: 0
        Properties:
                module.author = "Lennart Poettering"
                module.description = "ALSA Card"
                module.version = "10.0"

Module #7
        Name: module-bluetooth-policy
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Frédéric Dalleau, Pali Rohár"
                module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
                module.version = "10.0"

Module #8
        Name: module-bluetooth-discover
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "João Paulo Rechi Vita"
                module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
                module.version = "10.0"

Module #9
        Name: module-bluez5-discover
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "João Paulo Rechi Vita"
                module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
                module.version = "10.0"

Module #10
        Name: module-native-protocol-unix
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Native protocol (UNIX sockets)"
                module.version = "10.0"

Module #11
        Name: module-default-device-restore
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the default sink and source"
                module.version = "10.0"

Module #12
        Name: module-rescue-streams
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is removed, try to move its streams to the default sink/source"
                module.version = "10.0"

Module #13
        Name: module-always-sink
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Colin Guthrie"
                module.description = "Always keeps at least one sink loaded even if it's a null one"
                module.version = "10.0"

Module #14
        Name: module-intended-roles
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically set device of streams based on intended roles of devices"
                module.version = "10.0"

Module #15
        Name: module-suspend-on-idle
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is idle for too long, suspend it"
                module.version = "10.0"

Module #16
        Name: module-console-kit
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Create a client for each ConsoleKit session of this user"
                module.version = "10.0"

Module #17
        Name: module-position-event-sounds
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
                module.version = "10.0"

Module #18
        Name: module-role-cork
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Lennart Poettering"
                module.description = "Mute & cork streams with certain roles while others exist"
                module.version = "10.0"

Module #19
        Name: module-filter-heuristics
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Colin Guthrie"
                module.description = "Detect when various filters are desirable"
                module.version = "10.0"

Module #20
        Name: module-filter-apply
        Argument:
        Usage counter: n/a
        Properties:
                module.author = "Colin Guthrie"
                module.description = "Load filter sinks automatically when needed"
                module.version = "10.0"

Module #23
        Name: module-bluez5-device
        Argument: path=/org/bluez/hci0/dev_C8_FD_19_78_F5_C5
        Usage counter: 0
        Properties:
                module.author = "João Paulo Rechi Vita"
                module.description = "BlueZ 5 Bluetooth audio sink and source"
                module.version = "10.0"

Sink #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1b.0.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "Generic Analog"
                alsa.id = "Generic Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xf4700000 irq 29"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "293e"
                device.product.name = "82801I (ICH9 Family) HD Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Realtek Generic"
                alsa.components = "HDA:10ec0272,10250207,00100001"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-speaker: Speakers (priority: 10000)
                analog-output-headphones: Headphones (priority: 9000, not available)
        Active Port: analog-output-speaker
        Formats:
                pcm

Sink #3
        State: SUSPENDED
        Name: bluez_sink.C8_FD_19_78_F5_C5.a2dp_sink
        Description: RX-V583 FC4BE2 Bluetooth
        Driver: module-bluez5-device.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 23
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor Source: bluez_sink.C8_FD_19_78_F5_C5.a2dp_sink.monitor
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE DECIBEL_VOLUME LATENCY
        Properties:
                bluetooth.protocol = "a2dp_sink"
                device.description = "RX-V583 FC4BE2 Bluetooth"
                device.string = "C8:FD:19:78:F5:C5"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "speaker"
                bluez.path = "/org/bluez/hci0/dev_C8_FD_19_78_F5_C5"
                bluez.class = "0x240414"
                bluez.alias = "RX-V583 FC4BE2 Bluetooth"
                device.icon_name = "audio-speakers-bluetooth"
        Ports:
                speaker-output: Speaker (priority: 0)
        Active Port: speaker-output
        Formats:
                pcm

Source #0
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
        Description: Monitor of Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor of Sink: alsa_output.pci-0000_00_1b.0.analog-stereo
        Latency: 0 usec, configured 0 usec
        Flags: DECIBEL_VOLUME LATENCY
        Properties:
                device.description = "Monitor of Built-in Audio Analog Stereo"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xf4700000 irq 29"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "293e"
                device.product.name = "82801I (ICH9 Family) HD Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Formats:
                pcm

Source #1
        State: SUSPENDED
        Name: alsa_input.pci-0000_00_1b.0.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: module-alsa-card.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 6
        Mute: yes
        Volume: front-left: 11002 /  17% / -46.50 dB,   front-right: 11002 /  17% / -46.50 dB
                balance 0.00
        Base Volume: 20724 /  32% / -30.00 dB
        Monitor of Sink: n/a
        Latency: 0 usec, configured 0 usec
        Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
        Properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "Generic Analog"
                alsa.id = "Generic Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xf4700000 irq 29"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "293e"
                device.product.name = "82801I (ICH9 Family) HD Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "65536"
                device.buffering.fragment_size = "32768"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Realtek Generic"
                alsa.components = "HDA:10ec0272,10250207,00100001"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-input-internal-mic: Internal Microphone (priority: 8900)
                analog-input-mic: Microphone (priority: 8700, not available)
        Active Port: analog-input-internal-mic
        Formats:
                pcm

Source #4
        State: SUSPENDED
        Name: bluez_sink.C8_FD_19_78_F5_C5.a2dp_sink.monitor
        Description: Monitor of RX-V583 FC4BE2 Bluetooth
        Driver: module-bluez5-device.c
        Sample Specification: s16le 2ch 44100Hz
        Channel Map: front-left,front-right
        Owner Module: 23
        Mute: no
        Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        Base Volume: 65536 / 100% / 0.00 dB
        Monitor of Sink: bluez_sink.C8_FD_19_78_F5_C5.a2dp_sink
        Latency: 0 usec, configured 0 usec
        Flags: DECIBEL_VOLUME LATENCY
        Properties:
                device.description = "Monitor of RX-V583 FC4BE2 Bluetooth"
                device.class = "monitor"
                device.string = "C8:FD:19:78:F5:C5"
                device.api = "bluez"
                device.bus = "bluetooth"
                device.form_factor = "speaker"
                bluez.path = "/org/bluez/hci0/dev_C8_FD_19_78_F5_C5"
                bluez.class = "0x240414"
                bluez.alias = "RX-V583 FC4BE2 Bluetooth"
                device.icon_name = "audio-speakers-bluetooth"
        Formats:
                pcm

Client #9
        Driver: protocol-native.c
        Owner Module: 10
        Properties:
                application.name = "Terminology"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "4066"
                application.process.user = "michael"
                application.process.host = "aspire"
                application.process.binary = "terminology"
                application.language = "en_GB.UTF8"
                window.x11.display = ":0.0"
                application.process.machine_id = "69ebe73513023cf974abebe353669186"
                application.icon_name = "terminology"

Client #12
        Driver: protocol-native.c
        Owner Module: 10
        Properties:
                application.name = "pactl"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "4549"
                application.process.user = "michael"
                application.process.host = "aspire"
                application.process.binary = "pactl"
                application.language = "en_GB.UTF8"
                window.x11.display = ":0.0"
                application.process.machine_id = "69ebe73513023cf974abebe353669186"

Card #0
        Name: alsa_card.pci-0000_00_1b.0
        Driver: module-alsa-card.c
        Owner Module: 6
        Properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel"
                alsa.long_card_name = "HDA Intel at 0xf4700000 irq 29"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "293e"
                device.product.name = "82801I (ICH9 Family) HD Audio Controller"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Built-in Audio"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Profiles:
                input:analog-stereo: Analog Stereo Input (sinks: 0, sources: 1, priority: 60, available: yes)
                output:analog-stereo: Analog Stereo Output (sinks: 1, sources: 0, priority: 6000, available: yes)
                output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (sinks: 1, sources: 1, priority: 6060, available: yes)
                output:iec958-stereo: Digital Stereo (IEC958) Output (sinks: 1, sources: 0, priority: 5500, available: yes)
                output:iec958-stereo+input:analog-stereo: Digital Stereo (IEC958) Output + Analog Stereo Input (sinks: 1, sources: 1, priority: 5560, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: output:analog-stereo+input:analog-stereo
        Ports:
                analog-input-internal-mic: Internal Microphone (priority: 8900, latency offset: 0 usec)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-input-mic: Microphone (priority: 8700, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-input-microphone"
                        Part of profile(s): input:analog-stereo, output:analog-stereo+input:analog-stereo, output:iec958-stereo+input:analog-stereo
                analog-output-speaker: Speakers (priority: 10000, latency offset: 0 usec)
                        Properties:
                                device.icon_name = "audio-speakers"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
                analog-output-headphones: Headphones (priority: 9000, latency offset: 0 usec, not available)
                        Properties:
                                device.icon_name = "audio-headphones"
                        Part of profile(s): output:analog-stereo, output:analog-stereo+input:analog-stereo
                iec958-stereo-output: Digital Output (S/PDIF) (priority: 0, latency offset: 0 usec)
                        Part of profile(s): output:iec958-stereo, output:iec958-stereo+input:analog-stereo

Card #3
        Name: bluez_card.C8_FD_19_78_F5_C5
        Driver: module-bluez5-device.c
        Owner Module: 23
        Properties:
                device.description = "RX-V583 FC4BE2 Bluetooth"
                device.string = "C8:FD:19:78:F5:C5"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "speaker"
                bluez.path = "/org/bluez/hci0/dev_C8_FD_19_78_F5_C5"
                bluez.class = "0x240414"
                bluez.alias = "RX-V583 FC4BE2 Bluetooth"
                device.icon_name = "audio-speakers-bluetooth"
        Profiles:
                a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 10, available: yes)
                off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
        Active Profile: a2dp_sink
        Ports:
                speaker-output: Speaker (priority: 0, latency offset: 0 usec)
                        Part of profile(s): a2dp_sink
                speaker-input: Bluetooth Input (priority: 0, latency offset: 0 usec, not available)

Sound will only come out of the laptop speakers no matter what I tried. Can you spot something in the above which is amiss?

I can provide more information if required.
_________________
Regards,
Mick
Back to top
View user's profile Send private message
vasettoo
n00b
n00b


Joined: 11 Nov 2012
Posts: 74

PostPosted: Wed Nov 29, 2017 9:27 am    Post subject: Reply with quote

May be useful for debugging will be providing dmesg log for bluetooth connectivity. I'm having similar troubles playing audio to Bluedio Vinyl Plus bluetooth headset in GNOME 3.22 and latest Bluez - it connects succesfully with my Intel AC 7260 bt controller, pairs too, but it takes endless tries fiddling on and off switch in GNOME settings for the device to establish successful connection and redirect the A2DP audio profile to my headset. I cannot find any pattern in the module loading for bluetooth A2DP sink - it just activates randomly but never on first try. I think there was a bug report related to consolekit and pulseaudio, but can't find it ATM.
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Guru
Guru


Joined: 13 Feb 2016
Posts: 464

PostPosted: Wed Nov 29, 2017 10:04 pm    Post subject: Reply with quote

Connection first, then sound next.

Are you going to try with bluealsa or go the overly complicated pulseaudio way? You have to decide.

Getting pulseaudio and bluetooth to work together (itself isn't going to be the problem) but there is a huge hassle involved in keeping things working due to the configurations, and stuff. It's possible even after the fact that some local system software can interact with bluetooth in a way that the device is not meant to be used thus breaking the system further. Have you thought about what you want to do in terms of uses for the sound in which applications specifically. If it is a limited number of applications than going the bluealsa route could be an answer that saves some time and energy. As opposed to using Pulseaudio which of course also uses ALSA as a backend and therefore gives you twice the worries and potentially twice the headache. If that makes any sense.

vasettoo, there's going to be some bug reports with just about any software and it is really highly unlikely that it is actually a problem with the software when it comes to getting the connection to work for the purpose that it is intended (making sound). But I myself have had so far zero luck getting pulseaudio and bluetooth to work for something super simple even like playing music with mplayer or mpc. Have you looked at the FAQ for pulseaudio, there's so much to know about and the crappy thing here is that they claim it works out of the box, but really you actually need to know all of it just to get the thing to work!

Sorry for venting, and not offering a better solution.
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1133

PostPosted: Wed Dec 06, 2017 4:31 pm    Post subject: Reply with quote

Thank you both,

This is the dmesg output:
Code:
[  137.173854] usb 3-2: new full-speed USB device number 3 using uhci_hcd
[  137.329364] usb 3-2: New USB device found, idVendor=0a5c, idProduct=2101
[  137.329368] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  137.329372] usb 3-2: Product: Acer Module
[  137.329375] usb 3-2: Manufacturer: Broadcom Corp
[  137.442554] usbcore: registered new interface driver btusb
[  149.311288] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  149.311291] Bluetooth: BNEP filters: protocol multicast
[  149.311297] Bluetooth: BNEP socket layer initialized
[  187.287177] input: C8:FD:19:78:F5:C5 as /devices/virtual/input/input15


The log reveals:
Code:
Dec 06 15:50:19 [kernel] [  137.173854] usb 3-2: new full-speed USB device number 3 using uhci_hcd
Dec 06 15:50:19 [kernel] [  137.329364] usb 3-2: New USB device found, idVendor=0a5c, idProduct=2101
Dec 06 15:50:19 [kernel] [  137.329368] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Dec 06 15:50:19 [kernel] [  137.329372] usb 3-2: Product: Acer Module
Dec 06 15:50:19 [kernel] [  137.329375] usb 3-2: Manufacturer: Broadcom Corp
Dec 06 15:50:19 [kernel] [  137.442554] usbcore: registered new interface driver btusb
Dec 06 15:50:26 [pulseaudio] [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
Dec 06 15:50:31 [bluetoothd] Bluetooth daemon 5.47
Dec 06 15:50:31 [bluetoothd] Starting SDP server
Dec 06 15:50:31 [kernel] [  149.311288] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Dec 06 15:50:31 [kernel] [  149.311291] Bluetooth: BNEP filters: protocol multicast
Dec 06 15:50:31 [kernel] [  149.311297] Bluetooth: BNEP socket layer initialized
Dec 06 15:50:31 [bluetoothd] Bluetooth management interface 1.14 initialized
Dec 06 15:50:32 [bluetoothd] Endpoint registered: sender=:1.57 path=/MediaEndpoint/A2DPSource
Dec 06 15:50:32 [bluetoothd] Endpoint registered: sender=:1.57 path=/MediaEndpoint/A2DPSink
Dec 06 15:51:09 [bluetoothd] No cache for C8:FD:19:78:F5:C5
Dec 06 15:51:09 [kernel] [  187.287177] input: C8:FD:19:78:F5:C5 as /devices/virtual/input/input15
Dec 06 15:51:09 [bluetoothd] /org/bluez/hci0/dev_C8_FD_19_78_F5_C5/fd0: fd(23) ready

So, the AVR is registered as an input device :evil: instead of it becoming a sink for the laptop's VLC player.

This is me connecting via bluetoothctl console:
Code:
 ~ $ bluetoothctl
[NEW] Controller 00:24:2C:C6:CD:A3 BlueZ 5.47 [default]
[NEW] Device C8:FD:19:78:F5:C5 RX-V583 FC4BE2 Bluetooth
Agent registered
[bluetooth]# power on
[CHG] Controller 00:24:2C:C6:CD:A3 Class: 0x000c010c
Changing power on succeeded
[CHG] Controller 00:24:2C:C6:CD:A3 Powered: yes
[bluetooth]# connect C8:FD:19:78:F5:C5
Attempting to connect to C8:FD:19:78:F5:C5
[CHG] Device C8:FD:19:78:F5:C5 Connected: yes
Connection successful
[CHG] Device C8:FD:19:78:F5:C5 ServicesResolved: yes
[RX-V583 FC4BE2 Bluetooth]#


With the sound coming out of the laptop's speakers, instead of it being streamed to the AVR, I started bluealsa and this is shown in the logs:
Code:
Dec 06 15:54:50 [bluetoothd] Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DP_MPEG24_Source
Dec 06 15:54:50 [bluetoothd] Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DPSource
Dec 06 15:54:50 [bluetoothd] Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DP_MPEG24_Sink
Dec 06 15:54:50 [bluetoothd] Endpoint registered: sender=:1.66 path=/MediaEndpoint/A2DPSink
Dec 06 15:54:50 [kernel] [  407.979831] Bluetooth: RFCOMM TTY layer initialized
Dec 06 15:54:50 [kernel] [  407.979843] Bluetooth: RFCOMM socket layer initialized
Dec 06 15:54:50 [kernel] [  407.979861] Bluetooth: RFCOMM ver 1.11


Still no sound received by the AVR, although the AVR interface shows "BlueZ 5.47" as the connected device. It's things like this that make me feel so nostalgic about xmms! :roll:

Is there some command to map input source to output sink, without having to install Jackd? I don't mind hard coding this, because the users would not want or know how to run commands in a terminal just to get sound out of the AVR.
_________________
Regards,
Mick
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Guru
Guru


Joined: 13 Feb 2016
Posts: 464

PostPosted: Thu Dec 07, 2017 9:24 am    Post subject: Reply with quote

Just a guess, but if in one of the cases mentioned the kind of a symptom, your best bet could be to recreate the pulse audio configuration (lengthy and tough) or perhaps just reinstalling will get you very close to the optimal configs you have to be for pa audio on your system.

This message is really in reply more to vasettoo initial question.

It soes not however address the situation for this post by OP, who may be better served using one of the blueman configration tool i think as what is that makes ot seem like the a2dp is the correct profile?

The bluetooth AVR needs to work on at least the two most basic levels (hardware is the first), so make sure you know some basic info about the AV receiver. Second is the software, which is your system communicating over bluetooth with receiver. In the OSI network layers model this breakdown is a huge ovrrsimplification but the isea is what can be helpful hopefully. Check if the hardware has the builtin features for compatibility with whatever you are using it for (just audio right?) the find the tight bluetooth management tool and it should help a lot to manage the settings of a connection.

With any luck youbwill hit on the issue shortly and theni would suggest after the connection works to see that the configuration is getting saved and stored for future uses. MicKi not to discourage you but curious actually why would the profile be a2dp for the device? Isnt that complicatinf it more than it needs to? There should be a iotion for dingle sink use, saving the pissibility of your blueman thinking this piece of audio output is maybe a input.
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1133

PostPosted: Thu Dec 07, 2017 6:31 pm    Post subject: Reply with quote

thank you LIsLinuxIsSogood,
LIsLinuxIsSogood wrote:
Just a guess, but if in one of the cases mentioned the kind of a symptom, your best bet could be to recreate the pulse audio configuration (lengthy and tough) or perhaps just reinstalling will get you very close to the optimal configs you have to be for pa audio on your system.
My pulseaudio configuration is vanilla. I have not changed anything from default.

LIsLinuxIsSogood wrote:
It soes not however address the situation for this post by OP, who may be better served using one of the blueman configration tool i think as what is that makes ot seem like the a2dp is the correct profile?
Thanks, I'll give blueman a try to see what it may offer to resolve this problem.

LIsLinuxIsSogood wrote:
The bluetooth AVR needs to work on at least the two most basic levels (hardware is the first),
The laptop connects and pairs with the AVR. Both devices acknowledge each other. The problem remains that the laptop then assumes the role of an audio sink, rather than a source. Using VLC on the laptop I cannot see bluetooth as an audio device, although this I guess will be handled automagically by pulseaudio.

I'll have a go with blueman next (as long as it does not try to drag in half of Gnome, systemd and the rest of the Poettering monoculture).
_________________
Regards,
Mick
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1133

PostPosted: Thu Dec 07, 2017 9:05 pm    Post subject: Reply with quote

Ha! What do you know?! Blueman worked! :-)

I had to disconnect/reconnect with the AVR using blueman twice over, then disable/re-enable a2dp, the laptop speakers went quiet and sound started coming out of AVR speakers - after I unmuted the audio using pactl.

Thank you LIsLinuxIsSogood for suggesting blueman - now I need to find out why I need blueman to do this, or how I can achieve the same without it.
_________________
Regards,
Mick
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Guru
Guru


Joined: 13 Feb 2016
Posts: 464

PostPosted: Fri Dec 08, 2017 1:52 am    Post subject: Reply with quote

Yea, I believe this isn't going to be the answer you want to hear, but the reason for various software interfaces like blueman or even pulseaudio is because of the otherwise difficult job the user faces alone when configuring these highly complex systems for audio, networking components.

Here's a book that could help:
https://www.amazon.com/Bluetooth-Operation-Use-Robert-Morrow/dp/007138779X/ref=sr_1_12?s=books&ie=UTF8&qid=1512697681&sr=1-12&keywords=computer+network+bluetooth

It's sort of a joke, but also maybe not!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum