![]() #!/bin/bashīLUEZCARD=$(pactl list cards short | egrep -o bluez.*]) Neither of these are available with my LG Tones, for example, but they are with other devices like my Sony headset. For instance, in the following code, which was originally posted by that person, it apparently has profiles named a2dp and hsp. Some devices have different profile names than what that poster has with his Bluetooth speakers. The top reply here works, but not for every Bluetooth audio device. Whenever you connect and notice the lag, you should press the keyboard shortcut chosen above to attempt to fix the latency - hopefully it works for you! What this does is force the PulseAudio system to resynchronize the audio being sent to your headset/speakers by switching profiles from ad2p -> hsp -> a2dp, thus hopefully getting rid of any latency. Click Apply, and then click on the right where it says Disabled to set up a keyboard shortcut to execute the script. ![]() ![]() Go to, and create a custom shortcut name it whatever you want, with the command as /home/$USER/pabluezswitch.sh (substitute with the appropriate path). Make the file executable by opening a terminal and typing chmod +x ~/pabluezswitch.sh sh file in your home directory, say /home/brillout/pabluezswitch.sh: #!/bin/bashīluezcard=$(pactl list cards short | awk '/bluez/') Try this:įirst, delete and re-pair your Bluetooth device. If you're looking for a culprit, I'd look at Ubuntu's sound system, PulseAudio first, and then your Bluetooth receiver. Auto-switching Bluetooth profiles to re-initialize PulseAudio Something similar in concept to Sri's answer almost always works for me, and I need to do it only once per connect. No, this is not normal but I've had a similar problem occasionally with my Altec Lansing iMT525 Bluetooth Speakers.
0 Comments
Leave a Reply. |