Bluetooth mouse is not able to connect

Bug #1821929 reported by Pavel Moukhataev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
New
Undecided
Unassigned

Bug Description

I recently bought not expensive wireless mouse with bluetooth support:
https://www.aliexpress.com/item/Wireless-Mouse-Bluetooth-Mouse-Silent-Computer-Mouse-PC-Mause-Wireless-Rechargeable-Ergonomic-Optical-USB-Mice-2/32879862474.html?spm=a2g0s.12269583.0.0.36ab310dUGrVZS

I works in MacOS X and Windows but doesn't work in Linux. I suppose I can debug that mouse under Windows to collect more information if I have proper instructions.

I collected some information about that mouse:
# uname -a
Linux asus-N752VX 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 0bda:8763 Realtek Semiconductor Corp. (BT usb)
Bus 001 Device 002: ID 0bda:57f6 Realtek Semiconductor Corp. (Web cam)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

# usb-devices
T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=04 Dev#= 6 Spd=12 MxCh= 0
D: Ver= 2.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0bda ProdID=8763 Rev=02.00
S: Manufacturer=Realtek
S: Product=Bluetooth Radio
S: SerialNumber=00e04c000001
C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb

# bluetoothctl --version
bluetoothctl: 5.48

# hciconfig -a
hci0: Type: Primary Bus: USB
    BD Address: 94:E9:79:1A:89:1D ACL MTU: 820:8 SCO MTU: 255:16
    UP RUNNING PSCAN
    RX bytes:1604 acl:0 sco:0 events:170 errors:0
    TX bytes:28036 acl:0 sco:0 commands:166 errors:0
    Features: 0xff 0xff 0xff 0xfe 0xdb 0xff 0x7b 0x87
    Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
    Link policy: RSWITCH HOLD SNIFF PARK
    Link mode: SLAVE ACCEPT
    Name: 'asus-N752VX'
    Class: 0x1c010c
    Service Classes: Rendering, Capturing, Object Transfer
    Device Class: Computer, Laptop
    HCI Version: 4.0 (0x6) Revision: 0xe3e
    LMP Version: 4.0 (0x6) Subversion: 0x4380
    Manufacturer: Realtek Semiconductor Corporation (93)

# bluetoothctl
[NEW] Controller 94:E9:79:1A:89:1D asus-N752VX [default]
[NEW] Device 5A:4B:3C:0E:07:B2 Bluetooth Mouse 4.0

# show
Controller 94:E9:79:1A:89:1D (public)
    Name: asus-N752VX
    Alias: asus-N752VX
    Class: 0x001c010c
    Powered: yes
    Discoverable: no
    Pairable: yes
    UUID: Headset AG (00001112-0000-1000-8000-00805f9b34fb)
    UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
    UUID: OBEX File Transfer (00001106-0000-1000-8000-00805f9b34fb)
    UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
    UUID: OBEX Object Push (00001105-0000-1000-8000-00805f9b34fb)
    UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
    UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
    UUID: IrMC Sync (00001104-0000-1000-8000-00805f9b34fb)
    UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
    UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb)
    UUID: Vendor specific (00005005-0000-1000-8000-0002ee000001)
    UUID: Message Notification Se.. (00001133-0000-1000-8000-00805f9b34fb)
    UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
    UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
    UUID: Headset (00001108-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v1D6Bp0246d0530
    Discovering: no

# devices
Device 5A:4B:3C:0E:07:B2 Bluetooth Mouse 4.0

# info 5A:4B:3C:0E:07:B2
Device 5A:4B:3C:0E:07:B2 (public)
    Name: Bluetooth Mouse 4.0
    Alias: Bluetooth Mouse 4.0
    Class: 0x00002580
    Icon: input-mouse
    Paired: yes
    Trusted: yes
    Blocked: no
    Connected: no
    LegacyPairing: no
    UUID: Human Interface Device... (00001124-0000-1000-8000-00805f9b34fb)
    UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
    Modalias: usb:v0A5Cp0001d0129

# paired-devices
Device 5A:4B:3C:0E:07:B2 Bluetooth Mouse 4.0

# trust 5A:4B:3C:0E:07:B2
Changing 5A:4B:3C:0E:07:B2 trust succeeded

# connect 5A:4B:3C:0E:07:B2
Attempting to connect to 5A:4B:3C:0E:07:B2
Failed to connect: org.bluez.Error.Failed

# rfkill list
0: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: no
1: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no

/var/log/syslog:
16:34:35 asus-N752VX bluetoothd[1313]: src/device.c:connect_profiles() /org/bluez/hci0/dev_5A_4B_3C_0E_07_B2 (all), client :1.197
16:34:35 asus-N752VX bluetoothd[1313]: profiles/input/device.c:input_device_connect()
16:34:35 asus-N752VX bluetoothd[1313]: Can't get HIDP connection info
16:34:35 asus-N752VX bluetoothd[1313]: src/service.c:change_state() 0x55e9a562e690: device 5A:4B:3C:0E:07:B2 profile input-hid state changed: disconnected -> connecting (0)
16:34:40 asus-N752VX bluetoothd[1313]: src/adapter.c:connect_failed_callback() hci0 5A:4B:3C:0E:07:B2 status 4
16:34:40 asus-N752VX bluetoothd[1313]: plugins/policy.c:conn_fail_cb() status 4
16:34:40 asus-N752VX bluetoothd[1313]: src/adapter.c:bonding_attempt_complete() hci0 bdaddr 5A:4B:3C:0E:07:B2 type 0 status 0x4
16:34:40 asus-N752VX bluetoothd[1313]: src/device.c:device_bonding_complete() bonding (nil) status 0x04
16:34:40 asus-N752VX bluetoothd[1313]: src/device.c:device_bonding_failed() status 4
16:34:40 asus-N752VX bluetoothd[1313]: src/adapter.c:resume_discovery()
16:34:40 asus-N752VX bluetoothd[1313]: connect error: Host is down (112)
16:34:40 asus-N752VX bluetoothd[1313]: src/service.c:change_state() 0x55e9a562e690: device 5A:4B:3C:0E:07:B2 profile input-hid state changed: connecting -> disconnected (-5)
16:34:40 asus-N752VX bluetoothd[1313]: src/device.c:device_profile_connected() input-hid Input/output error (5)
16:34:40 asus-N752VX bluetoothd[1313]: src/device.c:device_profile_connected() returning response to :1.197

# sudo btmon --write hcitrace.snoop
Bluetooth monitor ver 5.48
= Note: Linux version 4.15.0-46-generic (x86_64) 0.203123
= Note: Bluetooth subsystem version 2.22 0.203126
= New Index: 94:E9:79:1A:89:1D (Primary,USB,hci0) [hci0] 0.203128
= Open Index: 94:E9:79:1A:89:1D [hci0] 0.203128
= Index Info: 94:E9:79:1A:89:1D (Realtek Semiconductor Corporation) [hci0] 0.203129
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0002} 0.203130
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 0.203131
@ MGMT Open: btmon (privileged) version 1.14 {0x0003} 0.203160
= bluetoothd: Can't get HIDP connection info 6.279656
< HCI Command: Create Connection (0x01|0x0005) plen 13 #1 [hci0] 6.279733
        Address: 5A:4B:3C:0E:07:B2 (OUI 5A-4B-3C)
        Packet type: 0xcc18
          DM1 may be used
          DH1 may be used
          DM3 may be used
          DH3 may be used
          DM5 may be used
          DH5 may be used
        Page scan repetition mode: R2 (0x02)
        Page scan mode: Mandatory (0x00)
        Clock offset: 0x0000
        Role switch: Allow slave (0x01)
