History log of /netbsd-src/sys/dev/pckbport/synaptics.c (Results 1 – 25 of 84)
Revision Date Author Comments
# bd69b09f 19-Jul-2024 mlelstv <mlelstv@NetBSD.org>

hw.synaptics.aux_mid_button_scroll translates vertical movements
of an aux device (like a trackpoint) into a scroll event when
the middle mouse button is pressed.

Make this work with either the midd

hw.synaptics.aux_mid_button_scroll translates vertical movements
of an aux device (like a trackpoint) into a scroll event when
the middle mouse button is pressed.

Make this work with either the middle mouse button of the main
device (buttonmask 0x02) or the middle mouse button of the aux
device (buttonmask 0x40).

Fixes PR 58435.

show more ...


# 043f83d9 18-Apr-2024 mlelstv <mlelstv@NetBSD.org>

Renamed border/boundary variables to better describe their use.
Fix edge default values, factor out percentage calculation for more consistent
values. Use device_printf/DPRINTF to show errors instead

Renamed border/boundary variables to better describe their use.
Fix edge default values, factor out percentage calculation for more consistent
values. Use device_printf/DPRINTF to show errors instead of aprint variants.
Print raw input for debugging.

Correct capability parsing. Old devices were probed with nonexistent
commands and then used undefined boundary values that made them unusuable.

Fixes PR 57874.

show more ...


# 9b39f0e7 05-Sep-2023 mrg <mrg@NetBSD.org>

panic on an condition that shouldn't be possible.

appease GCC 12.


# dcfec4cd 28-Sep-2022 nia <nia@NetBSD.org>

synaptics: Lower scale factor to give less sluggish mouse performance
on modern displays.


# e6ab2e16 17-Sep-2022 mlelstv <mlelstv@NetBSD.org>

- synaptics_filter_policy no longer generates movements from stale data.
- button boundary is now computed consistently.
- multi finger operation now works for MULTI_FINGER and MULTI_FINGER_REPORT.

- synaptics_filter_policy no longer generates movements from stale data.
- button boundary is now computed consistently.
- multi finger operation now works for MULTI_FINGER and MULTI_FINGER_REPORT.

Fixes PR kern/56476 and probably kern/56998.

show more ...


# ff23aff6 31-May-2022 andvar <andvar@NetBSD.org>

fix various typos in comments, documentation and messages.


# 4e525791 04-Apr-2022 blymn <blymn@NetBSD.org>

Use the original right boundary when calculating the vertical scroll
region so the boundary does not creep left on each subsequent setting.
Thanks to Martin@ for the report.


# e29f2f73 01-Apr-2022 blymn <blymn@NetBSD.org>

Fix regression introduced when fixing PR kern/56613 and related tweaks

* A trackpad with external buttons needs to mask a number of lower bits
of the X and Y coordinates IFF a button is down. Thi

Fix regression introduced when fixing PR kern/56613 and related tweaks

* A trackpad with external buttons needs to mask a number of lower bits
of the X and Y coordinates IFF a button is down. This was not being
done so a button held down looked like an out of range packet and
was therefore dropped.

* Now that trackpads are probed for their boundaries make the emulated
button boundary settable by a percentage, also allow the right and
bottom boundaries to be adjusted by a percentage to allow for
horizontal and vertical scroll regions.

show more ...


# de9a2f9c 03-Mar-2022 blymn <blymn@NetBSD.org>

Fix for PR kern/56613

* For trackpads that report max and min coordinates, retrieve these and
use them as the boundaries instead of the hard coded limits.
* Drop packets that are have x/y values t

Fix for PR kern/56613

* For trackpads that report max and min coordinates, retrieve these and
use them as the boundaries instead of the hard coded limits.
* Drop packets that are have x/y values that are outside the limits of
the trackpad. Some trackpads report a stream of low values in some
situations that cause cursor jumping.

show more ...


# f23545db 04-Dec-2021 nia <nia@NetBSD.org>

synaptics: Fix tracking of extended buttons.

- Ensure that packets are processed whenever any button change
occurs, instead of just processing packets when there is movement
or trackpad finger a

synaptics: Fix tracking of extended buttons.

- Ensure that packets are processed whenever any button change
occurs, instead of just processing packets when there is movement
or trackpad finger activity
- Only transfer the state of the "extended buttons" to the button
masks when actual changes occur OR a button is being held down.

