From: Micah Parrish <micah.parrish@hp.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Pete Zaitcev <zaitcev@redhat.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
"Chiang, Alexander" <achiang@hp.com>
Subject: [PATCH, v2] Input: tell mousedev to handle HP remote console virtual mouse using absolute coordinates
Date: Mon, 14 Jan 2008 17:45:56 -0700 [thread overview]
Message-ID: <1200357956.6630.24.camel@strongbad> (raw)
The HP Integrated Remote Console Virtual Mouse, which is standard equipment
on all Proliant and Integrity servers, produces absolute coordinates
instead of relative coordinates. This is done to synchronize the
position of the mouse cursor on the client desktop with the mouse
cursor position on the server. Mousedev is not designed to pass
those absolute events directly to X, but it can translate them
into relative movements. It currently does this for tablet like devices
and touchpads. This patch tells mousedev to also enable this function for
the HP virtual mouse. This patch is narrower in scope than my previous
patch of the same name, which enabled abs-to-rel translation for all
devices with ABS_X, ABS_Y, and BTN_LEFT.
This patch enables the mouse pointer to move when using the remote
console. Without this patch, the cursor will not move.
Signed-off-by: Micah Parrish <micah.parrish@hp.com>
---
mousedev.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index 9173916..e67a9cc 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -829,6 +829,16 @@ static const struct input_device_id mousedev_ids[] = {
.keybit = { [LONG(BTN_TOOL_FINGER)] = BIT(BTN_TOOL_FINGER) },
.absbit = { BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE) | BIT(ABS_TOOL_WIDTH) },
}, /* A touchpad */
+ {
+ .vendor = 0x03f0,
+ .product = 0x1126,
+ .flags = INPUT_DEVICE_ID_MATCH_EVBIT
+ | INPUT_DEVICE_ID_MATCH_KEYBIT
+ | INPUT_DEVICE_ID_MATCH_ABSBIT,
+ .evbit = { BIT(EV_KEY) | BIT(EV_ABS) | BIT(EV_SYN) },
+ .keybit = { [LONG(BTN_LEFT)] = BIT(BTN_LEFT) },
+ .absbit = { BIT(ABS_X) | BIT(ABS_Y) },
+ }, /* hp ILO2 High Performance mouse */
{ }, /* Terminating entry */
};
next reply other threads:[~2008-01-15 0:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-15 0:45 Micah Parrish [this message]
2008-01-15 21:07 ` [PATCH, v2] Input: tell mousedev to handle HP remote console virtual mouse using absolute coordinates Dmitry Torokhov
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=1200357956.6630.24.camel@strongbad \
--to=micah.parrish@hp.com \
--cc=achiang@hp.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zaitcev@redhat.com \
/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