Re: Issue: Bluez: Bluetooth Mouse Disconnects Soon After Pairing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Naveen,

On Sun, Sep 11, 2016 at 6:06 AM, Naveen Kaje <nckaje@xxxxxxxxx> wrote:
> Hello,
> I am seeing a disconnection behavior with Bluetooth mouse (Microsoft
> Desginer Mouse). Software Baseline 3.18 based kernel and Bluez 5.41.
>
> The device is discovered with bluetoothctl. The mouse pairs briefly (for
> about 30 seconds) and then the host disconnects.
> Bluetoothctl error reads Failed to pair:
> org.bluez.Error.AuthenticationCanceled
>
> Observations:
> 1) The time it takes for the mouse to stop working is about 30 seconds
> since the pair command. This time is consistent.
>
> 2) The btmon report says Reason: Remote User Terminated Connection (0x13),
> which I found to be not entirely true.
> I hacked the transfport layer (UART) in Kernel to skip sending
> disconnection message which resulted in the Mouse device
> continuing to send reports even after this point (Observed on btmon).
>
> Bluetoothctl and btmon logs are shown below. What could I be missing?
>
> Thanks in advance for the help.
>
> ******************** Bluetoothctl log begin ****************************
> [bluetooth]# show
> Controller 44:1C:A8:6C:8F:5E
>         Name: BTHost
>         Alias: BTHost
>         Class: 0x000000
>         Powered: yes
>         Discoverable: no
>         Pairable: yes
>         UUID: Generic Attribute Profile
> (00001801-0000-1000-8000-00805f9b34fb)
>         UUID: A/V Remote Control
>  (0000110e-0000-1000-8000-00805f9b34fb)
>         UUID: PnP Information
> (00001200-0000-1000-8000-00805f9b34fb)
>         UUID: Generic Access Profile
>  (00001800-0000-1000-8000-00805f9b34fb)
>         UUID: A/V Remote Control Target
> (0000110c-0000-1000-8000-00805f9b34fb)
>         Modalias: usb:v1D6Bp0246d0529
> [bluetooth]# discoverable on
> Changing discoverable on succeeded
> [bluetooth]# pairable on
> Changing pairable on succeeded
> [bluetooth]# scan on
> Discovery started
> [CHG] Controller 44:1C:A8:6C:8F:5E Discovering: yes
> [NEW] Device F5:95:EC:5D:0F:D3 Designer Mouse
> [bluetooth]# pair F5:95:EC:5D:0F:D3
> Attempting to pair with F5:95:EC:5D:0F:D3
> [CHG] Device F5:95:EC:5D:0F:D3 Connected: yes
> [CHG] Device F5:95:EC:5D:0F:D3 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
> [CHG] Device F5:95:EC:5D:0F:D3 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
> [CHG] Device F5:95:EC:5D:0F:D3 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
> [CHG] Device F5:95:EC:5D:0F:D3 UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
> [CHG] Device F5:95:EC:5D:0F:D3 UUIDs: 00001812-0000-1000-8000-00805f9b34fb
> [CHG] Device F5:95:EC:5D:0F:D3 Modalias: usb:v045Ep0805d0110
> [Designer Mouse]# info
> Device F5:95:EC:5D:0F:D3
>         Name: Designer Mouse
>         Alias: Designer Mouse
>         Appearance: 0x03c2
>         Icon: input-mouse
>         Paired: no
>         Trusted: no
>         Blocked: no
>         Connected: yes
>         LegacyPairing: no
>         UUID: Generic Access Profile
>  (00001800-0000-1000-8000-00805f9b34fb)
>         UUID: Generic Attribute Profile
> (00001801-0000-1000-8000-00805f9b34fb)
>         UUID: Device Information
>  (0000180a-0000-1000-8000-00805f9b34fb)
>         UUID: Battery Service
> (0000180f-0000-1000-8000-00805f9b34fb)
>         UUID: Human Interface Device
>  (00001812-0000-1000-8000-00805f9b34fb)
>         Modalias: usb:v045Ep0805d0110
>         RSSI: -91
> Failed to pair: org.bluez.Error.AuthenticationCancele--

It doesn't look like you have an agent registered which is probably
why the authentication fails, try with:
> agent on
> default-agent

iirc the same mouse used to just work with more recent kernel and
latest userspace.

Luiz Augusto von Dentz
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux