LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-14-2017, 09:21 AM   #1
Sol33t303
Member
 
Registered: Jul 2017
Posts: 102

Rep: Reputation: Disabled
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)
 
Old 07-14-2017, 09:31 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by Sol33t303 View Post
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.

Last edited by BW-userx; 07-14-2017 at 09:34 AM.
 
1 members found this post helpful.
Old 07-14-2017, 09:39 AM   #3
Sol33t303
Member
 
Registered: Jul 2017
Posts: 102

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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.

Last edited by Sol33t303; 07-14-2017 at 09:41 AM.
 
Old 07-14-2017, 09:54 AM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by Sol33t303 View Post
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
 
Old 07-14-2017, 10:06 AM   #5
Sol33t303
Member
 
Registered: Jul 2017
Posts: 102

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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.
 
Old 07-14-2017, 10:09 AM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by Sol33t303 View Post
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 mtukt
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.

Last edited by BW-userx; 07-14-2017 at 10:15 AM.
 
1 members found this post helpful.
Old 07-14-2017, 10:43 AM   #7
Sol33t303
Member
 
Registered: Jul 2017
Posts: 102

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
hciconfig - configure Bluetooth devices

aclmtu mtukt
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.
 
Old 07-14-2017, 11:17 AM   #8
Sol33t303
Member
 
Registered: Jul 2017
Posts: 102

Original Poster
Rep: Reputation: Disabled
Lightbulb

Quote:
Originally Posted by BW-userx View Post
hciconfig - configure Bluetooth devices

aclmtu mtukt
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
 
Old 07-14-2017, 11:19 AM   #9
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
Quote:
Originally Posted by Sol33t303 View Post
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.
 
1 members found this post helpful.
Old 07-14-2017, 11:32 AM   #10
Sol33t303
Member
 
Registered: Jul 2017
Posts: 102

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
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
 
Old 07-14-2017, 11:51 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Force SPDIF in ALSA mixer martinlinuxuser Linux - Software 1 03-24-2005 10:56 AM
Mandrake 10.1 N-Force 2 ALSA Sound Problems Fillado Mandriva 3 02-12-2005 05:42 PM
how to force compile mplayer with alsa darkleaf Linux - Software 4 08-18-2004 07:54 AM
Can't force MDK 10 to use ALSA on NFORCE exalted Mandriva 2 06-01-2004 12:51 AM
Force ALSA to Sound Card CrackerStealth Slackware 2 03-08-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration