Skip to contentSkip to conversation

Mouse reconnect problems since version 3.12

Bluez-devel Stefan Seyfried 2 participants 5 messages Jul 4, 2007 – Jul 6, 2007 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I recently upgraded to bluez-3.12 on my openSUSE Factory machine and now i have problems with the mouse reconnecting after a timeout.

It simply does not reconnect. Nothing in syslog nor in the output of kbluetooth which is my authorization agent.

I do not know exactly how to proceed with debugging - i tried a hcidump -X -V
when the mouse did not reconnect, and it spat out lots of stuff when i moved the mouse. But of course, i could not make any sense out of it.

So:
- what do i need to do to debug this?
- what output of which tool do you need?

This is a Logitech MX Laser mouse which worked very reliable before with a Microsoft Bluetooth dongle:

hci0: Type: USB
BD Address: 00:50:F2:EA:6B:EF ACL MTU: 377:10 SCO MTU: 16:0 UP RUNNING PSCAN ISCAN
RX bytes:2544 acl:82 sco:0 events:43 errors:0
TX bytes:786 acl:8 sco:0 commands:30 errors:0
Features: 0xff 0xfe 0x0d 0x38 0x08 0x08 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'strolchi MS dongle'
Class: 0x3e010c
Service Classes: Networking, Rendering, Capturing, Object Transfer,=
Audio
Device Class: Computer, Laptop
HCI Ver: 1.2 (0x2) HCI Rev: 0x3 LMP Ver: 1.2 (0x2) LMP Subver: 0x800
Manufacturer: Broadcom Corporation (15)

-- =

Stefan Seyfried
QA / R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out." =

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG N=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Stefan,

Quoted 10 lines

I recently upgraded to bluez-3.12 on my openSUSE Factory machine and now i have problems with the mouse reconnecting after a timeout.

It simply does not reconnect. Nothing in syslog nor in the output of kbluetooth which is my authorization agent.

I do not know exactly how to proceed with debugging - i tried a hcidump -X -V
when the mouse did not reconnect, and it spat out lots of stuff when i moved the mouse. But of course, i could not make any sense out of it.

I need to see the hcidump output. Otherwise I can't tell anything.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw
Quoted 4 lines · Marcel Holtmann

Hi Stefan,
=

Quoted 1 line

I recently upgraded to bluez-3.12 on my openSUSE Factory machine and no=

w i

Quoted 7 lines
Quoted 6 lines

have problems with the mouse reconnecting after a timeout. =

It simply does not reconnect. Nothing in syslog nor in the output of kbluetooth which is my authorization agent.
=

Quoted 7 lines
Quoted 4 lines

I do not know exactly how to proceed with debugging - i tried a hcidump -X -V
when the mouse did not reconnect, and it spat out lots of stuff when i moved the mouse. But of course, i could not make any sense out of it.

=

I need to see the hcidump output. Otherwise I can't tell anything.

HCI sniffer - Bluetooth packet analyzer ver 1.35
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 01 00 00 00 00 00  00                       .........
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 6 mode 0x00 interval 126
    Mode: Active
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 6 mode 0x02 interval 20
    Mode: Sniff

up to here this was a left button press, from here on i was moving the mouse around.

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 00 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 01 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 04 20 00 00 00  00                       .... ....
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 05 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 05 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 06 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 07 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 08 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 07 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 06 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 06 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 05 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 05 f0 ff 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 05 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 03 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 05 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 04 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 01 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 01 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 01 00 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fd 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fe 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fe 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fe 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fe 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fe 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 fe 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........
Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 00 ff 0f 00 00 00  00                       .........

Thanks,

Stefan
-- =

Stefan Seyfried
QA / R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out." =

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG N=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#3 lore raw

Hi Stefan,

Quoted 19 lines
Quoted 6 lines
Quoted 6 lines

I recently upgraded to bluez-3.12 on my openSUSE Factory machine and now i have problems with the mouse reconnecting after a timeout.

It simply does not reconnect. Nothing in syslog nor in the output of kbluetooth which is my authorization agent.

Quoted 6 lines
Quoted 4 lines

I do not know exactly how to proceed with debugging - i tried a hcidump -X -V
when the mouse did not reconnect, and it spat out lots of stuff when i moved the mouse. But of course, i could not make any sense out of it.

I need to see the hcidump output. Otherwise I can't tell anything.

HCI sniffer - Bluetooth packet analyzer ver 1.35
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 01 00 00 00 00 00  00                       .........
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

Quoted 8 lines
    status 0x00 handle 6 mode 0x00 interval 126
    Mode: Active
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 6 mode 0x02 interval 20
    Mode: Sniff

up to here this was a left button press, from here on i was moving the mouse around.

are you sure that the authorization agent is working. Maybe you wanna use adapter.SetTrusted() to make it fully trusted.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw

Hi,

Quoted 18 lines · Marcel Holtmann

Hi Stefan,

Quoted 15 lines
Quoted 1 line

I need to see the hcidump output. Otherwise I can't tell anything.

=

HCI sniffer - Bluetooth packet analyzer ver 1.35
device: hci0 snap_len: 1028 filter: 0xffffffff

Quoted 1 line

ACL data: handle 6 flags 0x02 dlen 13

    L2CAP(d): cid 0x0041 len 9 [psm 0]
      0000: a1 02 01 00 00 00 00 00  00                       .........
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 6 mode 0x00 interval 126
    Mode: Active
Quoted 1 line

HCI Event: Mode Change (0x14) plen 6

    status 0x00 handle 6 mode 0x02 interval 20
    Mode: Sniff

=

Quoted 6 lines
Quoted 2 lines

up to here this was a left button press, from here on i was moving the mouse around.

=

are you sure that the authorization agent is working. Maybe you wanna use adapter.SetTrusted() to make it fully trusted.

I think i already have done this (via kbluetooth). If i have no auth-agent running, unplug and replug the dongle, then the mouse works again immediately (after the short reconnection delay).

This is what is in my /var/lib/bluetooth:

root@strolchi:/var/lib/bluetooth# ls 00\:00\:00\:00\:00\:00/
trusts
root@strolchi:/var/lib/bluetooth# cat 00\:00\:00\:00\:00\:00/trusts
00:07:61:3F:1B:6D input
root@strolchi:/var/lib/bluetooth# ls -l 00\:50\:F2\:EA\:6B\:EF/
total 92
-rw-r--r-- 1 root root  3564 26. Jun 14:06 classes
-rw-r--r-- 1 root root    68 28. Jun 10:35 config
-rw-r--r-- 1 root root   525  4. Jul 14:08 features
-rw-r--r-- 1 root root   652  2. Jul 22:42 hidd
-rw-r--r-- 1 root root   865  2. Jul 22:42 input
-rw-r--r-- 1 root root  5502  4. Jul 18:57 lastseen
-rw-r--r-- 1 root root   798  6. Jul 10:58 lastused
-rw------- 1 root root   110 13. Feb 11:26 linkkeys
-rw-r--r-- 1 root root   388  4. Jul 14:08 manufacturers
-rw-r--r-- 1 root root   959  5. Jul 18:40 names
-rw-r--r-- 1 root root 13162  4. Jul 14:28 sdp

Thanks,

Stefan

-- =

Stefan Seyfried
QA / R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out." =

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG N=FCrnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel