From owner-freebsd-x11@freebsd.org Wed Sep 16 09:22:05 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D55B63DF148 for ; Wed, 16 Sep 2020 09:22:05 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (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 4BrvkP14Ysz4Vkq for ; Wed, 16 Sep 2020 09:22:04 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 4BrvkL21D8z3mRL; Wed, 16 Sep 2020 09:22:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([127.0.0.1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [127.0.0.1]) (amavisd-new, port 10587) with ESMTPS id 1n_5XqMJX8Zo; Wed, 16 Sep 2020 09:22:01 +0000 (UTC) Received: from vivi.daemonic.se (vivi.daemonic.se [IPv6:2001:470:dca9:1200::4]) by mail.daemonic.se (Postfix) with ESMTPSA id 4BrvkK3wBkz3mQw; Wed, 16 Sep 2020 09:22:01 +0000 (UTC) Subject: Re: Is there any performance difference between udev and evdev in xorg? To: Grzegorz Junka , freebsd-x11@freebsd.org References: <20200916040110.GA46039@FreeBSD.org> <9fcf11e9-6466-3660-5322-997ed8cb3ca7@freebsd.org> <20200916073731.GA45977@FreeBSD.org> <7c43526f-c88f-c893-9285-8e2cbf1ead17@gjunka.com> From: Niclas Zeising Message-ID: <67ec5f69-218a-e271-6094-6d82d975f9e9@freebsd.org> Date: Wed, 16 Sep 2020 11:22:01 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <7c43526f-c88f-c893-9285-8e2cbf1ead17@gjunka.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4BrvkP14Ysz4Vkq X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:36236, ipnet:176.58.89.0/24, country:US]; local_wl_from(0.00)[freebsd.org] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Sep 2020 09:22:05 -0000 On 2020-09-16 10:07, Grzegorz Junka wrote: >=20 > On 16/09/2020 07:37, Alexey Dokuchaev wrote: >> On Wed, Sep 16, 2020 at 08:41:28AM +0200, Niclas Zeising wrote: >>> On 2020-09-16 06:01, Alexey Dokuchaev wrote: >>>> On Tue, Sep 15, 2020 at 10:55:31PM -0400, Aryeh Friedman wrote: >>>>> What if any is the performance difference between udev and evdev wh= en >>>>> configuring xorg?=C2=A0 Also do I need to use one or the other cons= istently >>>>> or can I intermix them? >>>> If you don't need them (e.g. because this is desktop system without >>>> fancy input devices), you'd better off with disabling both of them >>>> altogether and use good old traditional way, that is, simply install >>>> xf86-input-{keyboard,mouse} and let X.org handle those peripherals. >>>> >>>> Yes, you would still be able to plug and unplug your USB mice and >>>> they will be detected and working as expected. >>>> >>>> TL;DR: DEVD/UDEV support is overrated and usually not needed at all. >>> This is bad advice. >> OK, let's see why is it bad. :-) >> >>> The DEVD support in xorg-server might go away, since it is a FreeBSD >>> only solution and the udev/evdev is similar to what is used on Linux. >> Does this imply that DEVD support in X.org is technically inferior to >> udev/evdev, or it might get deprecated just because they prefer Linux >> way, regardless of the actual design and implementation quality?=C2=A0= Kind >> of tangentially related question, but this might help to foresee what >> to expect from future X.org development. >> >=20 > Linux way doesn't mean it's a bad way. As a user I don't really care if= =20 > it's Linux way or not as long as it supports the hardware that I spent=20 > my money on. >=20 > As a developer I do care about a solution that is simpler to code and=20 > use, but not if it's Linux or not. Can you actually define what you mea= n=20 > by Linux way? >=20 > However, the most important thing that I care about is that the code I=20 > am learning and using is copyfree. If someone was kind enough to rewrit= e=20 > the whole Linux using a FreeBSD license then I wouldn't mind switching=20 > to do that to make a better use of the hardware that I have. In this case, it is copyfree. We have a udev/evdev compat layer in the=20 FreeBSD kernel that is BSD licensed, since it was developed on and for=20 FreeBSD. For the rest of the stack, which means libinput and the device=20 handling in X and wayland, it is MIT licensed, since upstream code=20 generally is MIT licensed. Regards --=20 Niclas Zeising