You are not logged in.

#1 2012-07-22 13:50:40

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Pulseaudio + Bluetooth headset = Lags

Hello,

i have some problems using my bluetooth headset under archlinux.

1) After ~15min the sound suddenly stops
      - i tried to disable the suspend module as mentioned here: https://wiki.archlinux.org/index.php/Pu … y_problems
        but i didn't help at all. And my sound get's suspened while i'm listening to music
2) I often have long lags in the sound, this is not that much of a problem when listeing to music, but watching a movie like that just sucks
      - I noticed that this often happens when the headset is too far away for a short time, like when i'm e.g. in the bathroom and when i'm back, there is that lag. But it also happens while watching a movie

To me it seems like that whenever the headset is "unreachable" for just a second or so, that second is not skipped, but send to the headset when it's reachable again. That's where the lag comes from.
This also happens on a clean Fedora 17 installation.

The only solution i found so far is to switch off the headset and switch it on again.
I'm using gnome3 and pulseaudio with the standard configuration

Any help is appreciated.

Thanks in advance,

I just filed a bug report here https://bugs.freedesktop.org/show_bug.cgi?id=52364


robert

Last edited by RobertBuhren (2012-07-22 18:03:23)

Offline

#2 2012-07-22 14:14:16

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 260
Website

Re: Pulseaudio + Bluetooth headset = Lags

i had the same issue 3 or 4 month ago.
I've abandoned it because i can't get it out.

Only a stuff: did u try with different headset? My chinese one has this kind of problem, but a Motorola one works fine.

Offline

#3 2012-07-22 15:32:18

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Re: Pulseaudio + Bluetooth headset = Lags

I don't have any different headset to try it, but my headset is an "AKG K830BT". It works flawlessly with my android mobile and a ~20€ bluetooth transmitter. So i assume that somehow pulseaudio is to blame.

Here's the log of what happens when the sound stops:

Jul 22 16:45:37 robert-laptop pulseaudio[649]: [bluetooth] module-bluetooth-device.c: Skipping 898816643 us (= 158551252 bytes) in audio stream
Jul 22 16:45:37 robert-laptop pulseaudio[649]: [bluetooth] xmalloc.c: Assertion 'size < (1024*1024*96)' failed at pulse/xmalloc.c:63, function pa_xmalloc(). Aborting.
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/HFPAG
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/HFPHS
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/A2DPSource
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/A2DPSink
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/HFPAG
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/HFPHS
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/A2DPSource
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint unregistered: sender=:1.45 path=/MediaEndpoint/A2DPSink
Jul 22 16:45:37 robert-laptop pulseaudio[2238]: [pulseaudio] main.c: User-configured server at {8d1baaa156b67c951482c53900000a85}unix:/tmp/pulse-lSwmHMqKtGSl/native, which appears to be local. Probing deeper.
Jul 22 16:45:37 robert-laptop pulseaudio[2240]: [pulseaudio] main.c: User-configured server at {8d1baaa156b67c951482c53900000a85}unix:/tmp/pulse-lSwmHMqKtGSl/native, which appears to be local. Probing deeper.
Jul 22 16:45:37 robert-laptop pulseaudio[2239]: [pulseaudio] main.c: User-configured server at {8d1baaa156b67c951482c53900000a85}unix:/tmp/pulse-lSwmHMqKtGSl/native, which appears to be local. Probing deeper.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Successfully made thread 2245 of process 2245 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Supervising 5 threads of 2 processes of 2 users.
Jul 22 16:45:37 robert-laptop pulseaudio[2245]: [pulseaudio] pid.c: Stale PID file, overwriting.
Jul 22 16:45:37 robert-laptop pulseaudio[2241]: [pulseaudio] main.c: User-configured server at {8d1baaa156b67c951482c53900000a85}unix:/tmp/pulse-lSwmHMqKtGSl/native, which appears to be local. Probing deeper.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Successfully made thread 2248 of process 2245 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Supervising 6 threads of 2 processes of 2 users.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Successfully made thread 2249 of process 2245 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Supervising 7 threads of 2 processes of 2 users.
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/HFPAG
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/HFPHS
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource
Jul 22 16:45:37 robert-laptop bluetoothd[371]: bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSink
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/HFPAG
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/HFPHS
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource
Jul 22 16:45:37 robert-laptop bluetoothd[371]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSink
Jul 22 16:45:37 robert-laptop pulseaudio[2245]: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on...y" doesn't exis
Jul 22 16:45:37 robert-laptop pulseaudio[2245]: [pulseaudio] bluetooth-util.c: org.bluez.HandsfreeGateway.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on...y" doesn't exis
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Successfully made thread 2250 of process 2245 (/usr/bin/pulseaudio) owned by '1000' RT at priority 5.
Jul 22 16:45:37 robert-laptop rtkit-daemon[512]: Supervising 8 threads of 2 processes of 2 users.
Jul 22 16:45:38 robert-laptop rtkit-daemon[512]: Successfully made thread 2254 of process 2254 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 22 16:45:38 robert-laptop rtkit-daemon[512]: Supervising 9 threads of 3 processes of 2 users.
Jul 22 16:45:38 robert-laptop pulseaudio[2254]: [pulseaudio] pid.c: Daemon already running.
Jul 22 16:45:38 robert-laptop rtkit-daemon[512]: Successfully made thread 2256 of process 2256 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 22 16:45:38 robert-laptop rtkit-daemon[512]: Supervising 9 threads of 3 processes of 2 users.
Jul 22 16:45:38 robert-laptop pulseaudio[2256]: [pulseaudio] pid.c: Daemon already running.
Jul 22 16:45:38 robert-laptop rtkit-daemon[512]: Successfully made thread 2258 of process 2258 (/usr/bin/pulseaudio) owned by '1000' high priority at nice level -11.
Jul 22 16:45:38 robert-laptop rtkit-daemon[512]: Supervising 9 threads of 3 processes of 2 users.
Jul 22 16:45:38 robert-laptop pulseaudio[2258]: [pulseaudio] pid.c: Daemon already running.

