* [PATCH, v2] Input: tell mousedev to handle HP remote console virtual mouse using absolute coordinates
@ 2008-01-15 0:45 Micah Parrish
2008-01-15 21:07 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Micah Parrish @ 2008-01-15 0:45 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Pete Zaitcev, linux-kernel, Chiang, Alexander
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 */
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH, v2] Input: tell mousedev to handle HP remote console virtual mouse using absolute coordinates
2008-01-15 0:45 [PATCH, v2] Input: tell mousedev to handle HP remote console virtual mouse using absolute coordinates Micah Parrish
@ 2008-01-15 21:07 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2008-01-15 21:07 UTC (permalink / raw)
To: Micah Parrish; +Cc: Pete Zaitcev, linux-kernel, Chiang, Alexander
Hi Micah,
On Mon, Jan 14, 2008 at 05:45:56PM -0700, Micah Parrish wrote:
> 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.
>
I thought it over and I decided to include the previous version of the
patch (the one that does not have venor/pid restriction), since it looks
like Xen people might need it too.
It should be included in the next pull request to Linus.
Sorry for the delays.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-15 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-15 0:45 [PATCH, v2] Input: tell mousedev to handle HP remote console virtual mouse using absolute coordinates Micah Parrish
2008-01-15 21:07 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox