LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How can I force Blueman to use ALSA? (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-force-blueman-to-use-alsa-4175609854/)

Sol33t303 07-14-2017 09:21 AM

How can I force Blueman to use ALSA?
 
Recently, I have been having lots of issues with my Bluetooth Headset's audio desyncing with video, so I have uninstalled PulseAudio thinking that it was the problem and now I'm trying to use ALSA, but since uninstalling PulseAudio Blueman Bluetooth manager refuses to connect to my headset. So how can I fix this? I'm using Ubuntu 16.04, I can try and provide more info if anybody needs it. (I got around this issue before by making a script that disconnected then reconnected my headset, however, it causes my games to close and with some, it requires me to restart my game)

BW-userx 07-14-2017 09:31 AM

Quote:

Originally Posted by Sol33t303 (Post 5734837)
Recently, I have been having lots of issues with my Bluetooth Headset's audio desyncing with video, so I have uninstalled PulseAudio thinking that it was the problem and now I'm trying to use ALSA, but since uninstalling PulseAudio Blueman Bluetooth manager refuses to connect to my headset. So how can I fix this? I'm using Ubuntu 16.04, I can try and provide more info if anybody needs it. (I got around this issue before by making a script that disconnected then reconnected my headset, however, it causes my games to close and with some, it requires me to restart my game)

OH what -- ?? did you tried installing PulseAudio volume control? then when you hook up to your headset open that up and find that drop down list and set it to your bluetooth device thingy -- it has been a long time sence I've done that so I do not remember actual steps and names, only that it is in there and just needs to be changed to direct sound to your bluetooth.

so you might want to put that back in your system.

as far as this goes

audio desyncing with video

yeah it has to be set for delay I forget something like .xxx milsecs due to the delay it takes for the siganl to go from your system to your head set. to sync it with your video..

I do have to say Microsoft windows does a let better job at this when watching vids and listing to them via bluetooth - the sync is right on spot whereas with linux it lags.

Sol33t303 07-14-2017 09:39 AM

Quote:

Originally Posted by BW-userx (Post 5734842)
OH what -- ?? did you tried installing PulseAudio volume control? then when you hook up to your headset open that up and find that drop down list and set it to your bluetooth device thingy -- it has been a long time sence I've done that so I do not remember actual steps and names, only that it is in there and just needs to be changed to direct sound to your bluetooth.

so you might want to put that back in your system.

Of course, I've installed PulseAudio volume control if I remember correctly I think Ubuntu 16.04 came preinstalled with it (I switched to Linux 7 months ago so I can't quite remember). I also setup PulseAudio Volume Control to automatically set a newly connected device as the default device so it did that automatically (I did it using another script I found). However to resync the video I had to run the script that I had mapped to ctrl+R which disconnected then reconnected my headset (also triggering my other script).
EDIT: Sorry when making this reply only half your reply was there, the audio only starts to desync after around 2-10 minutes so it couldn't simply just be the Bluetooth signal.

BW-userx 07-14-2017 09:54 AM

Quote:

Originally Posted by Sol33t303 (Post 5734851)
Of course, I've installed PulseAudio volume control if I remember correctly I think Ubuntu 16.04 came preinstalled with it (I switched to Linux 7 months ago so I can't quite remember). I also setup PulseAudio Volume Control to automatically set a newly connected device as the default device so it did that automatically (I did it using another script I found). However to resync the video I had to run the script that I had mapped to ctrl+R which disconnected then reconnected my headset (also triggering my other script).
EDIT: Sorry when making this reply only half your reply was there, the audio only starts to desync after around 2-10 minutes so it couldn't simply just be the Bluetooth signal.

sorry for the bad info then, all I do remember when i was playing with bluetooth and linux is that I had to try and set my sync for audio and it was always a delay like a badly dubbed movie, that buffer for it maybe getting full too that is why it got like that.

as I am putting my money on that it uses a buffer for the sound. so at two minutes it can no longer keep up ..

but it was due to that bad sync with videos I went back to plugging in my ear buds, even though I noticed that Widows does not have this problem. it auto syncs the sound with the video but I do not like using Windows. I only did that or watch a video while I am syncing my iphone music but that has nothing to do with this.

here is a page I just found using key words "Linux bluetooth alsa"

Bluetooth/Alsa

Sol33t303 07-14-2017 10:06 AM

Quote:

Originally Posted by BW-userx (Post 5734854)
sorry for the bad info then, all I do remember when i was playing with bluetooth and linux is that I had to try and set my sync for audio and it was always a delay like a badly dubbed movie, that buffer for it maybe getting full too that is why it got like that.

as I am putting my money on that it uses a buffer for the sound. so at two minutes it can no longer keep up ..

but it was due to that bad sync with videos I went back to plugging in my ear buds, even though I noticed that Widows does not have this problem. it auto syncs the sound with the video but I do not like using Windows. I only did that or watch a video while I am syncing my iphone music but that has nothing to do with this.

