]> xenbits.xensource.com Git - legacy/linux-2.6.18-xen.git/commit
linux-2.6.18/Input: mousedev - handle mice that use absolute
authorOlaf Hering <olaf@aepfle.de>
Thu, 22 Sep 2011 17:57:57 +0000 (18:57 +0100)
committerOlaf Hering <olaf@aepfle.de>
Thu, 22 Sep 2011 17:57:57 +0000 (18:57 +0100)
commitf435add45ddde2ebfe701bd407f3dbcc46eebbf9
tree45d6cd011cf2fc98e1907d3ddb207fd9e42900c4
parentdadc4ead7669ef33802721253ed864d3a62f5025
linux-2.6.18/Input: mousedev - handle mice that use absolute
coordinates

After commit 1083:211849d9d511 the mouse multiplexer /dev/input/mice
does not receive updates because the base kernel lacks a change from
2.6.24. If xorg.conf uses the mouse driver instead of the evdev
driver,
the mouse is stuck because now the "Xen Virtual Pointer" is not seen
as
a mouse anymore.  Adding the backported patch below fixes it.

Mainline commit 6724f93463c332018e05f538a2ab3ce41eac0e8a

        Input: mousedev - handle mice that use absolute coordinates

        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.

Signed-off-by: Micah Parrish <micah.parrish@hp.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Olaf Hering <olaf@aepfle.de>
drivers/input/mousedev.c