From: David Woodhouse <dwmw2@infradead.org>
To: "Thomas Bächler" <thomas@archlinux.org>
Cc: linux-kernel@vger.kernel.org, marcel@holtmann.org
Subject: Re: Bluetooth HID devices not getting properly removed
Date: Wed, 24 Jun 2009 12:28:46 +0100 [thread overview]
Message-ID: <1245842926.25547.5415.camel@macbook.infradead.org> (raw)
In-Reply-To: <4A4209D2.4060209@archlinux.org>
On Wed, 2009-06-24 at 13:11 +0200, Thomas Bächler wrote:
>
> KERNEL[1245834012.631443] remove
> /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/bluetooth/hci0/hci0:11
> (bluetooth)
> KERNEL[1245834012.632668] remove /hci0:11/input12/mouse2 (input)
> KERNEL[1245834012.641797] remove /hci0:11/input12/event8 (input)
> KERNEL[1245834012.655447] remove /hci0:11/input12 (input)
> KERNEL[1245834012.655502] remove /hci0:11/0005:046D:B002.0004 (hid)
>
> See how the device path of the removed input devices is truncated? When
> I do the same with a USB mouse, a full device path is returned each time.
>
> All of this results in hal not removing its logical input device, which
> means the number of (non-existent) mice in the hal device tree increases
> whenever I disable and re-enable my mouse.
>
> So where do I put this bug? Linux? Bluez? Udev? Hal? My guess is Linux,
> as these device paths come from Linux originally and are in fact
> inconsistent. This is all tested on 2.6.30, I have no idea if it was the
> case on older kernels.
It's in the BlueZ HID code. I pointed it out to Marcel a few months ago
-- it happens when the ACL connection is killed (orphaning the HID
device in sysfs), and the HID device is only killed _later_, so the path
on the removal is wrong.
--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation
prev parent reply other threads:[~2009-06-24 11:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-24 11:11 Thomas Bächler
2009-06-24 11:28 ` David Woodhouse [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1245842926.25547.5415.camel@macbook.infradead.org \
--to=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=thomas@archlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®