Problem with bluetooth audio output

Hi I have a problem outputting audio to my JBL GO bluetooth speaker. I managed to pair and connect to it but there is no sound.

Here’s documentation:

Picroft Outputting audio

Problems starts at “Next, we connect the audio.” section of “How to output audio through Bluetooth”

I installed everything that was needed

At 4 it states “edit” but there was no such file so I created new one and added that line.
At 5. there is no info where to add that lines… How to do this?

When I try to run pulseaudio it shows error:

E: [pulseaudio] module.c: Failed to load module “module-native-protocol-unix” (argument: “auth-anonymous=1 socket=/tmp/pulse-socket”): initialization failed.
E: [pulseaudio] main.c: Sink alsa_output.0.analog-stereo does not exist.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon.

Are you able to show the output of
sudo pactl list modules

Here it is

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 = “5.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 = “5.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 = “5.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 = “5.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 = “5.0”

Module #6
Name: module-alsa-card
Argument: device_id=“0” name=“0” card_name=“alsa_card.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: 2
Properties:
module.author = “Lennart Poettering”
module.description = “ALSA Card”
module.version = “5.0”

Module #7
Name: module-bluetooth-policy
Argument:
Usage counter: n/a
Properties:
module.author = “Frédéric Dalleau”
module.description = “When a bluetooth sink or source is added, load module-loopback”
module.version = “5.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 = “5.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 = “5.0”

Module #10
Name: module-bluez4-discover
Argument:
Usage counter: n/a
Properties:
module.author = “João Paulo Rechi Vita”
module.description = “Detect available BlueZ 4 Bluetooth audio devices and load BlueZ 4 Bluetooth audio drivers”
module.version = “5.0”

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

Module #12
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 = “5.0”

Module #13
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 = “5.0”

Module #14
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 = “5.0”

Module #15
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 = “5.0”

Module #16
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 = “5.0”

Module #17
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 = “5.0”

Module #18
Name: module-systemd-login
Argument:
Usage counter: n/a
Properties:
module.author = “Lennart Poettering”
module.description = “Create a client for each login session of this user”
module.version = “5.0”

Module #19
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 = “5.0”

Module #20
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 = “5.0”

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

Module #22
Name: module-filter-apply
Argument:
Usage counter: n/a
Properties:
module.author = “Colin Guthrie”
module.description = “Load filter sinks automatically when needed”
module.version = “5.0”

Module #23
Name: module-native-protocol-unix
Argument: auth-anonymous=1 socket=/tmp/pulse-socket
Usage counter: n/a
Properties:
module.author = “Lennart Poettering”
module.description = “Native protocol (UNIX sockets)”
module.version = “5.0”
pi@picroft:~ $

I too have the same problem
and in the log it shows :

N: [pulseaudio] main.c: User-configured server at unix:/tmp/pulse-socket, refusi ng to start/autospawn.
Please help

Hi there @Sridevi_ram, welcome, it’s great to have you here.

In order to help troubleshoot, are you able to post the output of the following commands:

dmesg -i | grep blue

This command will tell us if there are any bluetooth-related error messages in dmesg - which is the system log.

sudo systemctl status blue*

This command tells us the status of all the bluetooth services on the device.

I believe using the unix: socket connection only works if you run pulseausio as system-wide deamon. (not sure though)

the word “User-configured” throws me off here. Are you sure you start PulseAudio as system-wide server under the root user (daemon-mode) and NOT as a normal user?

“start/autospawn” is also something that should not be done if ran as system-wide deamon…

I am also having some issues with pairing a bluetooth speaker to picroft.
i followed the same steps, however my issue begins at where it says

  • " Run pacmd list-sinks and note the Bluetooth sink name"

i dont see any bluetooth sink name? this is the output i get :

1 sink(s) available.

  • index: 0
    name: <alsa_output.platform-soc_audio.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 9009
    volume: front-left: 1 / 0% / -288.99 dB, front-right: 1 / 0% / -288.99 dB
    balance 0.00
    base volume: 56210 / 86% / -4.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 1
    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 … 743.04 ms
    card: 1 <alsa_card.platform-soc_audio>
    module: 7
    properties:
    alsa.resolution_bits = “16”
    device.api = “alsa”
    device.class = “sound”
    alsa.class = “generic”
    alsa.subclass = “generic-mix”
    alsa.name = “bcm2835 ALSA”
    alsa.id = “bcm2835 ALSA”
    alsa.subdevice = “0”
    alsa.subdevice_name = “subdevice #0
    alsa.device = “0”
    alsa.card = “0”
    alsa.card_name = “bcm2835 ALSA”
    alsa.long_card_name = “bcm2835 ALSA”
    device.bus_path = “platform-soc:audio”
    sysfs.path = “/devices/platform/soc/soc:audio/bcm2835_alsa/sound/card0”
    device.string = “hw:0”
    device.buffering.buffer_size = “131072”
    device.buffering.fragment_size = “131072”
    device.access_mode = “mmap+timer”
    device.profile.name = “analog-stereo”
    device.profile.description = “Analog Stereo”
    device.description = “bcm2835 ALSA Analog Stereo”
    alsa.mixer_name = “Broadcom Mixer”
    module-udev-detect.discovered = “1”
    device.icon_name = “audio-card”
    ports:
    analog-output: Analog Output (priority 9900, latency offset 0 usec, available: unknown)
    properties:

    active port: <analog-output>
    

Hi there @sander we recently pulled in pulseaudio into Picroft, and we’re finding that it helps a lot with audio issues of all kinds, including Bluetooth. If you reboot Picroft it should pull in the most recent update.

It’s also worth trying alsamixer to see if you can select your device.