Patch to enable touchpad features on Huawei MagicBook 3500u
Aaron LI
aly at aaronly.me
Tue Dec 10 17:42:22 PST 2019
On December 11, 2019 2:00:00 AM GMT+08:00, K Staring <qdk at quickdekay.net> wrote:
>Hi,
>
>The following patch makes psm.c 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.psm.elantech_support=1 in
>loader.conf .
>
>
>Regards,
>
>Khamba Staring
>
>--- a/sys/dev/misc/psm/psm.c
>+++ b/sys/dev/misc/psm/psm.c
>@@ -7215,7 +7215,7 @@ enable_elantech(struct psm_softc *sc, enum
>probearg arg)
> {
> static const int ic2hw[] =
> /*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] = {
> /* FW.vers MaxX MaxY */
> { 0x020030, 1152, 768 },
Hi, thank you for the patch. I noticed that freebsd made such a change several months ago. This change has just been pushed to master branch.
Regards,
--
Aaron
More information about the Kernel
mailing list