public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] input service leaking l2cap connections
@ 2007-09-07 14:33 Dick
  2007-09-10 17:35 ` Claudio Takahasi
  0 siblings, 1 reply; 3+ messages in thread
From: Dick @ 2007-09-07 14:33 UTC (permalink / raw)
  To: bluez-users

Hi,

I still have some trouble with the input service and I think I've found
something related which is reproduceable.

If a device is reconnecting a lot the l2cap table in /sys/class/bluetooth/l2cap
is growing with connections (which aren't closed).

Try the following with a HID input device:

1. Start and configure the input service for the device
2. Start hcidump
3. Power off the input device
4. Wait until "Disconn complete" appear in hcidump
5. Power on the input device
6. Repeat from step 3

If you look at:
sort /sys/class/bluetooth/l2cap |uniq -c

You will see a huge number of connections from the input device.

greetings,
Dick


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-users] input service leaking l2cap connections
  2007-09-07 14:33 Dick
@ 2007-09-10 17:35 ` Claudio Takahasi
  0 siblings, 0 replies; 3+ messages in thread
From: Claudio Takahasi @ 2007-09-10 17:35 UTC (permalink / raw)
  To: BlueZ users

Hi Dick,

I was not able to reproduce the reported problem. Could you please
send me more details? Try reproduce the problem in the latest release
(3.18) and share your hcidump.

On 9/7/07, Dick <dick@mrns.nl> wrote:
> Hi,
>
> I still have some trouble with the input service and I think I've found
> something related which is reproduceable.
>
> If a device is reconnecting a lot the l2cap table in /sys/class/bluetooth/l2cap
> is growing with connections (which aren't closed).
>
> Try the following with a HID input device:
>
> 1. Start and configure the input service for the device
[Claudio Takahasi]
After call CreateDevice how are you connecting the input? Device
initiated connection or calling Device.Connect() ?

> 2. Start hcidump
> 3. Power off the input device
> 4. Wait until "Disconn complete" appear in hcidump
> 5. Power on the input device
[Claudio Takahasi]
how are you reconnecting?

> 6. Repeat from step 3
>
> If you look at:
> sort /sys/class/bluetooth/l2cap |uniq -c
>
> You will see a huge number of connections from the input device.
>
> greetings,
> Dick

BR,
Claudio Takahasi.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-users] input service leaking l2cap connections
@ 2007-09-14 17:51 Dick
  0 siblings, 0 replies; 3+ messages in thread
From: Dick @ 2007-09-14 17:51 UTC (permalink / raw)
  To: bluez-users

> I was not able to reproduce the reported problem. Could you please
> send me more details? Try reproduce the problem in the latest release
> (3.18) and share your hcidump.
I'm using the latest bluez release and a almost-latest kernel
(2.6.22-gentoo-r6).

On 9/7/07, Dick <dick@mr...> wrote:
> > Try the following with a HID input device:
> >
> > 1. Start and configure the input service for the device
> [Claudio Takahasi]
> After call CreateDevice how are you connecting the input? Device
> initiated connection or calling Device.Connect() ?
Device initiated.

> 2. Start hcidump
> 3. Power off the input device
> 4. Wait until "Disconn complete" appear in hcidump
Well, you *shouldn't* wait until "Disconn complete" during the
"initialisation", go to step 5 just before the "Disconn complete".
> 5. Power on the input device, the device should be reconnected
initiated by the device.
> 6. Repeat from step 3

I've posted this before; I've got another problem with the dinovo
desktop.

1. Start and configure the input service
2. Let the devices initiate the connections
3. Use the devices
4. Wait until the devices go idle
5. Wake the devices up

Result:
- hcidump will show you input from the devices
- hcitool con will show you the input devices are connected
- the input events aren't registed by the input service (keyboard /
mouse won't work)

I hope this helps,

TIA,
Dick

PS. The bluez gmane archive isn't updated anymore!


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-09-14 17:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-14 17:51 [Bluez-users] input service leaking l2cap connections Dick
  -- strict thread matches above, loose matches on Subject: below --
2007-09-07 14:33 Dick
2007-09-10 17:35 ` Claudio Takahasi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox