On Sat, Jun 06, 2015 at 10:47:19AM +0200, Stefan Sperling wrote:
> On Sat, Jun 06, 2015 at 10:21:59AM +0200, Remi Locherer wrote:
> > >Synopsis:  Elantech Clickpad (pms0) stopped working on current
> > >Category:  kernel
> > >Environment:
> >     System      : OpenBSD 5.7
> >     Details     : OpenBSD 5.7-current (GENERIC.MP) #1046: Fri Jun  5 
> > 13:25:01 MDT 2015
> >                      
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> >     Architecture: OpenBSD.amd64
> >     Machine     : amd64
> > >Description:
> >     When I try to use the touchpad on my noteboot the below messages are
> > shown in xconsole and dmesg. The mouse pointer does not react anymore to
> > movements on the touchpad.
> > 
> > Affected devic:
> > pms0: Elantech Clickpad, version 4, firmware 0x575f03
> > 
> > I first noticed this with the snapshot kernel from May 31. With the kernel
> > from June 5 it's the same. The touchpad was working fine with the snapshot
> > from May 23.
> 
> This was probably caused by pms.c commit r1.61 which enabled touchpad
> support for newer elantech devices using firmware versions 0xX8XXXX.
> 
> Your device (firmware version 0xX7XXXX) was not matched before but matches
> now because of the way the new matching check was written. Can you try this
> diff to see if it restores previous behaviour for your device?


After applying this patch I can use the touchpad again. Thanks!


> Index: pms.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pckbc/pms.c,v
> retrieving revision 1.61
> diff -u -p -r1.61 pms.c
> --- pms.c     25 May 2015 15:04:26 -0000      1.61
> +++ pms.c     6 Jun 2015 08:37:41 -0000
> @@ -1840,7 +1840,8 @@ elantech_get_hwinfo_v4(struct pms_softc 
>       if (synaptics_query(sc, ELANTECH_QUE_FW_VER, &fw_version))
>               return (-1);
>  
> -     if (((fw_version & 0x0f0000) >> 16) < 6)
> +     if (((fw_version & 0x0f0000) >> 16) != 6 &&
> +         (fw_version & 0x0f0000) >> 16 != 8)
>               return (-1);
>  
>       elantech->fw_version = fw_version;
> 

Reply via email to