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.

4
  • 1
    For the Bluetooth issue, A bios upgrade resolved the issue for me.
    – user852451
    Aug 22, 2021 at 5:03
  • Can you confirm that the script is NOT running? Execute dmesg and see if your script is in face called or not. Don't post it, just let us know if you found it in there. Aug 22, 2021 at 5:39
  • Yeah, I don't see it running.
    – Avatar
    Aug 22, 2021 at 6:00
  • Please edit your post to add new information, properly formatted. Information added via comments is hard for you to format, hard for us to read and ignored by future readers. Please click edit and add that vital information to your question so all the facts we need are in the question. Please don't use Add Comment, since that's our uplink to you. All facts about your system should go in the Question with edit
    – waltinator
    Aug 22, 2021 at 16:19

0

You must log in to answer this question.

Browse other questions tagged .