Fixing no A2DP with Bluetooth headsets on Linux

Please beware that the following instructions are suitable for media consumption only! After these changes your headset can’t make any calls without a dedicated microphone until you undo them. Having trouble with the audio quality of your Bluetooth headset on Linux? It sounds awful if you’re listening to music and videos? Well, congratulations, I had the same problem and found a solution. At least…