With this patch, my middle mouse button no longer gets "stuck down",
but proper press/release tracking and dragging behavior is preserved.

Thanks to blymn for pointers.

show more ...


# d1c4e519 03-Dec-2021 andvar <andvar@NetBSD.org>

fix various typos in comments, log messages and documentation.


# 4799b3ae 21-Oct-2021 blymn <blymn@NetBSD.org>

Significant update to the synaptics touchpad driver.

* Accumulate packets for primary, secondary, finger count packets
before handing off to pms_synaptics_process_packet. This means
that both p

Significant update to the synaptics touchpad driver.

* Accumulate packets for primary, secondary, finger count packets
before handing off to pms_synaptics_process_packet. This means
that both primary and, possibly, secondary finger locations will
be processed at the same time. Previously the processing each
packet as it arrived.

* Fix the secondary finger position reporting, there was an off by
one in the shifts when decoding which effectively halved the
reported position.

* For a clickpad, make the emulated button region "dead" so that finger
movements in this region are ignored. This makes it easier to click
a button without accidentally repositioning the cursor. There is a
sysctl variable "button_region_movement_enable" that will allow
these finger movements to be reported if this is desirable.

* Reset the finger ballistics when the number of fingers changes. This
stops the annoying position jumps when a second finger touch is added
to or removed from the touchpad.

* Add a level argument to the DPRINTF macro so one can choose their
level of debug spam via the debug sysctl variable.

show more ...


# b7975551 28-Sep-2021 nia <nia@NetBSD.org>

synaptics: use the new WSCONS_EVENT_(H|V)SCROLL event types
to implement two-finger scrolling. remove non-functional code for
detecting reported finger width.


# 3c5d2f91 30-May-2021 riastradh <riastradh@NetBSD.org>

synaptics(4): New sysctl knob for debug output.

Set hw.synaptics.debug=1 to re-enable it; the compile-time DIAGNOSTIC
option was inappropriate for this.


# 9c80624b 01-Oct-2020 nia <nia@NetBSD.org>

synaptics: Emulate scrolling when the middle button is held with TrackPoints

idea stolen from various other operating systems.

this configurable with a sysctl in case somebody wants to hold the mid

synaptics: Emulate scrolling when the middle button is held with TrackPoints

idea stolen from various other operating systems.

this configurable with a sysctl in case somebody wants to hold the middle
button, e.g. with old window managers that close menus when a button is
released.

show more ...


# cd04adbb 01-Oct-2020 nia <nia@NetBSD.org>

erect a signpost for weary travellers


# 3810cfde 01-Oct-2020 nia <nia@NetBSD.org>

comment was likely true in 2007 but no longer reflects the reality of hw


# e78dab04 14-May-2020 nia <nia@NetBSD.org>

synaptics: Don't reset the device multiple times in succession

Cherrypicked from a patch from an anonymous contributor.


# f80d38fb 28-Apr-2020 jmcneill <jmcneill@NetBSD.org>

pms_synaptics_enable: no need to send PMS_DEV_ENABLE here because
pms_enable does this for us. Seems to resolve issues with my trackpoint
not working immediately after starting X on ThinkPad X260.


# 4e1981f9 27-Apr-2020 jmcneill <jmcneill@NetBSD.org>

Extended buttons are reported separate from touchpad buttons, so track
button press / release state separate from touch events.


# 27bd3296 31-Mar-2020 nia <nia@NetBSD.org>

synaptics: Maintain the left/right buttons when up/down are remapped

Reported on current-users by Mandacarú Cascavel


# b5324420 27-Mar-2020 nia <nia@NetBSD.org>

synaptics: Revert changes that broke gestures in cases where they worked.

It seems I have to figure out another way to make scrolling work for me.


# c140c33a 16-Mar-2020 nia <nia@NetBSD.org>

synaptics: Increase default scale_z for more precise scrolling


# e1ecc07c 15-Mar-2020 nia <nia@NetBSD.org>

synaptics: Check for single-finger event jitter in all cases.

I now have smooth two-finger scrolling.


# 45b25aba 14-Mar-2020 nia <nia@NetBSD.org>

synaptics: Detect multiple fingers outside the gesture period

I suspect this code doesn't make any sense if we want two-finger scrolling


1234