Bluetooth and Mouse

Hi another question :slight_smile: so is there a way to make Zorin auto connect to my bluetooth speaker when it starts up?? right now i have to click on bluetooth icon and manually connect my speaker and I have noticed my cosair mouse isnt very smooth while using Zorin any ideas about that one

Please open a terminal and enter in

bluetoothctl

Look for your speaker in the output

To connect after the bluetooth manager prompt, type in

connect

with the device I.D. listed in the output you get above.

Now, all you need is an autostart for the above. You can create a desktop entry to do that.
It must contain:
echo “connect (YOUR DEVICE NAME)” | bluetoothctl

[Desktop Entry]
Type=Application
Exec=/bin/bash /home/(YOURDESKTOP NAME)/bin/btautoconnect.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=BTAutoConnect
X-GNOME-Autostart-Delay=5
Comment=Starts Bluetooth speaker

This will reference this bash script- Place it in your home folder ~/bin named btautoconnect.sh

!/bin/bash

sudo systemctl start bluetooth

sleep 1

echo “connect (YOUR DEVICE NAME)” | bluetoothctl

1 Like

do I put this echo “connect (YOUR DEVICE NAME)” | bluetoothctl at the end of the desktop entry?

Sorry, I edited the above.

thank you