[PATCH libinput] evdev: use the udev ID_INPUT_POINTINGSTICK property

Benjamin Tissoires benjamin.tissoires at gmail.com
Mon Jun 1 14:21:34 PDT 2015


On Mon, Jun 1, 2015 at 12:08 AM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> On Sat, May 30, 2015 at 12:10:28PM +0200, Hans de Goede wrote:
>> Hi,
>>
>> On 29-05-15 17:06, Benjamin Tissoires wrote:
>> >
>> >
>> >On 05/29/2015 03:31 AM, Hans de Goede wrote:
>> >>Hi,
>> >>
>> >>On 29-05-15 03:28, Peter Hutterer wrote:
>> >>>Added in systemd 220, but note that for udev backwards compatibility, the
>> >>>ID_INPUT_POINTINGSTICK tag is set in addition to the ID_INPUT_MOUSE tag.
>> >>>
>> >>>And use that property to tag a device as trackpoint too, this allows
>> >>>temporary
>> >>>workarounds for kernel bugs where the input prop isn't set yet.
>> >>>
>> >>>https://bugzilla.redhat.com/show_bug.cgi?id=1225563
>> >>>
>> >>>Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
>> >>
>> >>LGTM: Reviewed-by: Hans de Goede <hdegoede at redhat.com>
>> >>
>> >
>> >Yep, as Hans said, this looks good to me (it's already push, so that
>> >does not matter that much).
>> >
>> >However, for completeness, if we want to be able to override the
>> >INPUT_PROP_POINTING_STICK property, we also need the following patch:
>> >
>> >
>> > From 9573bfb574a74e2eea89a9227aaf67c1c9403983 Mon Sep 17 00:00:00 2001
>> >From: Benjamin Tissoires <benjamin.tissoires at gmail.com>
>> >Date: Fri, 29 May 2015 11:02:12 -0400
>> >Subject: [PATCH] evdev: remove direct checks for INPUT_PROP_POINTING_STICK
>> >
>> >If we need to temporary override a device with ID_INPUT_POINTINGSTICK,
>> >evdev sets the tag EVDEV_TAG_TRACKPOINT to the device. Rely on the tag
>> >to behave properly for scroll emulation.
>> >
>> >Signed-off-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
>>
>> Hmm, IIRC some of these code-paths run before the tags get set,
>> so this will not work. Did you check for this?
>
> Hans is right, the tag isn't set until after the device is set up. This
> could probably be moved up, though the external mouse tagging needs a fix
> for that.
>

Yep. Looks like we have a little bit more work to do for that. I am on it.

Cheers,
Benjamin


More information about the wayland-devel mailing list