Page MenuHomeFreeBSD

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

Authored by james.wright_digital-chaos.com on Sun, Feb 7, 3:00 PM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; 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.Sun, Feb 7, 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.