Thread (3 messages) 3 messages, 2 authors, 2013-09-04

Re: [BUG bluetoothd] reconnecting input devices results in org.bluez.Error.NotAvailable

From: Johan Hedberg <hidden>
Date: 2013-09-04 13:08:32

Hi David,

On Wed, Sep 04, 2013, David Herrmann wrote:
I run the following commands in bluetoothctl on bluez-5.7-1 (but I
know this bug since I started using bluetoothctl (probably 5.0 or
5.1), just didn't get around reporting it, yet. Sorry.):
  [bluetooth]# power on
    [CHG] Controller 00:25:00:50:C4:C9 Class: 0x00010c
    Changing power on succeeded
    [CHG] Controller 00:25:00:50:C4:C9 Powered: yes
  [bluetooth]# connect 00:1E:35:3B:7E:6D
    Attempting to connect to 00:1E:35:3B:7E:6D
    Connection successful
    [CHG] Device 00:1E:35:3B:7E:6D Connected: yes

Works just fine. Then I disconnect the device by removing its
batteries. bluez notices this and removes the connection:
    [CHG] Device 00:1E:35:3B:7E:6D Connected: no

However, a following connect always fails immediately:
  [bluetooth]# connect 00:1E:35:3B:7E:6D
    Attempting to connect to 00:1E:35:3B:7E:6D
    Failed to connect: org.bluez.Error.NotAvailable

Any following commands, whether "connect" or "info" on the given
device result in:
  [bluetooth]# info  00:1E:35:3B:7E:6D
    Device  00:1E:35:3B:7E:6D not available

power off -> power on doesn't help. I need to restart bluetoothd to
make it work again. The related debug log is appended below. Any hints
where to start debugging is welcome.

I tested this with two HIDP devices.
I fixed a few issues like this for 5.8. Could you try with that (or even
better with latest git) before we proceed further with this.

Johan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help