[PATCH libinput 5/9] udev: add Elantech touchpad firmware detection

Peter Hutterer peter.hutterer at who-t.net
Wed Jul 1 19:41:56 PDT 2015


On Wed, Jul 01, 2015 at 04:08:49PM +1000, Peter Hutterer wrote:
> Only firmware v4 (and probably whatever comes in the future) have resolution
> set, for the first couple of touchpads we need size hints. Add a callout that
> looks at the properties on the touchpad and decides the firmware version.
> 
> The udev/hwdb is two-stage: the callout sets LIBINPUT_MODEL_FIRMWARE_VERSION
> which is then used in the hwdb to look up the actual size hint. This way we
> can keep the code relatively stable, the actual database of entries is just a
> text file.
> 
> Size for the touchpads is pretty much arbitrary at this point. The v1, v2
> sizes are the ones from a Lenovo T61 which is a Synaptics touchpad but
> probably the same vintage.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

we got information from elantech that all the touchpads pre-v4 have the same
resolution. I've sent a patch for systemd to fix this at the lowest level
https://github.com/systemd/systemd/pull/467
and this will change this patchset too. still waiting on ALPS for comments.
no urgency for review at this point.

Cheers,
   Peter



More information about the wayland-devel mailing list