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)
Wed, Nov 6, 2:39 PM
Unknown Object (File)
Wed, Nov 6, 12:28 PM
Unknown Object (File)
Sun, Nov 3, 10:00 AM
Unknown Object (File)
Sat, Oct 26, 12:47 PM
Unknown Object (File)
Fri, Oct 25, 9:08 AM
Unknown Object (File)
Oct 17 2024, 5:59 AM
Unknown Object (File)
Oct 7 2024, 10:46 AM
Unknown Object (File)
Oct 7 2024, 10:46 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 Not Applicable
Unit
Tests Not Applicable

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.