You are not logged in.

#1 2016-09-26 17:12:26

Ekaradon
Member
Registered: 2014-05-31
Posts: 44

[Solved][Bluetooth Headset] Recognized, Paired, Connected...

Hello,

I am using a Parrot Zik, which is working on Linux, with KDE Plasma 5.

I have installed everything required:

➜  ~ sudo pacman -Qs bluez
local/bluez 5.41-2
    Daemons for the bluetooth protocol stack
local/bluez-firmware 1.2-8
    Firmwares for Broadcom BCM203x and STLC2300 Bluetooth chips
local/bluez-hid2hci 5.41-2
    Put HID proxying bluetooth HCI's into HCI mode
local/bluez-libs 5.41-2
    Deprecated libraries for the bluetooth protocol stack
local/bluez-plugins 5.41-2
    bluez plugins (PS3 Sixaxis controller)
local/bluez-qt 5.26.0-1 (kf5)
    Qt wrapper for Bluez 5 DBus API
local/bluez-utils 5.41-2
    Development and debugging utilities for the bluetooth protocol stack
➜  ~ sudo pacman -Qs alsa
local/alsa-lib 1.1.2-1
    An alternative implementation of Linux sound support
local/alsa-plugins 1.1.1-1
    Extra alsa plugins
local/alsa-tools 1.1.0-2
    Advanced tools for certain sound cards
local/alsa-utils 1.1.2-1
    An alternative implementation of Linux sound support
local/pulseaudio-alsa 2-3
    ALSA Configuration for PulseAudio
local/zita-alsa-pcmi 0.2.0-3
    The successor of clalsadrv, provides easy access to ALSA PCM devices.
➜  ~ sudo pacman -Qs pulse    
local/libao 1.2.0-1
    Cross-platform audio output library and plugins
local/libpulse 9.0-1
    A featureful, general-purpose sound server (client library)
local/plasma-pa 5.7.5-1 (plasma)
    Plasma applet for audio volume management using PulseAudio
local/pulseaudio 9.0-1
    A featureful, general-purpose sound server
local/pulseaudio-alsa 2-3
    ALSA Configuration for PulseAudio
local/pulseaudio-bluetooth 9.0-1
    Bluetooth support for PulseAudio
local/pulseaudio-equalizer 9.0-1
    Equalizer for PulseAudio

And I can see the device in the audio output:
Audio Volume Panel Control
Bluetooth Panel Control

However, the sound is still played through my speakers and never with my bluetooth headset.

The output for `pacmd ls`:

    index: 3
        name: <bluez_card.XX_XX_XX_XX_XX_XX>
        driver: <module-bluez5-device.c>
        owner module: 26
        properties:
                device.description = "Parrot Zik V1.10"
                device.string = "XX:XX:XX:XX:XX:XX"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "hands-free"
                bluez.path = "/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX"
                bluez.class = "0x240408"
                bluez.alias = "Parrot Zik V1.10"
                device.icon_name = "audio-handsfree-bluetooth"
                device.intended_roles = "phone"
        profiles:
                a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: unknown)
                headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: no)
                off: Off (priority 0, available: yes)
        active profile: <a2dp_sink>
        sinks:
                bluez_sink.XX_XX_XX_XX_XX_XX/#3: Parrot Zik V1.10
        sources:
                bluez_sink.XX_XX_XX_XX_XX_XX.monitor/#4: Monitor of Parrot Zik V1.10
        ports:
                handsfree-output: Handsfree (priority 0, latency offset 0 usec, available: unknown)
                        properties:

                handsfree-input: Handsfree (priority 0, latency offset 0 usec, available: no)
                        properties:

The flag `available: unknown` is striking to me... But still, I have no more idea about what I should do next to fix this issue. Have you an idea?

Cheers,

Last edited by Ekaradon (2016-09-27 07:26:27)

Offline

#2 2016-09-26 19:43:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,676

Re: [Solved][Bluetooth Headset] Recognized, Paired, Connected...

From the headset's POV this looks alright, have you actually switched corresponding audiostreams to the bluetooth headset? pulseaudio won't do that by itself, by default (add

load-module module-switch-on-connect

before the if...udev-detect block in your /etc/pulse/default.pa to change that fact) Can you post

pacmd list-sinks
pacmd list-sink-inputs

while playing something you expect to hear?

Offline

#3 2016-09-26 20:11:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: [Solved][Bluetooth Headset] Recognized, Paired, Connected...

Is there anything else nearby that is paired with the headset -- like a phone or something?
I have a couple devices that accept multiple connections, but will only allow one of those connections to attach to any given protocol.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2016-09-27 07:24:44

