Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bluetooth audio system not connecting
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
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Mon Dec 18, 2023 7:26 pm    Post subject: Bluetooth audio system not connecting Reply with quote

Hello.
I have Senz Spectrum audio system with Bluetooth support.

I'm trying to connect my Gentoo laptop so that i could listen to the music with my Senz Spectrum.

I have followed this guide: https://wiki.gentoo.org/wiki/Bluetooth_headset
Even though it is not a headset.

I did:
Code:
$ bluetoothctl
[bluetooth]# connect FC:58:FA:28:0F:72


and i got:
Code:
Attempting to connect to FC:58:FA:28:0F:72
Failed to connect: org.bluez.Error.Failed br-connection-profile-unavailable


Iin the guide it says pulseaudio is not running or no playback started.
But i do have pulseaudio running and audio playing with Rhythmbox.

Code:
$ pgrep pulseaudio
1764


I have:
Code:
net-wireless/bluez-5.70-r1:0/3::gentoo  USE="btpclient cups experimental mesh obex readline systemd test-programs udev -debug -deprecated -doc -extra-tools -midi (-selinux) -test" ABI_X86="32 (64) (-x32)" PYTHON_SINGLE_TARGET="python3_10 -python3_11 (-python3_12)"
media-sound/pulseaudio-16.1::gentoo  USE="bluetooth glib ofono-headset -daemon -jack" ABI_X86="32 (64) (-x32)"
media-sound/pulseaudio-daemon-16.1-r7::gentoo  USE="X alsa alsa-plugin asyncns bluetooth dbus gdbm glib gstreamer ofono-headset orc ssl systemd udev webrtc-aec -aptx (-elogind) -equalizer -fftw -jack -ldac -lirc (-oss) (-selinux) -sox (-system-wide) -tcpd -test -valgrind -zeroconf"


Also noticed:
Code:
there are no ebuilds to satisfy "media-sound/pulseaudio-modules-bt".


I have Gnome shell & Pulseaudio set up.
I can see the bluetootn device from the bluetooth settings, and there is a "connect" button, but it does nothing.

Any ideas?
Back to top
View user's profile Send private message
CooSee
Veteran
Veteran


Joined: 20 Nov 2004
Posts: 1441
Location: Earth

PostPosted: Mon Dec 18, 2023 11:05 pm    Post subject: Reply with quote

does this maybe help ?

https://forums.gentoo.org/viewtopic-p-8693926.html?sid=

8)
_________________
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Tue Dec 19, 2023 9:49 am    Post subject: Reply with quote

CooSee wrote:
does this maybe help ?

https://forums.gentoo.org/viewtopic-p-8693926.html?sid=

8)


Hi, thanks for the message,
but i do not have bluealsa set up. so that's not the problem.
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 250

PostPosted: Wed Dec 20, 2023 5:27 pm    Post subject: Re: Bluetooth audio system not connecting Reply with quote

heikkikk wrote:

Also noticed:
Code:
there are no ebuilds to satisfy "media-sound/pulseaudio-modules-bt".


Yes pulseaudio-modules-bt is no longer needed.

Please pair and trust your device, then normally it should appear in device list - look for 'bluez_card' ones in 'pactl list'

If that does not work it could be worth checking dmesg and bluetoothd log for any issues with your device.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Thu Dec 21, 2023 9:56 am    Post subject: Reply with quote

"pacl list" does not give anything about bluez

dmesg only shows some info at boot time, nothing when i try to pair devices.

Code:
$ dmesg|grep -i blue
[    6.642797] Bluetooth: Core ver 2.22
[    6.643135] NET: Registered PF_BLUETOOTH protocol family
[    6.643341] Bluetooth: HCI device and connection manager initialized
[    6.643553] Bluetooth: HCI socket layer initialized
[    6.644344] Bluetooth: L2CAP socket layer initialized
[    6.645598] Bluetooth: SCO socket layer initialized
[    6.812393] Bluetooth: hci0: Bootloader revision 0.1 build 42 week 52 2015
[    6.814234] Bluetooth: hci0: Device revision is 2
[    6.814483] Bluetooth: hci0: Secure boot is enabled
[    6.814589] Bluetooth: hci0: OTP lock is enabled
[    6.814696] Bluetooth: hci0: API lock is enabled
[    6.814802] Bluetooth: hci0: Debug lock is disabled
[    6.814910] Bluetooth: hci0: Minimum firmware build 1 week 10 2014
[    6.817010] Bluetooth: hci0: Found device firmware: intel/ibt-17-16-1.sfi
[    6.817161] Bluetooth: hci0: Boot Address: 0x40800
[    6.817285] Bluetooth: hci0: Firmware Version: 155-35.23
[    8.304607] Bluetooth: hci0: Waiting for firmware download to complete
[    8.305239] Bluetooth: hci0: Firmware loaded in 1453227 usecs
[    8.305328] Bluetooth: hci0: Waiting for device to boot
[    8.319246] Bluetooth: hci0: Device booted in 13658 usecs
[    8.319265] Bluetooth: hci0: Malformed MSFT vendor event: 0x02
[    8.319667] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-17-16-1.ddc
[    8.321261] Bluetooth: hci0: Applying Intel DDC parameters completed
[    8.322293] Bluetooth: hci0: Firmware revision 0.1 build 155 week 35 2023
[   12.978245] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   12.978613] Bluetooth: BNEP filters: protocol multicast
[   12.978972] Bluetooth: BNEP socket layer initialized
[   12.980103] Bluetooth: MGMT ver 1.22



