You are not logged in.

#1 2021-07-07 15:52:07

drk79
Member
From: Dublin, Ireland
Registered: 2021-06-01
Posts: 13

[SOLVED]Bluetooth / PulseAudio Issue

Ive spent the last 2 days trying to figure this one out sad
-
I am trying to set up my new arch machine and only issue i have not been able  to fix is setting up my Bluetooth headphones. Im using bluez/ blueman/ pulseaudio - and read the wiki but im still a bit confused as im still pretty new to linux and this issuse is a bit complex !

I dont know where to start tbh because in the wiki it says for example -
Add your user to the lp group, then restart pulseaudio. See /etc/dbus-1/system.d/bluetooth.conf for reference.  ( but my machine does not even have a etc/dbus-1 file? )

other problems i have found:

pactl load-module module-bluetooth-discover
Failure: Module initialization failed


systemctl output -

Pulse Audio :
[drk1@darkThinkPadT440 ~]$ systemctl status pulseaudio.service
× pulseaudio.service - Pulse Audio
     Loaded: loaded (/etc/systemd/system/pulseaudio.service; static)
     Active: failed (Result: exit-code) since Wed 2021-07-07 17:18:47 CEST; 1min 6s ago
    Process: 2666 ExecStart=/usr/bin/pulseaudio --system --disallow-exit --disable-shm (code=exited, status=1/FAILURE)
   Main PID: 2666 (code=exited, status=1/FAILURE)
        CPU: 21ms

Jul 07 17:18:47 darkThinkPadT440 systemd[1]: Started Pulse Audio.
Jul 07 17:18:47 darkThinkPadT440 pulseaudio[2666]: W: [pulseaudio] main.c: Running in system mode, but --disallow-module-loading not set.
Jul 07 17:18:47 darkThinkPadT440 pulseaudio[2666]: N: [pulseaudio] main.c: Running in system mode, forcibly disabling exit idle time.
Jul 07 17:18:47 darkThinkPadT440 pulseaudio[2666]: E: [pulseaudio] main.c: Failed to find user 'pulse'.
Jul 07 17:18:47 darkThinkPadT440 systemd[1]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 07 17:18:47 darkThinkPadT440 systemd[1]: pulseaudio.service: Failed with result 'exit-code'.

Bluetooth :
[drk1@darkThinkPadT440 ~]$ systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2021-07-07 16:52:58 CEST; 27min ago
       Docs: man:bluetoothd(8)
   Main PID: 662 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4540)
     Memory: 3.3M
        CPU: 71ms
     CGroup: /system.slice/bluetooth.service
             └─662 /usr/lib/bluetooth/bluetoothd

Jul 07 16:52:58 darkThinkPadT440 systemd[1]: Started Bluetooth service.
Jul 07 16:52:58 darkThinkPadT440 bluetoothd[662]: Starting SDP server
Jul 07 16:52:58 darkThinkPadT440 bluetoothd[662]: Bluetooth management interface 1.19 initialized
Jul 07 16:53:46 darkThinkPadT440 bluetoothd[662]: Endpoint registered: sender=:1.21 path=/MediaEndpoint/A2DPSink/sbc
Jul 07 16:53:46 darkThinkPadT440 bluetoothd[662]: Endpoint registered: sender=:1.21 path=/MediaEndpoint/A2DPSource/sbc
Jul 07 16:54:46 darkThinkPadT440 bluetoothd[662]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 98:52:3D:29:0A:A7: Host is down (112)
Jul 07 16:55:17 darkThinkPadT440 bluetoothd[662]: profiles/audio/avdtp.c:avdtp_parse_rej() SET_CONFIGURATION request rejected: Unknown error (194)
Jul 07 16:55:17 darkThinkPadT440 bluetoothd[662]: src/service.c:btd_service_connect() a2dp-source profile connect failed for 98:52:3D:29:0A:A7: Device or resource busy
Jul 07 16:58:57 darkThinkPadT440 bluetoothd[662]: profiles/audio/avdtp.c:avdtp_parse_rej() SET_CONFIGURATION request rejected: Unknown error (194)
Jul 07 16:58:57 darkThinkPadT440 bluetoothd[662]: src/service.c:btd_service_connect() a2dp-source profile connect failed for 98:52:3D:29:0A:A7: Device or resource busy


i have searched the internet and found similar issues but nothing that has been able to help me fix this any help would be much appreciated !

Last edited by drk79 (2021-07-13 19:35:04)

Offline

#2 2021-07-07 15:58:50

drk79
Member
From: Dublin, Ireland
Registered: 2021-06-01
Posts: 13

Re: [SOLVED]Bluetooth / PulseAudio Issue

more info ?

[drk1@darkThinkPadT440 ~]$ pulseaudio --system
N: [pulseaudio] main.c: System mode refused for non-root user. Only starting the D-Bus server lookup service.
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

Offline

#3 2021-07-12 15:35:51

rue647
Member
Registered: 2021-07-12
Posts: 1

Re: [SOLVED]Bluetooth / PulseAudio Issue

use pipewire instead of pulseaudio and check if the problem exits.

Offline

#4 2021-07-13 18:19:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,287

Re: [SOLVED]Bluetooth / PulseAudio Issue

Make sure you are up to date bluez 5.59 had a bug that's fixed in 5.60 and remove /var/lib/bluetooth and explicitly re-pair your headphone to be sure.

Why are you trying to start pulse in system mode? You'd use

systemctl --user status pulseaudio

as your user to check service status.

Offline

#5 2021-07-13 19:12:55

drk79
Member
From: Dublin, Ireland
Registered: 2021-06-01
Posts: 13

Re: [SOLVED]Bluetooth / PulseAudio Issue

i was getting ready to use pipewire but i wanted pulse fixed !

i was annoyed because when i did my first install which was pretty recent everything worked fine, then i decided to reinstall my system encrypted, messed with blackarch and then this problem kept showing up.. I think it was something to do with the order in which bluetooth and pulseaudio is set up. I have since got everything up and running on a clean install and i set up bluez blueman first and saved pulseaudio for last.
im sorry i dont have any more detailed info as im still a complete noob here.

Last edited by drk79 (2021-07-13 19:13:26)

Offline

#6 2021-07-13 19:19:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,287

Re: [SOLVED]Bluetooth / PulseAudio Issue

If you really want to use pipewire use pipewire. It replaces pulse for all practical purposes and comes with it's own set of improvements and issues and trying to fix pulse first will be useless if you need to do the same rain and dance on pipewire again.

bluez 5.60 got released on the day you made your post. If you were on an older mirror or hadn't updated yet when you formulated your post, there was a known issue with bluez that lead to errors accessing the A2DP profile. This isn't anything you messed up but a bug in bluez that affected both pulse and pipewire (... or rather every bluetooth device).

If the issue is fixed now, please mark the thread as [SOLVED] by editing the title in your first post.

Offline

#7 2021-07-13 19:33:23

drk79
Member
From: Dublin, Ireland
Registered: 2021-06-01
Posts: 13

Re: [SOLVED]Bluetooth / PulseAudio Issue

thanks for the info very interesting. i was messing with profiles and trying everything in the wiki before i made this post but in the end i learned alot. thanks again !

Offline

Board footer

Powered by FluxBB