Enabling Bluetooth Service
To enable any service at start-up, we execute the systemctl enable command.
$ sudo systemctl enable --now bluetooth.service
- sudo allows the user to run commands with the privileges of a superuser.
- enable command enables the mentioned service at boot.
- — now flag starts the mentioned service right away.
Now we can check the status of the service using the systemctl status command. It returns the activity status of the mentioned service.
$ sudo systemctl status bluetooth.service
Sometimes, the Bluetooth service may be blocked and to unblock it we need to execute the following command.
rfkill is a tool for enabling and disabling wireless devices
$ rfkill
In case it is soft-blocked, execute the following command to unblock
$ rfkill unblock bluetooth
You can run the rfkill command to check the status of Bluetooth.
Connecting To Bluetooth Devices Via CLI
The Bluetooth wireless technology is a worldwide specification for a small-form-factor, low-cost radio solution that provides links between mobile computers, mobile phones, and other portable handheld devices. You’ll find Bluetooth connectivity in smartphones, smartwatches, wireless earphones, etc.
In this article, we’ll be learning how to connect to a Bluetooth Device via CLI on Linux.
Contact Us