Ask Your Question

how to connect a bluetooth device and make it trusted using terminal on Fedora 25

asked 2017-02-25 06:00:54 -0500

powergame gravatar image

updated 2017-02-25 06:16:46 -0500

Currently, I use blueman-manager 2.0.4 GUI to connect my Android phone to my laptop running Fedora 25 x86_64. As of now, in order to use phone as audio input to my computer, I have to turn on the Bluetooth on the phone, and then open blueman-manager GUI to connect the device. I want to mark the device as trusted for blueman-manager so that it connects automatically to the phone as soon as the phone has its Bluetooth turned on. That part (the golden star icon on the toolbar or Trust option in the Device menu) does not work, so I wondered if and how I could connect to and make trusted my phone on the machine via terminal, e.g. using bluetoothctl.

image description

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-25 06:07:31 -0500

powergame gravatar image

I was about to finish my question when I discovered bluetoothctl utility on my machine, and I couldn't believe how easy it was to mark my device as trusted. Once the device was already connected using blueman-manager, I ran the following command:

[john@localhost ~]$ bluetoothctl
[NEW] Controller 70:F3:95:55:92:5F localhost.localdomain [default]
[NEW] Device XX:6E:XX:28:DA:XX My Phone

So my device with its address (fake here), was displayed, and then I listed the commands by typing help, one of the commands was trust. So,

[My Phone]# trust XX:6E:XX:28:DA:XX
[CHG] Device XX:6E:XX:28:DA:XX Trusted: yes
Changing XX:6E:XX:28:DA:XX trust succeeded

did the trick, and now as soon as my phone's Bluetooth is turned on it automatically connects to my laptop as audio source! Thanks for reading.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-02-25 06:00:54 -0500

Seen: 7,871 times

Last updated: Feb 25 '17