Skip to contentSkip to conversation

input service trouble

Bluez-users Dick 2 participants 5 messages Jun 13, 2007 – Jul 12, 2007 Bluetooth drivers

lore
Share & tools
lore

Dick

author
#0 lore raw

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

maintainer
#1 lore raw

Hi Dick,

Quoted 8 lines

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.

Quoted 13 lines

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.

Quoted 8 lines

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.

Quoted 1 line

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.

Quoted 1 line

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

author
#2 lore raw
Quoted 2 lines · Marcel Holtmann <marcel <at> holtmann.org> writes:

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

Thanks, I've disabled isco and the messages are gone.

Quoted 5 lines
Quoted 4 lines

And the module usage count on hidp is high:

$ lsmod
Module                  Size  Used by
hidp                   10816  26 

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

I checked hcitool con and it showed me only the two devices. I can't understand why hidp has a usage count of 26, usually this is only 2.

Quoted 2 lines

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

I'll try that if the trouble persists

Again, thanks so far, I will inform you with the results.

greetings,
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

author
#3 lore raw
Quoted 1 line · Dick <dick <at> mrns.nl> writes:

Thanks, I've disabled isco and the messages are gone.

Okay this definitely fixed my problem, the input service / bluetooth is a lot more stable now.

-------------------------------------------------------------------------
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

author
#4 lore raw

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