On Sat, Dec 30, 2017 at 12:19:18PM +0100, Anton Lindqvist wrote:
> On Fri, Dec 29, 2017 at 10:05:12PM -0700, bit shifter wrote:
> > I have a Thinkpad X240 with the buttonless clickpad. On snapshot
> > 6.2-current #311, the only soft buttons that function are the buttons
> > at the top of the clickpad. The soft buttons at the bottom of the
> > clickpad all act as a left-click. Further, in wsconsctl, the
> > mouse.type is "unknown_19". If I edit the
> > /usr/X11R6/share/X11/xorg.conf.d/70-synaptics.conf file, and uncomment
> > the InputClass section at the top (that was recently commented out by
> > default) again, so these are my effective xorg settings:
> >
> > Section "InputClass"
> > Identifier "touchpad catchall"
> > Driver "synaptics"
> > MatchIsTouchpad "on"
> > EndSection
> >
> > Section "InputClass"
> > Identifier "Default clickpad buttons"
> > MatchDriver "synaptics"
> > Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
> > Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
> > EndSection
> >
> >
> > The soft buttons at the bottom work again, but the mouse.type in
> > wsconsctl is still unknown_19. I've included the output of wsconsctl
> > and dmesg below.
> >
> >
> > $ doas wsconsctl | grep mouse
> >
> > wsconsctl: Use explicit arg to view keyboard.map.
> > mouse.type=unknown_19
>
> Please try the diff for wsconsctl below.
>
> Also looking for OKs, maybe WSMOUSE_TYPE_SYNAP_SBTN should just be
> called synaptics just like WSMOUSE_TYPE_SYNAPTICS in the wsconsctl
> output?
>
> Index: util.c
> ===================================================================
> RCS file: /cvs/src/sbin/wsconsctl/util.c,v
> retrieving revision 1.65
> diff -u -p -r1.65 util.c
> --- util.c 2 Sep 2017 22:09:32 -0000 1.65
> +++ util.c 30 Dec 2017 11:04:37 -0000
> @@ -94,6 +94,7 @@ static const struct nameint mstype_tab[]
> { WSMOUSE_TYPE_ALPS, "alps" },
> { WSMOUSE_TYPE_SGI, "sgi" },
> { WSMOUSE_TYPE_ELANTECH, "elantech" },
> + { WSMOUSE_TYPE_SYNAP_SBTN, "synaptics-soft-buttons" },
> };
>
> static const struct nameint dpytype_tab[] = {
Just committed the fix for wsconsctl. Thanks for the report!