here is a page I just found using key words "Linux bluetooth alsa"

Bluetooth/Alsa

Actually, I already had that exact page pulled up right now, I'll look into rather or not I can change anything about the buffers so they might be able to last longer or something, Also I have a charging station for my headset that can also act as the Bluetooth connection from my headset to my PC, however I lost the required cord to make that part work ages ago but perhaps since my PC will only be sending audio out to the station via a cord and not directly to the headset from my PCs Bluetooth perhaps using that may fix it.

BW-userx 07-14-2017 10:09 AM

Quote:

Originally Posted by Sol33t303 (Post 5734861)
Actually, I already had that exact page pulled up right now, I'll look into rather or not I can change anything about the buffers so they might be able to last longer or something, Also I have a charging station for my headset that can also act as the Bluetooth connection from my headset to my PC, however I lost the required cord to make that part work ages ago but perhaps since my PC will only be sending audio out to the station via a cord and not directly to the headset from my PCs Bluetooth perhaps using that may fix it.

hciconfig - configure Bluetooth devices

aclmtu mtu:pkt
Sets ACL MTU to to mtu bytes and ACL buffer size to pkt packets.

https://linux.die.net/man/8/hciconfig

: [ubuntu] [SOLVED] Increase sound buffer


maybe ???

Quote:

I'm using a bluetooth headset with pulseaudio. Whenever the connection
temporarily drops (e.g. by moving too far from the bt device), I get the message
in the syslog:


[bluetooth] module-bluetooth-device.c: Skipping 24275 us (= 4280 bytes) in audio
stream and the audio lags behind after that. A workaround is to suspend and resume the sink using "pactl suspend-sink 1 && pactl suspend-sink 0", after which the audio is in sync again.



Using the same headset on Windows doesn't show the same behavior.
reference:
https://bugs.freedesktop.org/show_bug.cgi?id=58746

-----------------

I lost the required cord

ebay or amazon maybe? just type in device name model and such hit search cross fingers.

Sol33t303 07-14-2017 10:43 AM

Quote:

Originally Posted by BW-userx (Post 5734863)
hciconfig - configure Bluetooth devices

aclmtu mtu:pkt
Sets ACL MTU to to mtu bytes and ACL buffer size to pkt packets.

https://linux.die.net/man/8/hciconfig

: [ubuntu] [SOLVED] Increase sound buffer


maybe ???


reference:
https://bugs.freedesktop.org/show_bug.cgi?id=58746

-----------------

I lost the required cord

ebay or amazon maybe? just type in device name model and such hit search cross fingers.

Thanks :) but now after reinstalling everything (earlier I also uninstalled bluez and blueman in an attempt to find something that would just be able to use ALSA by default) it seems that my bt headset won't connect, blueman doesn't even try searching for it to connect, though after paring it can still find it? I'm not sure how to fix that, also the cable I need is a TOSLINK audio-digital cable so I should be able to get one.

Sol33t303 07-14-2017 11:17 AM

Quote:

Originally Posted by BW-userx (Post 5734863)
hciconfig - configure Bluetooth devices

aclmtu mtu:pkt
Sets ACL MTU to to mtu bytes and ACL buffer size to pkt packets.

https://linux.die.net/man/8/hciconfig

: [ubuntu] [SOLVED] Increase sound buffer


maybe ???


reference:
https://bugs.freedesktop.org/show_bug.cgi?id=58746

-----------------

I lost the required cord

ebay or amazon maybe? just type in device name model and such hit search cross fingers.

Got my headset to connect, I had to install then load in one of the modules, also, I think I might have finally found a solution :) it looks like somebody realised a patch for PulseAudio 8.0/9.0 https://github.com/dmitryvk/pulseaud...974a422dabe85c the only problem is I'm not really sure how to install the patch,I have already downloaded the source code for both but I'm not sure exactly where to install it in PulseAudio

BW-userx 07-14-2017 11:19 AM

Quote:

Originally Posted by Sol33t303 (Post 5734888)
Got my headset to connect, I had to install then load in one of the modules, also, I think I might have finally found a solution :) it looks like somebody realised a patch for PulseAudio 8.0/9.0 https://github.com/dmitryvk/pulseaud...974a422dabe85c the only problem is I'm not really sure how to install the patch,I have already downloaded the source code for both but I'm not sure exactly where to install it in PulseAudio

thats great and I have no idea either .. looks like a job for Mr. Lx Patchman dude. -- might need to post another question on that one.

Sol33t303 07-14-2017 11:32 AM

Quote:

Originally Posted by BW-userx (Post 5734889)
thats great and I have no idea either .. looks like a job for Mr. Lx Patchman dude. -- might need to post another question on that one.

Alright, I'm going to post a second question now, thanks for the help :)

BW-userx 07-14-2017 11:51 AM

:thumbsup:


All times are GMT -5. The time now is 08:18 PM.