journalctl gives me: (sorry for the finnish dates, joulu means december)
Code:
joulu 21 11:03:08 gentoo kernel: Bluetooth: Core ver 2.22
joulu 21 11:03:08 gentoo kernel: NET: Registered PF_BLUETOOTH protocol family
joulu 21 11:03:08 gentoo kernel: Bluetooth: HCI device and connection manager initialized
joulu 21 11:03:08 gentoo kernel: Bluetooth: HCI socket layer initialized
joulu 21 11:03:08 gentoo kernel: Bluetooth: L2CAP socket layer initialized
joulu 21 11:03:08 gentoo kernel: Bluetooth: SCO socket layer initialized
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Bootloader revision 0.1 build 42 week 52 2015
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Device revision is 2
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Secure boot is enabled
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: OTP lock is enabled
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: API lock is enabled
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Debug lock is disabled
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Minimum firmware build 1 week 10 2014
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Found device firmware: intel/ibt-17-16-1.sfi
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Boot Address: 0x40800
joulu 21 11:03:08 gentoo kernel: Bluetooth: hci0: Firmware Version: 155-35.23
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Waiting for firmware download to complete
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Firmware loaded in 1453227 usecs
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Waiting for device to boot
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Device booted in 13658 usecs
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Malformed MSFT vendor event: 0x02
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-17-16-1.ddc
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Applying Intel DDC parameters completed
joulu 21 11:03:10 gentoo kernel: Bluetooth: hci0: Firmware revision 0.1 build 155 week 35 2023
joulu 21 11:03:14 gentoo systemd[1]: Starting bluetooth.service...
joulu 21 11:03:14 gentoo (uetoothd)[838]: bluetooth.service: ConfigurationDirectory 'bluetooth' already exists but the mode is different. (File system: 755 ConfigurationDirectoryMode: 555)
joulu 21 11:03:14 gentoo bluetoothd[838]: Bluetooth daemon 5.70
joulu 21 11:03:14 gentoo bluetoothd[838]: Starting SDP server
joulu 21 11:03:14 gentoo bluetoothd[838]: src/plugin.c:plugin_init() System does not support csip plugin
joulu 21 11:03:14 gentoo bluetoothd[838]: profiles/audio/micp.c:micp_init() D-Bus experimental not enabled
joulu 21 11:03:14 gentoo bluetoothd[838]: src/plugin.c:plugin_init() System does not support micp plugin
joulu 21 11:03:14 gentoo bluetoothd[838]: src/plugin.c:plugin_init() System does not support vcp plugin
joulu 21 11:03:14 gentoo bluetoothd[838]: src/plugin.c:plugin_init() System does not support mcp plugin
joulu 21 11:03:14 gentoo bluetoothd[838]: src/plugin.c:plugin_init() System does not support bass plugin
joulu 21 11:03:14 gentoo bluetoothd[838]: src/plugin.c:plugin_init() System does not support bap plugin
joulu 21 11:03:14 gentoo dbus-daemon[840]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.1' (uid=0 pid=838 comm="/usr/libexec/bluetooth/bluetoothd")
joulu 21 11:03:14 gentoo kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
joulu 21 11:03:14 gentoo kernel: Bluetooth: BNEP filters: protocol multicast
joulu 21 11:03:14 gentoo kernel: Bluetooth: BNEP socket layer initialized
joulu 21 11:03:14 gentoo kernel: Bluetooth: MGMT ver 1.22
joulu 21 11:03:14 gentoo bluetoothd[838]: Bluetooth management interface 1.22 initialized
joulu 21 11:03:14 gentoo bluetoothd[838]: Failed to set mode: Failed (0x03)
joulu 21 11:03:14 gentoo systemd[1]: Started bluetooth.service.
joulu 21 11:03:14 gentoo systemd[1]: Reached target bluetooth.target.
joulu 21 11:03:15 gentoo NetworkManager[856]: <info>  [1703149395.0575] Loaded device plugin: NMBluezManager (/usr/lib64/NetworkManager/1.42.6-r2/libnm-device-plugin-bluetooth.so)
joulu 21 11:03:19 gentoo pulseaudio[1125]: [pulseaudio] main.c: Module module-bluetooth-policy not loaded.
joulu 21 11:03:19 gentoo pulseaudio[1125]: [pulseaudio] main.c: Module module-bluetooth-discover not loaded.
joulu 21 11:44:27 gentoo NetworkManager[856]: <info>  [1703151867.2065] manager: (9C:5A:81:AE:8F:AA): new Bluetooth device (/org/freedesktop/NetworkManager/Devices/4)
joulu 21 11:44:31 gentoo bluetoothd[838]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 39:A3:A2:CA:3D:AA: Protocol not available
joulu 21 11:49:52 gentoo bluetoothd[838]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 39:A3:A2:CA:3D:AA: Protocol not available
joulu 21 11:50:42 gentoo polkitd[985]: Operator of unix-session:3 successfully authenticated as unix-user:root to gain TEMPORARY authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.187 [systemctl start bluetooth] (owned by unix-user:heikki)



