[PATCH] Fix for Acer Bluetooth Optical Rechargeable Mouse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux