Re: Patch to enable touchpad features on Huawei MagicBook 3500u
Aaron LI <[email protected]> Wed, 11 Dec 2019 09:42:22 +0800
| Newsgroups | gmane.os.dragonfly-bsd.kernel |
|---|---|
| Message-ID | <[email protected]> |
On December 11, 2019 2:00:00 AM GMT+08:00, K Staring <qdk@quickdekay=2Enet>=
wrote:
>Hi,
>
>The following patch makes psm=2Ec recognize the touchpad in the
>Huawei/Honor
>MagicBook Ryzen 2019 laptops (and possibly other models as well),
>enabling
>two-finger scroll et cetera when hw=2Epsm=2Eelantech_support=3D1 in
>loader=2Econf =2E
>
>
>Regards,
>
>Khamba Staring
>
>--- a/sys/dev/misc/psm/psm=2Ec
>+++ b/sys/dev/misc/psm/psm=2Ec
>@@ -7215,7 +7215,7 @@ enable_elantech(struct psm_softc *sc, enum
>probearg arg)
> {
> static const int ic2hw[] =3D
> /*IC: 0 1 2 3 4 5 6 7 8 9 a b c d e f */
>- { 0, 0, 2, 0, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0 };
>+ { 0, 0, 2, 0, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 };
> static const int fw_sizes[][3] =3D {
> /* FW=2Evers MaxX MaxY */
> { 0x020030, 1152, 768 },
Hi, thank you for the patch=2E I noticed that freebsd made such a change s=
everal months ago=2E This change has just been pushed to master branch=2E
Regards,
--=20
Aaron