To me this line looks interesting:

Jul 22 16:45:37 robert-laptop pulseaudio[649]: [bluetooth] xmalloc.c: Assertion 'size < (1024*1024*96)' failed at pulse/xmalloc.c:63, function pa_xmalloc(). Aborting.

It seems like pulseaudio crashes completly and restarts afterwards.

Regards,

Robert

Offline

#4 2012-07-22 17:44:18

RobertBuhren
Member
Registered: 2011-09-05
Posts: 59

Re: Pulseaudio + Bluetooth headset = Lags

I just tested this again on the clean Fedora installation and i was unable to reproduce this. Fedora is using pulseaudio 1.1!

Maybe i'll try downgrading pulseaudio if it's possible...

Offline

#5 2013-08-22 14:08:55

Vilius
Member
From: Dushanbe, Tajikistan
Registered: 2012-01-05
Posts: 26
Website

Re: Pulseaudio + Bluetooth headset = Lags

I also have terrible lag with my Parrot Zik headphones. The problem seems to be similar to that of the OP. When I pair my headphones, they work fine, then after some time the sound starts to lag until the audio is very late (about 3-4 seconds, or so). Headphones and my Bluetooth device work fine on Windows machine. I also use the headphones with my Android phone, and they work very well.

Commenting load-module module-suspend-on-idle in /etc/pulse/default.pa doesn't seem to help.

Offline

#6 2014-02-25 06:32:00

Procedural
Member
Registered: 2013-09-27
Posts: 17
Website

Re: Pulseaudio + Bluetooth headset = Lags

Wow, the thread is from 2011 but still have no solution? I'm experiencing Vilius's problem with Jaybird Sprint bluetooth headset, - works fine on Android, but starts lagging with pulseaudio I guess (or whatever cause it)

Offline

#7 2014-03-26 18:34:18

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Pulseaudio + Bluetooth headset = Lags

Vilius & Procedural, do not necrobump threads. https://wiki.archlinux.org/index.php/Fo … Bumping.22

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB