[PATCH] RFC: Only match against event[0-9] in udev rules for vmmouse

Michel Dänzer michel at daenzer.net
Mon Apr 19 07:39:05 PDT 2010


On Mon, 2010-04-19 at 15:37 +0100, Jakob Bornecrantz wrote: 
> It looks like the udev rule was matched against two devices which caused
> the driver to be loaded twice. We shouldn't match against the other
> device because it will very seldom send bogus events. Some of the bug
> this caused was buttons getting stuck.
> ---
>  tools/69-xorg-vmmouse.rules.in |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/tools/69-xorg-vmmouse.rules.in b/tools/69-xorg-vmmouse.rules.in
> index 0d7f028..602afb6 100644
> --- a/tools/69-xorg-vmmouse.rules.in
> +++ b/tools/69-xorg-vmmouse.rules.in
> @@ -1 +1 @@
> -ACTION=="add|change", ENV{ID_INPUT_MOUSE}=="?*", ATTRS{description}=="i8042 AUX port", PROGRAM="__BIN_PREFIX__/vmmouse_detect", ENV{ID_INPUT.tags}="vmmouse"
> +ACTION=="add|change", ENV{ID_INPUT_MOUSE}=="?*", ATTRS{description}=="i8042 AUX port", KERNEL=="event[0-9]*", PROGRAM="__BIN_PREFIX__/vmmouse_detect", ENV{ID_INPUT.tags}="vmmouse"

Reviewed-by: Michel Dänzer <daenzer at vmware.com>


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-devel mailing list