Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bluetooth speakers : paired OK, Alsa Ok, PulseAudio KO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 14

PostPosted: Sun Nov 24, 2019 2:49 pm    Post subject: bluetooth speakers : paired OK, Alsa Ok, PulseAudio KO Reply with quote

I'm trying to make my speaker work with my gentoo.... so far when I do bluetoothclt, I can pair and the device connect automatically when powered on.
I followed https://wiki.gentoo.org/wiki/Bluetooth_headset
with alsa I created a .asoundrc
Code:

# Bluetooth headset
defaults.bluealsa {
     interface "hci0"            # host Bluetooth adapter
     device "FC:58:FA:A7:82:A4"  # Bluetooth headset MAC address
     profile "a2dp"
}


when I play
Code:
mpv --audio-device=alsa/bluealsa filename
everything is fine.... but I can't make pulse audio use it, Pulse Audio Volume control only show my builtin audio card....
any idea?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6200

PostPosted: Sun Nov 24, 2019 7:21 pm    Post subject: Reply with quote

Did you configure pulseaudio with bluetooth support? Is the bluez5-discover driver loaded?
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 14

PostPosted: Mon Nov 25, 2019 6:26 pm    Post subject: Reply with quote

Code:

# equery u pulseaudio
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-sound/pulseaudio-13.0:
 U I
 + + X              : Build the X11 publish module to export PulseAudio information through X11 protocol for clients to make use. Don't enable
                      this flag if you want to use a system wide instance. If unsure, enable this flag.
 - - abi_x86_32     : 32-bit (x86) libraries
 + + alsa           : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 + + alsa-plugin    : Request installing media-plugins/alsa-plugins with PulseAudio plugin enabled. This ensures that clients supporting ALSA
                      only will use PulseAudio.
 + + asyncns        : Use libasyncns for asynchronous name resolution.
 + + bluetooth      : Enable Bluetooth Support
 + + caps           : Use Linux capabilities library to control privilege
 + + dbus           : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - doc            : Build the doxygen-described API documentation.
 - - elogind        : Use sys-auth/elogind for giving each session a PA client
 - - equalizer      : Enable the equalizer module (requires sci-libs/fftw).
 - - gconf          : Ensure gnome-base/gconf is present for pulseaudio GConf to GSettings module automatic migration (keeping the user
                      configuration)
 + + gdbm           : Use sys-libs/gdbm to store PulseAudio databases. Recommended for desktop usage. This flag causes the whole package to be
                      licensed under GPL-2 or later.
 + + glib           : Add support to dev-libs/glib-based mainloop for the libpulse client library, to allow using libpulse on glib-based
                      programs. Build the GSettings PA module.
 + + gtk            : Add support for x11-libs/gtk+ (The GIMP Toolkit)
 + + ipv6           : Add support for IP version 6
 - - jack           : Add support for the JACK Audio Connection Kit
 - - libressl       : Use dev-libs/libressl instead of dev-libs/openssl when applicable (see also the ssl useflag)
 - - libsamplerate  : Build with support for converting sample rates using libsamplerate
 - - lirc           : Add support for lirc (Linux's Infra-Red Remote Control)
 - - native-headset : Build with native HSP backend for bluez 5.
 - - ofono-headset  : Build with oFono HFP backend for bluez 5, requires net-misc/ofono.
 + + orc            : Use dev-lang/orc for just-in-time optimization of array operations
 + + qt5            : Add support for the Qt 5 application and UI framework
 - - realtime       : Makes PulseAudio use RealtimeKit (sys-auth/rtkit) to get real-time priority while running.
 - - sox            : Add support for Sound eXchange (SoX)
 + + ssl            : Use dev-libs/openssl to provide support for RAOP (AirPort) streaming.
 - - systemd        : Build with sys-apps/systemd support to replace standalone ConsoleKit.
 + + tcpd           : Add support for TCP wrappers
 - - test           : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled
                      independently)
 + + udev           : Enable virtual/udev integration (device discovery, power and storage device support, etc)
 + + webrtc-aec     : Uses the webrtc.org AudioProcessing library for enhancing VoIP calls greatly in applications that support it by performing
                      acoustic echo cancellation, analog gain control, noise suppression and other processing.
 - - zeroconf       : Support for DNS Service Discovery (DNS-SD)


Code:

# grep -i bluez /etc/pulse/*
/etc/pulse/system.pa:.ifexists module-bluez5-device.so
/etc/pulse/system.pa:load-module module-bluez5-device
/etc/pulse/system.pa:.ifexists module-bluez5-discover.so
/etc/pulse/system.pa:load-module module-bluez5-discover
Back to top
View user's profile Send private message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 14

PostPosted: Mon Nov 25, 2019 6:32 pm    Post subject: Reply with quote

I addded
Code:

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluez5-device.so
load-module module-bluez5-device
.endif

.ifexists module-bluez5-discover.so
load-module module-bluez5-discover
.endif

into /etc/pulse/default.pa
and now it works!!!!! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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