I'm using a JBL T450BT headset under Ubuntu 17.04. There are random brief interruptions in audio transmission, that, when combined, create a significant latency visible when watching videos etc. (let's assume that this very problem is inextricable).
My current workaround to make sound synchronized again is to go to Sound Settings and change headset's mode from A2DP to HSP/HFP (which kills the sound whatsoever, but I don't care) and switch it back to A2DP. Analogical operation can be made with blueman
, but either way it is an irritating number of clicks to make.
Is there any other way to do that or at least to automate the method above? A single command would be most appreciated, since it can be easily assigned to a custom hotkey.