From: Lamarque Vieira Souza <lamarque@gmail.com>
To: marcel@holtmann.org
Cc: linux-bluetooth@vger.kernel.org
Subject: [PATCH] Fix for Acer Bluetooth Optical Rechargeable Mouse
Date: Sat, 28 Mar 2009 19:45:49 -0300 [thread overview]
Message-ID: <200903281945.49625.lamarque@gmail.com> (raw)
This patch fix a problem with Acer Bluetooth Optical Rechargeable Mouse where
the cursor gets stuck at screen's upper-left corner. Even the touchpad of my
notebook (Acer Ferrari 4005) cannot move the cursor when the bluetooth mouse
is turned on. Using an input session instead of hid session solves this
problem although the cursor moves a little sluggishly with the bluetooth
mouse. It moves correctly using the touchpad. I do not know if there is a
better implementation or a quirk for this problem, if it exists let me know.
Signed-off-by: Lamarque V. Souza <lamarque@gmail.com>
---
--- linux-2.6.29/net/bluetooth/hidp/core.c 2009-03-28 16:55:43.023380377 -0300
+++ linux-2.6.29-lvs/net/bluetooth/hidp/core.c 2009-03-28 19:22:14.896228520
-0300
@@ -832,7 +832,10 @@ int hidp_add_connection(struct hidp_conn
session->flags = req->flags & (1 << HIDP_BLUETOOTH_VENDOR_ID);
session->idle_to = req->idle_to;
- if (req->rd_size > 0) {
+ /* Lamarque: Acer Bluetooth Optical Rechargeable Mouse (0458:0058) does not
work properly with hid session. */
+ if (req->rd_size > 0 && (
+ req->vendor != 0x0458 ||
+ req->product != 0x0058)) {
err = hidp_setup_hid(session, req);
if (err && err != -ENODEV)
goto err_skb;
next reply other threads:[~2009-03-28 22:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-28 22:45 Lamarque Vieira Souza [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-17 6:01 [PATCH] Fix for Acer Bluetooth Optical Rechargeable Mouse Lamarque Vieira Souza
2009-07-23 20:28 ` Andrew Morton
2009-07-23 21:30 ` Lamarque Vieira Souza
2009-07-23 21:43 ` Andrew Morton
2009-07-23 22:00 ` Lamarque Vieira Souza
2009-07-23 22:06 ` Andrew Morton
2009-07-23 22:21 ` Lamarque Vieira Souza
2009-07-23 23:05 ` Anthony Waters
2009-07-23 23:59 ` Lamarque Vieira Souza
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=200903281945.49625.lamarque@gmail.com \
--to=lamarque@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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