39:A3:A2:CA:3D:AA is a headphone i am trying also, Macs MD5
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 250

PostPosted: Thu Dec 21, 2023 12:39 pm    Post subject: Reply with quote

Please share output of 'pa-info' - looking at the log something wants to unload bluetooth modules, do you have modified configuration files in any way?
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Thu Dec 21, 2023 1:28 pm    Post subject: Reply with quote

pa-info: https://nappula.net/Bluetooth.txt

I did not edit any files, except that i added the file /etc/bluetooth/audio.conf
contents:
Code:
[General]
Enable=Control,Gateway,Headset,Media,Sink,Socket,Source



Code:
# uname -a
Linux gentoo 6.1.67-gentoo-dist #1 SMP PREEMPT_DYNAMIC Sat Dec 16 09:59:41 EET 2023 x86_64 Intel(R) Core(TM) i5-9300H CPU @ 2.40GHz GenuineIntel GNU/Linux
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 250

PostPosted: Thu Dec 21, 2023 6:12 pm    Post subject: Reply with quote

Your /etc/pulse/default.pa does not contain commands to load bluetooth modules which probably explains the issue.

It looks like your pulseaudio was once built without USE bluetooth, you later added USE bluetooth but did not updated /etc/pulse/default.pa file or discarded needed changes.

Should be safe to rename/move away /etc/pulse/default.pa and rebuild media-sound/pulseaudio-daemon to get modules back. When done please restart pulseaudio and post new 'pa-info' output.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Sat Dec 23, 2023 10:52 am    Post subject: Reply with quote

Hi.

https://3.14.fi/pa-info-2023-12-23-12-45.txt

Yes you are right, i had pulseaudio built without bluetooth support before!

I did move the file mentioned /etc/pulse/default.pa to other place, and rebuilt pulseaudio-daemon but the file didn't come back.

But then I did
Code:
mv ._cfg0001_default.pa default.pa

and now my headphones do work with bluetooth, but not the stereo system Senz Spectrum

Some progress! Thanks.

Still trying to get the stereo system to work...

EDIT: Got it working... kind of... by unpairing and repairing...

But i hear crackle sounds, or whatever are they called... every now and then..

The sound: I get it like every 5-10 seconds or so...
https://www.dropbox.com/scl/fi/u9cmd85a7jejbu01taezv/Hairioaani-bluetooth.mp3?rlkey=ns9ofmpdbtec8wkr4hn5i3a34&dl=0
I get this sound both on the stereo system and headphones.
Back to top
View user's profile Send private message
garrison
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 250

PostPosted: Sat Dec 23, 2023 11:34 am    Post subject: Reply with quote

Yes you need to be careful and dispatch any ._cfg files produced by ebuild when asked to, or software may not work.

For further investigation of the problematic bluetooth device I'd suggest joining #pulseaudio on OFTC as that may be very device-specific thing.
Back to top
View user's profile Send private message
heikkikk
Apprentice
Apprentice


Joined: 05 Feb 2008
Posts: 209

PostPosted: Sat Dec 23, 2023 1:09 pm    Post subject: Reply with quote

garrison wrote:
Yes you need to be careful and dispatch any ._cfg files produced by ebuild when asked to, or software may not work.

For further investigation of the problematic bluetooth device I'd suggest joining #pulseaudio on OFTC as that may be very device-specific thing.



Thank you, i will try that!
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