Skip to content

CurseofPerfectDays/bt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

bt

a script for restarting bluetooth driver in xUbuntu 1

  1. open terminal (typically ctrl+shift+t or super+t)
  • type:
  • nano bt 2
  1. copy into terminal:
#!/bin/bash
#restart bluetooth drivers
sudo hciconfig hci0 down
sudo rmmod btusb
sudo modprobe btusb
sudo hciconfig hci0 up
  • optional: you can add neofetch as the last line, if you have it installed & would like to see an output in terminal to verify script has run.3
  1. press ctrl+x, followed by y, & tap enter to save.

  2. now type or copy in terminal: 4

  • chmod +x bt then sudo cp /usr/bin

Now you can execute by typing bt, pressing enter, & usinge your password in terminal when you need to connect a bluetooth device!

Footnotes

  1. Particularly Pop_OS 20.04LTS. Some commands may not work on newer builds.

  2. I like nano. Please use which ever editor you like here.

  3. If it's not installed, it should be an available package. Typically sudo apt install neofetch will do the job.

    • Please note: there's some security risks for placing a simple script in /usr/bin.
    • If you prever not to take the risk, please do not use sudo cp /usr/bin. Instead execute with ./bt+enter.

About

a script for restarting bluetooth driver in xUbuntu

Resources

Stars

Watchers

Forks

Packages

No packages published