You are not logged in.

#1 2014-03-11 17:06:41

dragos240
Member
Registered: 2009-05-23
Posts: 189

bluetoothctl successfully pairs with device but cannot connect

Hello,

I'm trying to get my phone (nexus 4) to connect to my computer. I have bluez and bluez-utils installed. I've been able to successfully pair the device with my phone, but I can't connect to it.

Here's some output from bluetoothctl:

$ bluetoothctl 
[NEW] Controller 60:36:DD:40:E8:C6 BFL-Arch [default]
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# scan on
Discovery started
[CHG] Controller 60:36:DD:40:E8:C6 Discovering: yes
[NEW] Device 98:D6:F7:DB:84:D8 Nexus 4
[bluetooth]# pair 98:D6:F7:DB:84:D8 
Attempting to pair with 98:D6:F7:DB:84:D8
[CHG] Device 98:D6:F7:DB:84:D8 Connected: yes
[CHG] Device 98:D6:F7:DB:84:D8 Modalias: bluetooth:v001Dp1200d1436
[CHG] Device 98:D6:F7:DB:84:D8 UUIDs has unsupported type
Pairing successful
[CHG] Device 98:D6:F7:DB:84:D8 Connected: no
[bluetooth]# connect 98:D6:F7:DB:84:D8 
Attempting to connect to 98:D6:F7:DB:84:D8
Failed to connect: org.bluez.Error.Failed
[bluetooth]# 

I'm trying to set up my phone to send keyboard input to act as a kind of remote control for pianobar. Does anyone have an idea why this might not connect?

-Nia

EDIT: I've looked into the problem a little bit more and it seems like it has something to do with audio. I've set the default agent to KeyboardOnly, but the error still persists. Despite this, I've tried installing pulseaudio-git, which hasn't messed anything in my system up just yet, but has done nothing to fix the problem. I also tried reverting to bluez4. bluetoothctl refused to acknowledge hci0 (my device) and wouldn't work, the bluez commands worked somewhat, bluez-simple agent works, but you need to specify hci0 before the address, this works. Any other bluez command will fail. I've reinstalled bluez since (bluez5).

Last edited by dragos240 (2014-03-11 17:52:22)

Offline

Board footer

Powered by FluxBB