<div dir="auto"><div dir="auto">After this upgrade my external mouse is working very smoothly.<div dir="auto"><br></div><div dir="auto">With Regards </div><div dir="auto">Karthik</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 19 Apr 2024, 00:30 , <users-request> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Users mailing list submissions to<br>
        users@<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="https://lists.dragonflybsd.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.dragonflybsd.org/mailman/listinfo/users</a><br>
or, via email, send a message with subject or body 'help' to<br>
        users-request@<br>
<br>
You can reach the person managing the list at<br>
        users-owner@<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: [Patch] Sync psm/evdev/atkbd with FreeBSD - please test<br>
      (karu.pruun)<br>
   2. Re: [Patch] Sync psm/evdev/atkbd with FreeBSD - please test<br>
      (Michael Neumann)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 18 Apr 2024 12:41:29 +0000<br>
From: "karu.pruun" <<a href="mailto:karu.pruun@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">karu.pruun@gmail.com</a>><br>
To: Michael Neumann <<a href="mailto:mneumann@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">mneumann@ntecs.de</a>><br>
Cc: Antonio Huete Jimenez <<a href="mailto:tuxillo@quantumachine.net" rel="noreferrer noreferrer noreferrer" target="_blank">tuxillo@quantumachine.net</a>>,<br>
        <a href="mailto:users@dragonflybsd.org" rel="noreferrer noreferrer noreferrer" target="_blank">users@dragonflybsd.org</a><br>
Subject: Re: [Patch] Sync psm/evdev/atkbd with FreeBSD - please test<br>
Message-ID:<br>
        <CADdF=MKZLDPZbHp7YGUQZOFfZSY1CD=<a href="mailto:u29Wi2pC6_%2BCDY7WdVg@mail.gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">u29Wi2pC6_+CDY7WdVg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
