Skip to content

Instantly share code, notes, and snippets.

@tomwojcik
Created April 6, 2021 06:59
Show Gist options
  • Save tomwojcik/3fdd0c99164f70c0d6ef72ccf7d59338 to your computer and use it in GitHub Desktop.
Save tomwojcik/3fdd0c99164f70c0d6ef72ccf7d59338 to your computer and use it in GitHub Desktop.
Not really a script but a list of commands. Random mashup of some of them will fix headphones.
# see what's the bluetooth status
bluetoothctl
# bluetooth config
sudo vi /etc/bluetooth/main.conf
# list wireless devices and if they are enabled
rfkill list
# hard reset of bluetooth
rfkill block bluetooth
rfkill unblock bluetooth
# list bluetooth devices
bt-device -l
# rm bluetooth device
bt-device -r <mac>
# restart bluetooth service
sudo service bluetooth restart
@tomwojcik
Copy link
Author

how I reset my headphones

bt-device -i "MOMENTUM 3" | grep "Address" | awk '{print $2}' | xargs bt-device -r

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment