1

I'm using Ubuntu 20.04 LTS. In my laptop, Bluetooth is not enabled by default. It shows that NO Bluetooth found. Plug in a dongle to use Bluetooth. I installed Bluez bluetooth and it activates my Bluetooth but I have to run some commands in order for it to activate every time I turn on my laptop.

Commands I have to run are,

sudo /etc/init.d/bluetooth start
systemctl start bluetooth
sudo modprobe btusb 
sudo systemctl start bluetooth.service
sudo service bluetooth restart
sudo modprobe rtbth

My questions,

  1. How to run these commands automatically when the laptop turns on.
  2. Sometimes even it is activated, it shows Connection failed. Resources not ready. and It won't connect no matter how much I wait.

I tried, Putting these commands in a .sh file and including that inside rc.local and I used crontab too. Nothing seems to work.

Kindly help me in figuring it out.

Thanks.

Avatar
  • 21

0 Answers0