NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/58435: synaptics_aux_mid_button_scroll not working
The following reply was made to PR kern/58435; it has been noted by GNATS.
From: "Marc Coquand" <marc@mccd.space>
To: <gnats-bugs%netbsd.org@localhost>
Cc:
Subject: Re: kern/58435: synaptics_aux_mid_button_scroll not working
Date: Wed, 17 Jul 2024 19:27:06 -0500
Hi!
Not sure what happened with the title, sorry for that.
Since reporting this issue, I managed to create a fix that works on my
computer.
It seems the button code was wrong for my computer, not sure if there
is a generic solution to the issue.
I was able to figure out the correct code through debug statements.
diff --git a/sys/dev/pckbport/synaptics.c.old b/sys/dev/pckbport/synaptics.=
c
index 76582c9..3bd763a 100644
--- a/sys/dev/pckbport/synaptics.c.old
+++ b/sys/dev/pckbport/synaptics.c
@@ -1688,7 +1688,7 @@ pms_synaptics_passthrough(struct pms_softc *psc)
* scrolling.
*/
if (synaptics_aux_mid_button_scroll &&
- dy && (psc->buttons & 0x2)) {
+ dy && (psc->buttons & 0x40)) {
wsmouse_precision_scroll(psc->sc_wsmousedev, dx, dy=
);
} else {
buttons =3D (psc->buttons & 0x1f) | ((psc->buttons =
>> 5) & 0x7);
Sincerely,
Marc
Home |
Main Index |
Thread Index |
Old Index