Ekaradon
Member
Registered: 2014-05-31
Posts: 44

Re: [Solved][Bluetooth Headset] Recognized, Paired, Connected...

Thanks very much V1del, after adding your line to the default.pa file and restarting pulseaudio it finally worked!

load-module module-switch-on-connect

What is surprising me is that I could not do it from the graphical user interface...
Here the output requested:

➜  ~ pacmd list-sinks      
2 sink(s) available.
    index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE 
        priority: 9959
        volume: front-left: 29493 /  45% / -20.81 dB,   front-right: 29493 /  45% / -20.81 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
        card: 0 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC668 Analog"
                alsa.id = "ALC668 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xdd328000 irq 128"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a170"
                device.product.name = "Sunrise Point-H HD Audio"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                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 ALC668"
                alsa.components = "HDA:10ec0668,10431080,00100003 HDA:80862809,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>
  * index: 1
        name: <bluez_sink.XX_XX_XX_XX_XX_XX>
        driver: <module-bluez5-device.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY 
        state: RUNNING
        suspend cause: 
        priority: 9030
        volume: front-left: 58982 /  90% / -2.75 dB,   front-right: 58982 /  90% / -2.75 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 37.86 ms
        max request: 4 KiB
        max rewind: 0 KiB
        monitor source: 2
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        fixed latency: 48.22 ms
        card: 1 <bluez_card.XX_XX_XX_XX_XX_XX>
        module: 24
        properties:
                bluetooth.protocol = "a2dp_sink"
                device.description = "Parrot Zik V1.10"
                device.string = "XX:XX:XX:XX:XX:XX"
                device.api = "bluez"
                device.class = "sound"
                device.bus = "bluetooth"
                device.form_factor = "hands-free"
                bluez.path = "/org/bluez/hci0/dev_XX_XX_XX_XX_XX_XX"
                bluez.class = "0x240408"
                bluez.alias = "Parrot Zik V1.10"
                device.icon_name = "audio-handsfree-bluetooth"
                device.intended_roles = "phone"
        ports:
                handsfree-output: Handsfree (priority 0, latency offset 0 usec, available: yes)
                        properties:

        active port: <handsfree-output>
➜  ~ pacmd list-sink-inputs
1 sink input(s) available.
    index: 0
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        sink: 1 <bluez_sink.XX_XX_XX_XX_XX_XX>
        volume: front-left: 65535 / 100% / -0.00 dB,   front-right: 65535 / 100% / -0.00 dB
                balance 0.00
        muted: no
        current latency: 1927.26 ms
        requested latency: 48.22 ms
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        resample method: (null)
        module: 12
        client: 4 <Spotify>
        properties:
                media.role = "music"
                media.name = "Spotify"
                application.name = "Spotify"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "31"
                application.process.id = "8563"
                application.process.user = "ekaradon"
                application.process.host = "das_computer"
                application.process.binary = "spotify"
                window.x11.display = ":0"
                application.language = "C"
                application.process.machine_id = "b92a3544b6b74e0f93f166073b2270f0"
                application.process.session_id = "c2"
                application.icon_name = "spotify-client"
                module-stream-restore.id = "sink-input-by-media-role:music"

@ewaller: This headset does not accept multi-pairing but it's good to know. It may explain some others troubles I had with an UE BOOM speaker. Thank you!

Last edited by Ekaradon (2016-09-27 07:25:00)

Offline

#5 2016-09-27 07:37:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,676

Re: [Solved][Bluetooth Headset] Recognized, Paired, Connected...

Ekaradon wrote:

What is surprising me is that I could not do it from the graphical user interface...

That should be impossible, the module-switch-on-connect will only act on a new sink appearing, something that will be reflected in any pulseaudio mixer normally. Have you checked in pavucontrol (to use the reference implementation) that this really wasn't the case? Note that said switch should be done from the Applications tab on a per application basis, as opposed to the "Devices" tab (really plasma's mixer should reflect the same, there would be something quite broken if it didn't).

Offline

#6 2016-09-27 09:15:39

Ekaradon
Member
Registered: 2014-05-31
Posts: 44

Re: [Solved][Bluetooth Headset] Recognized, Paired, Connected...

I am wondering whether I have seen this select box before:
Select box for output

Maybe it was there from the start and I just seen it now. But as you said, it is quite strange to put it in the `applications` tab.

I have not installed `pavucontrol`, but it was probably there from the start on KDE applet, I was I think just not looking at the right tab.

Thanks again anyway! It is even better with an auto-switch on connect behaviour!

Offline

Board footer

Powered by FluxBB