elementary / switchboard-plug-bluetooth

Switchboard Bluetooth Plug
GNU General Public License v3.0
24 stars 10 forks source link

Automatically connect after pairing. #48

Open arshubham opened 6 years ago

arshubham commented 6 years ago

I don't know if this is intended, but in juno beta when a new device is discovered Pair button is showed. On clicking it the button changes to Disconnect and subheading to Disconnected but only momentarily. The button then shows Connect and subheading shows Paired. So, I have to click connect again to actually connect my Bluetooth headset.

In summary, it takes two clicked and a wait in between to connect a headset in elementary, while on gnome 3.28 on 18.04 it takes only one click.

Bluetooth Chipset: rtl8723be Bluetooth Headset: iBall Powebeats.

Output from bluetoothctl

[CHG] Controller 70:77:81:BF:8D:CC Discovering: yes
[NEW] Device 5A:5A:5A:A6:0A:44 iBall Power Beats // first click here
[CHG] Device 5A:5A:5A:A6:0A:44 Connected: yes
[CHG] Device 5A:5A:5A:A6:0A:44 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device 5A:5A:5A:A6:0A:44 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device 5A:5A:5A:A6:0A:44 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 5A:5A:5A:A6:0A:44 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 5A:5A:5A:A6:0A:44 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device 5A:5A:5A:A6:0A:44 ServicesResolved: yes
[CHG] Device 5A:5A:5A:A6:0A:44 Paired: yes   //shows connected the first time
[CHG] Device 5A:5A:5A:A6:0A:44 ServicesResolved: no 
[CHG] Device 5A:5A:5A:A6:0A:44 Connected: no  
[CHG] Device 5A:5A:5A:A6:0A:44 Connected: yes //second click here
[CHG] Device 5A:5A:5A:A6:0A:44 ServicesResolved: yes
--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/60455412-automatically-connect-after-pairing?utm_campaign=plugin&utm_content=tracker%2F59778156&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F59778156&utm_medium=issues&utm_source=github).
peteruithoven commented 6 years ago

Same happens on Dell XPS 15 (9550) with a Atheros Qualcomm Killer 1535 802.11ac 2x2 when pairing with:

This issue doesn't occur with my Logitech M720 Triathlon bluetooth mouse. Maybe it's an audio device specific issue?

peteruithoven commented 5 years ago

@arshubham arshubham do you experience the same behaviour when you turn on previously connected audio devices? Or is this something you only see after pairing?

arshubham commented 5 years ago

I experience this only after pairing. If the device is already paired, I just need to press connect once and it will be connected. However it is not as smooth as on windows. When connecting a already paired device it is connected and workes fine, however after a few minutes my headphone says, pairing failed. The latter seems to be a bluez problem as it affects all distros.

peteruithoven commented 5 years ago

@arshubham But what happens when you turn on a previously connected device? (And don't do anything on your computer) You don't see it momentarily connect? (like you see after pairing)

arshubham commented 5 years ago

Ok, it doesn't connect automatically if it is already paired, never did on linux. No output in bluetoothctl. just shows devices as paired