Skip to content

Instantly share code, notes, and snippets.

@MRo47
Last active February 5, 2022 22:41
Show Gist options
  • Save MRo47/6cfe6fda96450b115c68604786ccc3b5 to your computer and use it in GitHub Desktop.
Save MRo47/6cfe6fda96450b115c68604786ccc3b5 to your computer and use it in GitHub Desktop.
Fix for bluetooth audio device freezing video/spotify or no audio issue in Ubuntu. This is a known bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1589008
#!/bin/bash
# I like to place this file in ~/.scripts/bt_reconnect.sh
# Then assign a keyboard shortcut (CTRL + R) to run this script.
# This can be done on the keyboard shortcut app supplied with Ubuntu desktop.
# Make sure the script has executable permissions: chmod +x ~/.scripts/bt_reconnect.sh
# In the shortcut command enter the full path without using ~ or $HOME
bluetoothctl disconnect <your headset mac address>
systemctl --user restart pulseaudio
bluetoothctl connect <your headset mac address>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment