Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d07a9cba authored by Tim Cole's avatar Tim Cole Committed by Dmitry Torokhov
Browse files

Input: joydev - blacklist digitizers

BTN_TOUCH is not set by the wacom driver which causes it to be handled by the
joydev driver while the resulting device is broken. This causes problems with
applications that try to use a joystick device.

Ubuntu BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/300143



Signed-off-by: default avatarTim Cole <tim.cole@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarAmit Kucheria <amit.kucheria@canonical.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent eacaad01
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -843,7 +843,13 @@ static const struct input_device_id joydev_blacklist[] = {
				INPUT_DEVICE_ID_MATCH_KEYBIT,
		.evbit = { BIT_MASK(EV_KEY) },
		.keybit = { [BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH) },
	},	/* Avoid itouchpads, touchscreens and tablets */
	},	/* Avoid itouchpads and touchscreens */
	{
		.flags = INPUT_DEVICE_ID_MATCH_EVBIT |
				INPUT_DEVICE_ID_MATCH_KEYBIT,
		.evbit = { BIT_MASK(EV_KEY) },
		.keybit = { [BIT_WORD(BTN_DIGI)] = BIT_MASK(BTN_DIGI) },
	},	/* Avoid tablets, digitisers and similar devices */
	{ }	/* Terminating entry */
};