From owner-freebsd-x11@freebsd.org Tue Jun 12 03:25:36 2018 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96E58100C8CB for ; Tue, 12 Jun 2018 03:25:36 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2CB2D68D5B for ; Tue, 12 Jun 2018 03:25:36 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: by mailman.ysv.freebsd.org (Postfix) id DF911100C8C2; Tue, 12 Jun 2018 03:25:35 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4FF3100C8C1 for ; Tue, 12 Jun 2018 03:25:35 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from vps-mail.nomadlogic.org (mail.nomadlogic.org [IPv6:2607:f2f8:a098::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 24CBF68D59; Tue, 12 Jun 2018 03:25:34 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [IPv6:2605:e000:1313:89:223:24ff:fea8:4fb5] (2605:e000:1313:89:223:24ff:fea8:4fb5 [IPv6:2605:e000:1313:89:223:24ff:fea8:4fb5]) by vps-mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id ee86e52b TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Mon, 11 Jun 2018 20:25:33 -0700 (PDT) Subject: Re: [CFT] changes and updates to x11 input devices To: Johannes Lundberg Cc: Niclas Zeising , x11@freebsd.org References: <0dc5db04-736a-9ac9-c515-2b078b1ca74f@nomadlogic.org> <86h8m96s19.fsf@gmail.com> From: Pete Wright Message-ID: <0c770921-46a8-782d-18fd-d939046a1986@nomadlogic.org> Date: Mon, 11 Jun 2018 20:25:31 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <86h8m96s19.fsf@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 03:25:36 -0000 On 06/11/2018 12:29, Johannes Lundberg wrote: > Pete Wright writes: > >> On 06/10/2018 23:02, Johannes Lundberg wrote: >>> >>> On Sun, Jun 10, 2018 at 9:58 PM Pete Wright >> > wrote: >>> >>> >>> >>> On 06/10/2018 00:01, Niclas Zeising wrote: >>> > Hi! >>> > I've been working for a little while on incorporating the various >>> > patches floating around for changes and updates to xorg input >>> drivers, >>> > mostly related to libinput. The result can be found here, in >>> the x11 >>> > team development repo: >>> > >>> > https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/input >>> > >>> > It contains upates to libinput, libeevdev, libwacom, >>> > xf86-input-libinput and dependencies. >>> > >>> > Please help me in testing this as much as possible, so that we can >>> > land it in the ports system >>> > >>> > The branch above is a complete ports tree, so you can use it to >>> build >>> > from, or to point poudriere at it. Please test various input >>> devices, >>> > synaptics touchpads, wacom devices and so on. Both success and >>> > failure stories are interesting. >>> >>> >>> i haven't had any issues installing pkgs via this branch. one >>> question >>> tho - i believe to make use of libevdev it requires a kernel built >>> with >>> evdev support correct? if that is so - is there a specific patchset >>> that should be used? >>> >>> i tested out evdev a while ago - but am not sure the patchset i have >>> laying around is the correct one. >>> >>> >>> Hi >>> >>> For evdev simply add to your kernel config >>> >>> options EVDEV_SUPPORT >>> device evdev >>> >> oh awesome - didn't realize it had been upstreamed. thanks johannes! >> -pete > Don't forget to set the sysctl. I have this in my /etc/sysctl.conf > > # define EVDEV_RCPT_SYSMOUSE (1<<0) > # define EVDEV_RCPT_KBDMUX (1<<1) > # define EVDEV_RCPT_HW_MOUSE (1<<2) > # define EVDEV_RCPT_HW_KBD (1<<3) > > # Legacy mode > #kern.evdev.rcpt_mask=3 > > # Libinput and friends > kern.evdev.rcpt_mask=12 thanks again johannes! i've been running this on two drm-next systems for a day or so now without issues.  one is a laptop with synaptics touchpad, other is a workstation.  the biggest gap in my testing is that i don't have a patch-set handy for evdev enabled xorg-server port handy. i might take a look at past attempts and see if i can get it working tonight - but if others have something working already i'd be keen to check it out :) -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA