linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC] Input: tell mousedev to handle remote console virtual mice using absolute coordinates
@ 2007-12-20 22:02 Micah Parrish
  2008-01-09 16:26 ` Alex Chiang
  0 siblings, 1 reply; 2+ messages in thread
From: Micah Parrish @ 2007-12-20 22:02 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Pete Zaitcev, Chiang, Alexander, linux-kernel

Devices like the HP Integrated Remote Console Virtual Mouse, which are
standard equipment on all Proliant and Integrity servers, produce
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 merely tells it to also
include a device with ABS_X, ABS_Y, and mouse buttons in its list of
devices to process input for.

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>

---
I understand that Dell DRAC and Sun Andromeda are or contain a similar
device, one which produces absolute X,Y coordinates and ordinary mouse
clicks.  This patch may also enable these but I have no access to
these systems.

 mousedev.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
index e1c1da0..2dc1b12 100644
--- a/drivers/input/mousedev.c
+++ b/drivers/input/mousedev.c
@@ -1028,7 +1028,12 @@ static const struct input_device_id mousedev_ids[] = {
                                BIT_MASK(ABS_PRESSURE) |
                                BIT_MASK(ABS_TOOL_WIDTH) },
        },      /* A touchpad */
-
+       {
+               .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) },
+       },      /* Mouselike device with absolute X and Y but ordinary clicks */
        { },    /* Terminating entry */
 };



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RFC] Input: tell mousedev to handle remote console virtual mice using absolute coordinates
  2007-12-20 22:02 [PATCH RFC] Input: tell mousedev to handle remote console virtual mice using absolute coordinates Micah Parrish
@ 2008-01-09 16:26 ` Alex Chiang
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Chiang @ 2008-01-09 16:26 UTC (permalink / raw)
  To: Micah Parrish; +Cc: Dmitry Torokhov, Pete Zaitcev, linux-kernel

Hi Dmitry,

* Micah Parrish <micah.parrish@hp.com>:
> Devices like the HP Integrated Remote Console Virtual Mouse, which are
> standard equipment on all Proliant and Integrity servers, produce
> 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 merely tells it to also
> include a device with ABS_X, ABS_Y, and mouse buttons in its list of
> devices to process input for.
> 
> This patch enables the mouse pointer to move when using the remote
> console.  Without this patch, the cursor will not move.

We're looking to get this patch accepted into a distro, which is
of course easier if it is first accepted upstream.

Is there anything we can do to help explain this patch further to
enable acceptance?

Thanks.

/ac


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-09 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-20 22:02 [PATCH RFC] Input: tell mousedev to handle remote console virtual mice using absolute coordinates Micah Parrish
2008-01-09 16:26 ` Alex Chiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).