Hello<br>
<br>
I tested on Thinkpad T490 with the latest patch, everything works well.<br>
<br>
The patched kernel recognizes the following devices:<br>
<br>
--<br>
kern.features.evdev_support: 1<br>
kern.features.evdev: 1<br>
<a href="http://kern.evdev.input.0.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.0.name</a>: System keyboard multiplexer<br>
kern.evdev.input.0.phys: kbdmux0<br>
kern.evdev.input.0.uniq:<br>
<a href="http://kern.evdev.input.1.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.1.name</a>: System mouse<br>
kern.evdev.input.1.phys: sysmouse<br>
kern.evdev.input.1.uniq:<br>
<a href="http://kern.evdev.input.2.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.2.name</a>: AT keyboard<br>
kern.evdev.input.2.phys: atkbd0<br>
kern.evdev.input.2.uniq:<br>
<a href="http://kern.evdev.input.3.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.3.name</a>: SynPS/2 Synaptics TouchPad<br>
kern.evdev.input.3.phys: psm0<br>
kern.evdev.input.3.uniq:<br>
<a href="http://kern.evdev.input.4.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.4.name</a>: TPPS/2 IBM TrackPoint<br>
kern.evdev.input.4.phys: psm0<br>
kern.evdev.input.4.uniq:<br>
kern.evdev.sysmouse_t_axis: 0<br>
kern.evdev.rcpt_mask: 12<br>
--<br>
<br>
Previously, without patch it would only recognize the first two.<br>
<br>
Tapping and two finger scrolling work! My setup is simpler, I use the<br>
libinput driver for kbd and mouse in Xorg.conf, and nothing more; no<br>
moused, no additional script for tapping --- still works fine.<br>
<br>
By the way, the 'libinput list-devices' was broken beforehand in that<br>
it did not return; that's fixed now too.<br>
<br>
All in all, this is so much better than what we have currently that to<br>
my mind it could be committed right away. Maybe more people can then<br>
test and report back if they see bugs.<br>
<br>
Thanks again for this! The desktop experience is much better now.<br>
<br>
Best<br>
<br>
Peeter<br>
<br>
--<br>
<br>
On Thu, Apr 18, 2024 at 7:01?AM Michael Neumann <<a href="mailto:mneumann@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">mneumann@ntecs.de</a>> wrote:<br>
><br>
> On Fri, Apr 12, 2024 at 09:36:39PM +0200, Antonio Huete Jimenez wrote:<br>
> > Started testing this on my Lenovo Thinkpad T480, so far it works like a<br>
> > charm! Just had to set the rcpt mask and it started work + gestures. Then<br>
> > went and enabled tapping with the xinput command.<br>
> ><br>
> > I'll continue using it but if there are no unexpected crashes or problems I<br>
> > think you can just push it.<br>
><br>
> Hi Antonio,<br>
><br>
> Thanks for testing! In the meantime I also tested the patch on a Tuxedo<br>
> Laptop with great success. And I also incoorperated the patch from<br>
> bugreport #3206: <a href="https://bugs.dragonflybsd.org/issues/3206" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://bugs.dragonflybsd.org/issues/3206</a><br>
> Thanks to the author(s) for the work!<br>
><br>
> This leads to this new patch:<br>
><br>
> <a href="https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD-rev2.patch" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD-rev2.patch</a><br>
><br>
> which further syncs the atkbd and kbd drivers with FreeBSD and also does<br>
> a lot of reformatting.<br>
><br>
> I'd highly appreciate it, if you could also test this<br>
> patch on your Lenovo. Anyone else is welcome too :).<br>
><br>
> I'll commit this in 1-2 weeks if there are no objections.<br>
><br>
> Regards,<br>
><br>
>   Michael<br>
><br>
> ><br>
> > Thanks!<br>
> > Antonio Huete<br>
> ><br>
> > On 4/11/24 13:56, karu.pruun wrote:<br>
> > > Hello<br>
> > ><br>
> > > Great, thanks for doing this work! I'll try to test over weekend.<br>
> > ><br>
> > > Best<br>
> > ><br>
> > > Peeter<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Wed, Apr 10, 2024 at 11:41???AM Michael Neumann <<a href="mailto:mneumann@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">mneumann@ntecs.de</a>> wrote:<br>
> > > ><br>
> > > > Hi all,<br>
> > > ><br>
> > > > The last couple of days, I worked on syncing our psm/evdev and atkbd<br>
> > > > code  (partially) with FreeBSD head. The result should be better input<br>
> > > > device support (Touchpad etc.) on some Laptops.<br>
> > > ><br>
> > > > The full patch is here:<br>
> > > ><br>
> > > > <a href="https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD.patch" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD.patch</a><br>
> > > ><br>
> > > > The full list of commits can be seen here:<br>
> > > ><br>
> > > > <a href="https://github.com/mneumann/DragonFlyBSD/tree/sync-psm-evdev-atkbd-with-freebsd" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/mneumann/DragonFlyBSD/tree/sync-psm-evdev-atkbd-with-freebsd</a><br>
> > > ><br>
> > > > I am currently testing this on an old Panasonic CF-SV laptop that I<br>
> > > > bought in Japan, and plan to also test it on a Tuxdeo laptop, where I<br>
> > > > really had issues with the psm driver, which regularily got out of sync.<br>
> > > > This issue should now be fixed, as it is likely to be related to active<br>
> > > > AUX port multiplexing. Feel free to test this patch as well and report<br>
> > > > back potentially issues. If there are no objections, I'd like to merge<br>
> > > > it within the next few weeks.<br>
> > > ><br>
> > > > To summarize some of the changes:<br>
> > > ><br>
> > > > * This (partially) syncs psm/atkbd/evdev with FreeBSD.<br>
> > > ><br>
> > > > * Mostly psm and evdev (w/o uinput) is synced with FreeBSD.<br>
> > > ><br>
> > > > * As for atkbd, only parts related to support active AUX port<br>
> > > >    multiplexer code is synced from FreeBSD. Active AUX port<br>
> > > >    MUX is required to detect for example my synaptics touchpad<br>
> > > >    on the Pansonic CF-SV, otherwise the touchpad is only recognized<br>
> > > >    as standard PS/2 mouse. Other laptops use the same "method" to<br>
> > > >    attach "multiple" mice to the AUX port.<br>
> > > ><br>
> > > > * Adds kern.features sysctl. Xorg uses e.g. kern.features.evdev<br>
> > > >    and kern.features.evdev_support to detect if evdev is available.<br>
> > > >    Alternative is to patch the port. This could be done in<br>
> > > ><br>
> > > >    x11-servers/xorg-server/dragonfly/patch-config_udev.c<br>
> > > ><br>
> > > >    by adding sth like:<br>
> > > ><br>
> > > >          if (strcmp(feature, "evdev") == 0)<br>
> > > >                  return (1);<br>
> > > >          if (strcmp(feature, "evdev_support") == 0)<br>
> > > >                  return (1);<br>
> > > ><br>
> > > >    to the feature_present(const char*) function.<br>
> > > ><br>
> > > >    But I think having kern.features sysctl is the better good way.<br>
> > > ><br>
> > > > * Tested with a Synaptics Touchpad using both moused/sysmouse and<br>
> > > >    libinput under X11. Both work reliably.<br>
> > > ><br>
> > > > * Enables by default hw.psm.{synaptics,trackpoint,elantech}_support.<br>
> > > ><br>
> > > > * Set hw.psm.mux_disabled=1 if your keyboard no longer works due<br>
> > > >    to the AUX MUX code (I haven't synced the quirks code yet).<br>
> > > ><br>
> > > > * atkbd - periodic polling is disabled. Can be turned on by setting<br>
> > > >    loader tunable hw.atkbd.hz to 1 or 10 (as it was before).<br>
> > > ><br>
> > > > ## How to use this with Xorg<br>
> > > ><br>
> > > > sysctl kern.evdev.rcpt_mask=6<br>
> > > ><br>
> > > > Then, either add moused_enable=YES to /etc/rc.conf. Then you can<br>
> > > > use this with the default xorg.conf.<br>
> > > ><br>
> > > > To use this with libinput, which I do, I had to add the following to<br>
> > > > /etc/X11/xorg.conf:<br>
> > > ><br>
> > > > ```<br>
> > > > Section "InputClass"<br>
> > > >          Identifier "libinput pointer catchall"<br>
> > > >          MatchIsPointer "on"<br>
> > > >              MatchIsTouchpad "on"<br>
> > > >          MatchDevicePath "/dev/input/event*"<br>
> > > >          Driver "libinput"<br>
> > > > EndSection<br>
> > > > ```<br>
> > > ><br>
> > > > and in $HOME/.xinitrc:<br>
> > > ><br>
> > > > ```<br>
> > > > xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1<br>
> > > > ```<br>
> > > ><br>
> > > > to enable tapping. Not needed if sysmouse is used (requires running<br>
> > > > moused). Scrolling feels better with libinput, but that is likely just<br>
> > > > a better default setting.<br>
> > > ><br>
> > > > ## Open issues<br>
> > > ><br>
> > > > * I haven't ported the following patch, which describes a LOR (lock order<br>
> > > >    reversal) by using  evdev_register_mtx(). Maybe someone understands this<br>
> > > >    patch or how to fix the LOR... an easy fix would be to use<br>
> > > >    evdev_register() and using the internal evdev lock.<br>
> > > ><br>
> > > >    <a href="https://github.com/freebsd/freebsd-src/commit/d276eae674d22214d6a58d1f4871053ceb0cb9f5" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/freebsd/freebsd-src/commit/d276eae674d22214d6a58d1f4871053ceb0cb9f5</a><br>
> > > ><br>
> > > > * The psmintr still runs using the mplock. Is that required or is it safe<br>
> > > >    to add INTR_MPSAFE to BUS_SETUP_INTR?<br>
> > > ><br>
> > > > * Before this patch, Xorg would recognize my mouse without moused<br>
> > > >    running with the default configuration. This no longer works.<br>
> > > ><br>
> > > > Regards,<br>
> > > ><br>
> > > >    Michael<br>
><br>
> --<br>
> Michael Neumann<br>
> NTECS Consulting<br>
> <a href="http://www.ntecs.de" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">www.ntecs.de</a><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 18 Apr 2024 16:21:47 +0200<br>
From: Michael Neumann <<a href="mailto:mneumann@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">mneumann@ntecs.de</a>><br>
To: "karu.pruun" <<a href="mailto:karu.pruun@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">karu.pruun@gmail.com</a>><br>
Cc: <a href="mailto:users@dragonflybsd.org" rel="noreferrer noreferrer noreferrer" target="_blank">users@dragonflybsd.org</a><br>
Subject: Re: [Patch] Sync psm/evdev/atkbd with FreeBSD - please test<br>
Message-ID: <<a href="mailto:ZiEse3Rtvojo0Oh4@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">ZiEse3Rtvojo0Oh4@ntecs.de</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Thu, Apr 18, 2024 at 12:41:29PM +0000, karu.pruun wrote:<br>
> Hello<br>
> <br>
> I tested on Thinkpad T490 with the latest patch, everything works well.<br>
> <br>
> The patched kernel recognizes the following devices:<br>
> <br>
> --<br>
> kern.features.evdev_support: 1<br>
> kern.features.evdev: 1<br>
> <a href="http://kern.evdev.input.0.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.0.name</a>: System keyboard multiplexer<br>
> kern.evdev.input.0.phys: kbdmux0<br>
> kern.evdev.input.0.uniq:<br>
> <a href="http://kern.evdev.input.1.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.1.name</a>: System mouse<br>
> kern.evdev.input.1.phys: sysmouse<br>
> kern.evdev.input.1.uniq:<br>
> <a href="http://kern.evdev.input.2.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.2.name</a>: AT keyboard<br>
> kern.evdev.input.2.phys: atkbd0<br>
> kern.evdev.input.2.uniq:<br>
> <a href="http://kern.evdev.input.3.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.3.name</a>: SynPS/2 Synaptics TouchPad<br>
> kern.evdev.input.3.phys: psm0<br>
> kern.evdev.input.3.uniq:<br>
> <a href="http://kern.evdev.input.4.name" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">kern.evdev.input.4.name</a>: TPPS/2 IBM TrackPoint<br>
> kern.evdev.input.4.phys: psm0<br>
> kern.evdev.input.4.uniq:<br>
> kern.evdev.sysmouse_t_axis: 0<br>
> kern.evdev.rcpt_mask: 12<br>
> --<br>
> <br>
> Previously, without patch it would only recognize the first two.<br>
> <br>
> Tapping and two finger scrolling work! My setup is simpler, I use the<br>
> libinput driver for kbd and mouse in Xorg.conf, and nothing more; no<br>
> moused, no additional script for tapping --- still works fine.<br>
<br>
Thanks Peeter for testing! Could you share your Xorg.conf as well?<br>
I haven't tested kbd using libinput yet.<br>
<br>
> By the way, the 'libinput list-devices' was broken beforehand in that<br>
> it did not return; that's fixed now too.<br>
<br>
Interesting. Maybe it's related to the kern.features sysctl that now<br>
exists. Without that sysctl, X11 does not recognize the libinput/evdev<br>
devices!<br>
<br>
> All in all, this is so much better than what we have currently that to<br>
> my mind it could be committed right away. Maybe more people can then<br>
> test and report back if they see bugs.<br>
<br>
Agreed!<br>
<br>
> Thanks again for this! The desktop experience is much better now.<br>
<br>
Glad that people are using DragonFly on a desktop...<br>
<br>
Regards,<br>
<br>
  Michael<br>