> HCI Event: Command Status (0x0f) plen 4 #2 [hci0] 6.281736
      Create Connection (0x01|0x0005) ncmd 2
        Status: Success (0x00)
> HCI Event: Connect Complete (0x03) plen 11 #3 [hci0] 11.401689
        Status: Page Timeout (0x04)
        Handle: 1
        Address: 5A:4B:3C:0E:07:B2 (OUI 5A-4B-3C)
        Link type: ACL (0x01)
        Encryption: Disabled (0x00)
@ MGMT Event: Connect Failed (0x000d) plen 8 {0x0003} [hci0] 11.401737
        BR/EDR Address: 5A:4B:3C:0E:07:B2 (OUI 5A-4B-3C)
        Status: Connect Failed (0x04)
@ MGMT Event: Connect Failed (0x000d) plen 8 {0x0002} [hci0] 11.401737
        BR/EDR Address: 5A:4B:3C:0E:07:B2 (OUI 5A-4B-3C)
        Status: Connect Failed (0x04)
@ MGMT Event: Connect Failed (0x000d) plen 8 {0x0001} [hci0] 11.401737
        BR/EDR Address: 5A:4B:3C:0E:07:B2 (OUI 5A-4B-3C)
        Status: Connect Failed (0x04)
= bluetoothd: connect error: Host is down (112) 11.403174

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: bluez 5.48-0ubuntu3.1 [modified: lib/systemd/system/bluetooth.service]
ProcVersionSignature: Ubuntu 4.15.0-46.49-generic 4.15.18
Uname: Linux 4.15.0-46-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Mar 27 16:54:12 2019
InstallationDate: Installed on 2018-05-01 (330 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
InterestingModules: rfcomm bnep btusb bluetooth
MachineType: ASUSTeK COMPUTER INC. N752VX
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-46-generic root=UUID=1365c792-1a17-47ad-8c37-f738d0645d3d ro debug ignore_loglevel nosplash pcie_aspm=off
SourcePackage: bluez
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/18/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: N752VX.301
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: N752VX
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: ATN12345678901234567
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrN752VX.301:bd08/18/2016:svnASUSTeKCOMPUTERINC.:pnN752VX:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnN752VX:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.family: N
dmi.product.name: N752VX
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.
hciconfig:
 hci0: Type: Primary Bus: USB
  BD Address: 94:E9:79:1A:89:1D ACL MTU: 820:8 SCO MTU: 255:16
  UP RUNNING PSCAN
  RX bytes:2240 acl:0 sco:0 events:185 errors:0
  TX bytes:28123 acl:0 sco:0 commands:177 errors:0

Revision history for this message
Pavel Moukhataev (m-pashka) wrote :
Revision history for this message
Pavel Moukhataev (m-pashka) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.