Page MenuHomeFreeBSD

dev/usb/input/wsp: Add sysctl tunable for Z-Axis inversion
ClosedPublic

Authored by james.wright_digital-chaos.com on Feb 7 2021, 3:00 PM.
Referenced Files
Unknown Object (File)
Mar 10 2024, 7:26 AM
Unknown Object (File)
Jan 20 2024, 1:36 PM
Unknown Object (File)
Jan 13 2024, 5:29 PM
Unknown Object (File)
Dec 31 2023, 3:28 AM
Unknown Object (File)
Dec 13 2023, 6:11 AM
Unknown Object (File)
Sep 24 2023, 1:27 PM
Unknown Object (File)
Sep 10 2023, 6:50 AM
Unknown Object (File)
Aug 29 2023, 11:53 AM

Details

Summary

Added a new sysctl to Wellspring Touchpad (wsp) driver for controlling Z-Axis (2-finger vertical scroll) direction "hw.usb.wsp.z_invert".

Updated documentation (also included missing description for z_factor tunable).

Bugzilla:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253321

Test Plan

Build + install patched wsp module.
kldunload wsp
kldload wsp
sysctl hw.usb.wsp.z_invert=1

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wulf@ Can you please have a look?

Hello world :-)

Is device supported by LibINPUT or IICHID? If so why not control it with "Narual Scroll" in /usr/local/share/X11/xorg.conf.d/40-libinput.conf :

Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event5"
        Option "NaturalScrolling" "on"
        Option "Tapping" "on"
        Option "ClickMethod" "clickfinger"
        Driver "libinput"
EndSection

I have just discovered it recenlty and it removed all layers of wrapping scroll directions all the way :-)

Best regards :-)
Tomek

This revision is now accepted and ready to land.Feb 7 2021, 7:04 PM

Is device supported by LibINPUT or IICHID? If so why not control it with "Narual Scroll" in /usr/local/share/X11/xorg.conf.d/40-libinput.conf :

wsp(4) still does not support evdev, so no touchpad libinput options can be applied to it.

In D28521#638470, @wulf wrote:

LGTM

Thanks! Would you be able to commit it for me?

This revision was automatically updated to reflect the committed changes.

Thanks! Would you be able to commit it for me?

Done.