<br>
><br>
> <br>
> Best<br>
> <br>
> Peeter<br>
> <br>
> --<br>
> <br>
> On Thu, Apr 18, 2024 at 7:01???AM Michael Neumann <<a href="mailto:mneumann@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">mneumann@ntecs.de</a>> wrote:<br>
> ><br>
> > On Fri, Apr 12, 2024 at 09:36:39PM +0200, Antonio Huete Jimenez wrote:<br>
> > > Started testing this on my Lenovo Thinkpad T480, so far it works like a<br>
> > > charm! Just had to set the rcpt mask and it started work + gestures. Then<br>
> > > went and enabled tapping with the xinput command.<br>
> > ><br>
> > > I'll continue using it but if there are no unexpected crashes or problems I<br>
> > > think you can just push it.<br>
> ><br>
> > Hi Antonio,<br>
> ><br>
> > Thanks for testing! In the meantime I also tested the patch on a Tuxedo<br>
> > Laptop with great success. And I also incoorperated the patch from<br>
> > bugreport #3206: <a href="https://bugs.dragonflybsd.org/issues/3206" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://bugs.dragonflybsd.org/issues/3206</a><br>
> > Thanks to the author(s) for the work!<br>
> ><br>
> > This leads to this new patch:<br>
> ><br>
> > <a href="https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD-rev2.patch" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD-rev2.patch</a><br>
> ><br>
> > which further syncs the atkbd and kbd drivers with FreeBSD and also does<br>
> > a lot of reformatting.<br>
> ><br>
> > I'd highly appreciate it, if you could also test this<br>
> > patch on your Lenovo. Anyone else is welcome too :).<br>
> ><br>
> > I'll commit this in 1-2 weeks if there are no objections.<br>
> ><br>
> > Regards,<br>
> ><br>
> >   Michael<br>
> ><br>
> > ><br>
> > > Thanks!<br>
> > > Antonio Huete<br>
> > ><br>
> > > On 4/11/24 13:56, karu.pruun wrote:<br>
> > > > Hello<br>
> > > ><br>
> > > > Great, thanks for doing this work! I'll try to test over weekend.<br>
> > > ><br>
> > > > Best<br>
> > > ><br>
> > > > Peeter<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > On Wed, Apr 10, 2024 at 11:41???AM Michael Neumann <<a href="mailto:mneumann@ntecs.de" rel="noreferrer noreferrer noreferrer" target="_blank">mneumann@ntecs.de</a>> wrote:<br>
> > > > ><br>
> > > > > Hi all,<br>
> > > > ><br>
> > > > > The last couple of days, I worked on syncing our psm/evdev and atkbd<br>
> > > > > code  (partially) with FreeBSD head. The result should be better input<br>
> > > > > device support (Touchpad etc.) on some Laptops.<br>
> > > > ><br>
> > > > > The full patch is here:<br>
> > > > ><br>
> > > > > <a href="https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD.patch" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://leaf.dragonflybsd.org/~mneumann/0001-Sync-psm-evdev-atkbd-with-FreeBSD.patch</a><br>
> > > > ><br>
> > > > > The full list of commits can be seen here:<br>
> > > > ><br>
> > > > > <a href="https://github.com/mneumann/DragonFlyBSD/tree/sync-psm-evdev-atkbd-with-freebsd" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/mneumann/DragonFlyBSD/tree/sync-psm-evdev-atkbd-with-freebsd</a><br>
> > > > ><br>
> > > > > I am currently testing this on an old Panasonic CF-SV laptop that I<br>
> > > > > bought in Japan, and plan to also test it on a Tuxdeo laptop, where I<br>
> > > > > really had issues with the psm driver, which regularily got out of sync.<br>
> > > > > This issue should now be fixed, as it is likely to be related to active<br>
> > > > > AUX port multiplexing. Feel free to test this patch as well and report<br>
> > > > > back potentially issues. If there are no objections, I'd like to merge<br>
> > > > > it within the next few weeks.<br>
> > > > ><br>
> > > > > To summarize some of the changes:<br>
> > > > ><br>
> > > > > * This (partially) syncs psm/atkbd/evdev with FreeBSD.<br>
> > > > ><br>
> > > > > * Mostly psm and evdev (w/o uinput) is synced with FreeBSD.<br>
> > > > ><br>
> > > > > * As for atkbd, only parts related to support active AUX port<br>
> > > > >    multiplexer code is synced from FreeBSD. Active AUX port<br>
> > > > >    MUX is required to detect for example my synaptics touchpad<br>
> > > > >    on the Pansonic CF-SV, otherwise the touchpad is only recognized<br>
> > > > >    as standard PS/2 mouse. Other laptops use the same "method" to<br>
> > > > >    attach "multiple" mice to the AUX port.<br>
> > > > ><br>
> > > > > * Adds kern.features sysctl. Xorg uses e.g. kern.features.evdev<br>
> > > > >    and kern.features.evdev_support to detect if evdev is available.<br>
> > > > >    Alternative is to patch the port. This could be done in<br>
> > > > ><br>
> > > > >    x11-servers/xorg-server/dragonfly/patch-config_udev.c<br>
> > > > ><br>
> > > > >    by adding sth like:<br>
> > > > ><br>
> > > > >          if (strcmp(feature, "evdev") == 0)<br>
> > > > >                  return (1);<br>
> > > > >          if (strcmp(feature, "evdev_support") == 0)<br>
> > > > >                  return (1);<br>
> > > > ><br>
> > > > >    to the feature_present(const char*) function.<br>
> > > > ><br>
> > > > >    But I think having kern.features sysctl is the better good way.<br>
> > > > ><br>
> > > > > * Tested with a Synaptics Touchpad using both moused/sysmouse and<br>
> > > > >    libinput under X11. Both work reliably.<br>
> > > > ><br>
> > > > > * Enables by default hw.psm.{synaptics,trackpoint,elantech}_support.<br>
> > > > ><br>
> > > > > * Set hw.psm.mux_disabled=1 if your keyboard no longer works due<br>
> > > > >    to the AUX MUX code (I haven't synced the quirks code yet).<br>
> > > > ><br>
> > > > > * atkbd - periodic polling is disabled. Can be turned on by setting<br>
> > > > >    loader tunable hw.atkbd.hz to 1 or 10 (as it was before).<br>
> > > > ><br>
> > > > > ## How to use this with Xorg<br>
> > > > ><br>
> > > > > sysctl kern.evdev.rcpt_mask=6<br>
> > > > ><br>
> > > > > Then, either add moused_enable=YES to /etc/rc.conf. Then you can<br>
> > > > > use this with the default xorg.conf.<br>
> > > > ><br>
> > > > > To use this with libinput, which I do, I had to add the following to<br>
> > > > > /etc/X11/xorg.conf:<br>
> > > > ><br>
> > > > > ```<br>
> > > > > Section "InputClass"<br>
> > > > >          Identifier "libinput pointer catchall"<br>
> > > > >          MatchIsPointer "on"<br>
> > > > >              MatchIsTouchpad "on"<br>
> > > > >          MatchDevicePath "/dev/input/event*"<br>
> > > > >          Driver "libinput"<br>
> > > > > EndSection<br>
> > > > > ```<br>
> > > > ><br>
> > > > > and in $HOME/.xinitrc:<br>
> > > > ><br>
> > > > > ```<br>
> > > > > xinput set-prop 'SynPS/2 Synaptics TouchPad' 'libinput Tapping Enabled' 1<br>
> > > > > ```<br>
> > > > ><br>
> > > > > to enable tapping. Not needed if sysmouse is used (requires running<br>
> > > > > moused). Scrolling feels better with libinput, but that is likely just<br>
> > > > > a better default setting.<br>
> > > > ><br>
> > > > > ## Open issues<br>
> > > > ><br>
> > > > > * I haven't ported the following patch, which describes a LOR (lock order<br>
> > > > >    reversal) by using  evdev_register_mtx(). Maybe someone understands this<br>
> > > > >    patch or how to fix the LOR... an easy fix would be to use<br>
> > > > >    evdev_register() and using the internal evdev lock.<br>
> > > > ><br>
> > > > >    <a href="https://github.com/freebsd/freebsd-src/commit/d276eae674d22214d6a58d1f4871053ceb0cb9f5" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/freebsd/freebsd-src/commit/d276eae674d22214d6a58d1f4871053ceb0cb9f5</a><br>
> > > > ><br>
> > > > > * The psmintr still runs using the mplock. Is that required or is it safe<br>
> > > > >    to add INTR_MPSAFE to BUS_SETUP_INTR?<br>
> > > > ><br>
> > > > > * Before this patch, Xorg would recognize my mouse without moused<br>
> > > > >    running with the default configuration. This no longer works.<br>
> > > > ><br>
> > > > > Regards,<br>
> > > > ><br>
> > > > >    Michael<br>
> ><br>
> > --<br>
> > Michael Neumann<br>
> > NTECS Consulting<br>
> > <a href="http://www.ntecs.de" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">www.ntecs.de</a><br>
<br>
-- <br>
Michael Neumann<br>
NTECS Consulting<br>
<a href="http://www.ntecs.de" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">www.ntecs.de</a><br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Users mailing list<br>
Users@<br>
<a href="https://lists.dragonflybsd.org/mailman/listinfo/users" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.dragonflybsd.org/mailman/listinfo/users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Users Digest, Vol 137, Issue 8<br>
*************************************<br>
</blockquote></div></div>