Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bt-device refuses to connect to an already added (but disconnected) device #24

Open
rathann opened this issue Apr 4, 2018 · 5 comments

Comments

@rathann
Copy link

rathann commented Apr 4, 2018

When using bluez-tools commit 7cb788c (Fedora 27 package bluez-tools-0.2.0-0.7.git20170912.7cb788c.fc27.x86_64), it's not possible to reconnect an already added device. Disconnection works and using bluetoothctl from bluez to connect also works:

$ bluetoothctl 
[NEW] Controller 7C:7A:91:xx:xx:xx localhost.localdomain [default]
[NEW] Device 50:1A:A5:xx:xx:xx Jabra EVOLVE 65
Agent registered
[bluetooth]# connect 50:1A:A5:xx:xx:xx
Attempting to connect to 50:1A:A5:xx:xx:xx
[CHG] Device 50:1A:A5:xx:xx:xx Connected: yes
Connection successful
[CHG] Device 50:1A:A5:xx:xx:xx ServicesResolved: yes
[Jabra EVOLVE 65]# quit
Agent unregistered
[DEL] Controller 7C:7A:91:xx:xx:xx localhost.localdomain [default]
$ bt-device -l
Added devices:
Jabra EVOLVE 65 (50:1A:A5:xx:xx:xx)
$ bt-device -d 50:1A:A5:xx:xx:xx
Disconnecting: 50:1A:A5:xx:xx:xx
Done
$ bt-device -c '50:1A:A5:xx:xx:xx'
Connecting to: 50:1A:A5:xx:xx:xx
Error: GDBus.Error:org.bluez.Error.AlreadyExists: Already Exists
@mgsloan
Copy link

mgsloan commented Sep 4, 2018

I get the same issue with a bluetooth headset. Thanks for mentioning that it works with bluetoothctl. Going to just automate driving that from a script..

@rohantmp
Copy link

rohantmp commented Feb 3, 2019

Exact same issue here with a bluetooth speaker.

Can connect and disconnect non-interactively using bluetoothctl as well

$ bluetoothctl disconnect 50:1A:A5:xx:xx:xx
Attempting to disconnect from 50:1A:A5:xx:xx:xx
[CHG] Device 50:1A:A5:xx:xx:xx ServicesResolved: no
Successful disconnected
$ bluetoothctl connect 50:1A:A5:xx:xx:xx
Attempting to connect to 50:1A:A5:xx:xx:xx
[CHG] Device 50:1A:A5:xx:xx:xx Connected: yes
Connection successful

@gilgongo
Copy link

I can also reproduce this on Ubuntu 18.04 (package bluez-tools 0.2.0~20140808-5build1 amd64)

@hiteshposhia
Copy link

bt-device -l
bluetoothctl connect 28:44:A9:E6:E7:95

@scottwn
Copy link

scottwn commented Apr 14, 2021

Same issue on RHEL8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants