diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c index 731653b2f7a..415cf74beca 100644 --- a/sys/dev/atkbdc/psm.c +++ b/sys/dev/atkbdc/psm.c @@ -2508,9 +2508,16 @@ psmsoftintr(void *arg) /* Pressure value. */ z = pb->ipacket[2]; - w = ((pb->ipacket[0] & 0x30) >> 2) | - ((pb->ipacket[0] & 0x04) >> 1) | - ((pb->ipacket[3] & 0x04) >> 2); + + /* Finger width value */ + if (sc->synhw.capExtended) { + w = ((pb->ipacket[0] & 0x30) >> 2) | + ((pb->ipacket[0] & 0x04) >> 1) | + ((pb->ipacket[3] & 0x04) >> 2); + } else { + /* Assume a finger of regular width */ + w = 4; + } /* Button presses */ ms.button = 0; diff --git a/sys/isa/psm.c b/sys/isa/psm.c index 731653b2f7a..415cf74beca 100644 --- a/sys/isa/psm.c +++ b/sys/isa/psm.c @@ -2508,9 +2508,16 @@ psmsoftintr(void *arg) /* Pressure value. */ z = pb->ipacket[2]; - w = ((pb->ipacket[0] & 0x30) >> 2) | - ((pb->ipacket[0] & 0x04) >> 1) | - ((pb->ipacket[3] & 0x04) >> 2); + + /* Finger width value */ + if (sc->synhw.capExtended) { + w = ((pb->ipacket[0] & 0x30) >> 2) | + ((pb->ipacket[0] & 0x04) >> 1) | + ((pb->ipacket[3] & 0x04) >> 2); + } else { + /* Assume a finger of regular width */ + w = 4; + } /* Button presses */ ms.button = 0;