2007-06-13 18:08:08

by Dick Marinus

[permalink] [raw]
Subject: [Bluez-users] input service trouble

Hi,

I'm testing the new input service but I have some trouble with reconnects. If I
don't use my dinovo keyboard or mx laser for a while the connection is closed
and they aren't automatically reconnected.

Sometimes a power cycle (on the HID device) helps, sometimes I need to send a
Connect() through DBUS and sometimes I need a hciconfig hci0 reset and I also
have some success with reloading hci_usb.

I also have error messages in dmesg:
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7c14 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7c14 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272814 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272814 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f2d36814 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f2d36814 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272414 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272414 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f7d01014 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f7d01014 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7a14 err -38
hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7a14 err -38

And the module usage count on hidp is high:
$ lsmod
Module Size Used by
hidp 10816 26
hci_usb 13596 4
rfcomm 28376 1
l2cap 17216 18 hidp,rfcomm
bluetooth 39588 8 hidp,hci_usb,rfcomm,l2cap

ListDevices() only gives the two devices (keyboard0 and pointing1).

I'm using 2.6.20-gentoo-r8 (without mh patches)

All suggestions are welcome

Thanks in advance,
Dick


-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2007-06-16 07:39:45

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] input service trouble

Hi Dick,

> I'm testing the new input service but I have some trouble with reconnects. If I
> don't use my dinovo keyboard or mx laser for a while the connection is closed
> and they aren't automatically reconnected.
>
> Sometimes a power cycle (on the HID device) helps, sometimes I need to send a
> Connect() through DBUS and sometimes I need a hciconfig hci0 reset and I also
> have some success with reloading hci_usb.
>
> I also have error messages in dmesg:
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7c14 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7c14 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272814 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272814 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f2d36814 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f2d36814 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272414 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f3272414 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f7d01014 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb f7d01014 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7a14 err -38
> hci_usb_isoc_rx_submit: hci0 isoc rx submit failed urb df9a7a14 err -38

load the hci_usb driver with isoc=0. It seems that you USB host
controller doesn't really like ISOC URBs.

> And the module usage count on hidp is high:
> $ lsmod
> Module Size Used by
> hidp 10816 26
> hci_usb 13596 4
> rfcomm 28376 1
> l2cap 17216 18 hidp,rfcomm
> bluetooth 39588 8 hidp,hci_usb,rfcomm,l2cap

Check hcitool con and /sys/class/bluetooth/l2cap for open sockets.

> ListDevices() only gives the two devices (keyboard0 and pointing1).

How many devices do you have. I count only two. So that looks fine to
me.

> I'm using 2.6.20-gentoo-r8 (without mh patches)

We are at 2.6.22-rc4 and that is the official one with all patches.
Worth trying that one.

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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-07-12 19:14:34

by Dick Marinus

[permalink] [raw]
Subject: Re: [Bluez-users] input service trouble

Hi,

I still have some problems with the input service. I'm not sure if I'm using the
report mode (instead of boot). Can I query this using DBUS?
And the input service doesn't seem to work if one of the devices is SLAVE in
"hcitool con". Is that a known issue?

Dick



-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users