Patch to enable touchpad features on Huawei MagicBook 3500u

K Staring qdk at quickdekay.net
Tue Dec 10 10:00:00 PST 2019


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 },



More information about the Kernel mailing list