Connect Bluetooth Speaker (Device) on Startup [Linux]
What makes us different from other similar websites? › Forums › Tech › Connect Bluetooth Speaker (Device) on Startup [Linux]
Tagged: Auto Start, Bluetooth, Linux, Speaker, Xubuntu
- This topic has 0 replies, 1 voice, and was last updated 2 years, 4 months ago by thumbtak.
Viewing 1 post (of 1 total)
- AuthorPosts
- July 31, 2022 at 2:12 pm #6751thumbtakKeymaster
- Pair the device as you normally would. This is to get the Bluetooth address.
- Find the Bluetooth address. An example is “18:13:C2:D4:E4:EF”.
- Open terminal and run the following command …
$ bluetoothctl
- Now connect the device by running the following command …
$ connect 18:13:C2:D4:E4:EF
Make sure you replace the address with the Bluetooth address of your device, that you want to connect. If everything works, and connects like it should, you did it correctly. - Run the following commands. This is going to be a place you can save your scripts. For this example, we saved them in a folder located in your home folder that can be used for other scripts. You can use any location you want. This is just a suggestion.
$ cd ~/Documents
$ mkdir Scripts
- The next command is an example of a file you will create that will hold the commands you need, which will run on a system start.
$ mousepad speaker.sh
- This is an example of what the file should look like.
- Make sure you save the file.
- Run the following command to open your startup applications configuration software. This command could be different on different flavors of Linux.
$ xfce4-session-settings
- Do the following, which you see in the picture. The name and command location, might be different. This is just an example.
- Now you need to save any tasks you are doing on your computer, make sure the device is turned on, and reboot your system. To reboot the system, using terminal, run the following command.
$ sudo shutdown -r now
- If the device auto connects when you started your computer, you did it correctly.
- AuthorPosts
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.