Patch to enable touchpad features on Huawei MagicBook 3500u
K Staring <[email protected]> Tue, 10 Dec 2019 19:00:00 +0100
| Newsgroups | gmane.os.dragonfly-bsd.kernel |
|---|---|
| Message-ID | <[email protected]> |
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 },