install bluez-deprecated
sudo dnf install bluez-deprecated
hcitool scan
should show the bluetooth devices
if not
bluetoothctl
agent on
scan on # wait for your device's address to show up here
scan off
trust MAC_ADDRESS (in my case 41:42:FF:71:7A:6B)
pair MAC_ADDRRESS(in my case 41:42:FF:71:7A:6B)
// the above comment will fail if the device is already paired
connect MAC_ADDRESS (in my case 41:42:FF:71:7A:6B)
there are simpler ways off course
bluetoothctl devices
this will show the device with the mac address
now if the device is not paired
bluetoothctl pair 41:42:FF:71:7A:6B
if this succeeds then
bluetoothctl connect 41:42:FF:71:7A:6B
to disconnect
bluetoothctl disconnect 41:42:FF:71:7A:6B
to remove the pairing
bluetoothctl remove 41:42:FF:71:7A:6B
Source:https://unix.stackexchange.com/questions/96693/connect-to-a-bluetooth-device-via-terminal
Source:https://unix.stackexchange.com/questions/96693/connect-to-a-bluetooth-device-via-terminal
Source:https://askubuntu.com/questions/758586/how-to-unpair-bluetooth-device-from-the-command-line
Source:https://www.baeldung.com/linux/bluetooth-via-terminal
No comments:
Post a Comment