From nobody Fri Jul 16 06:35:39 2021 X-Original-To: x11@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2B4F212770C2 for ; Fri, 16 Jul 2021 06:35:45 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GR1hc2ckFz3FlZ for ; Fri, 16 Jul 2021 06:35:44 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x42f.google.com with SMTP id i94so10772795wri.4 for ; Thu, 15 Jul 2021 23:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=my+U9ra7GCALDOvzXYeBA/E4TLKS0yVosBb6L7XQOnw=; b=DttEVgEBYybhdA4kWLNwxbUvsUqmaF9nLF5k9p+2jXA3d2VrmNswS0hdUs2pSB5X26 UccRxU+NIFyopMEemhIKnKT2/vh6myrRUpQf5OWkOu92lHl6Ds57lahsEK9YLGx1xTzD /OTEFQYrvNqSB1dNU32TR9yHFVZ0F9MNnbtryPk0yVkTRYqOOmfF9YRghOUQpQRxDysi mjcaRuIkwLSM6aLWARYsT0tpl/0dHm/z+DvEMlkF3CDxIwwcv+s51PUQXKJCEcsqhOwQ 5PF8PoWiVny7gnwg412cXx8iMCz7Jr/J9v+cZYgHWtmbvI13TnHwJbDRQEtf51ot9a5c nWTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=my+U9ra7GCALDOvzXYeBA/E4TLKS0yVosBb6L7XQOnw=; b=QUYvX1M9ryGXmDq4IQozwGIp3SSB1IiVfjpWsPKrl/1JDOmBAGN/Je1I6PXXEJbIGt YgTKUXny/E+aZ1GX8CRLOLg/rWDbP0lv637swbl+jBLN4LY2MmlBNhn5GItO7Aq6j4hG B6DPZP4NLhgrTH4gPk7lggXW/48IQwRtwj3qWjcBOabHh06cnMDEaJoV5LRqFNfV/C5k 5jHeWk/50j+FN98CPr0yIKkYlPp/ZtTso6/1akOEt1Kd7TU4UNj6Q4SH4seuxv7ayU7H x7x0nHxPW/GiQb/95DjNIkfWLHl4uBnosDyOF4rW4dYeKehONaBEDuViXMlRO5D0Naa6 znwA== X-Gm-Message-State: AOAM532PyE0CgxYqCppLE1PkGeH0Vbdu8qqAV2eR+2UMxdYDLt6TeJFm 9Joniu1JX469miHFiO/1O9E= X-Google-Smtp-Source: ABdhPJxGVGF0JUjcVfa1ni1CAkplRPv4O2ehyQher8tm3+ZfwP6tKeEbXUELzFSM2Sgz9rIuzDplbA== X-Received: by 2002:a05:6000:180f:: with SMTP id m15mr10234538wrh.388.1626417342935; Thu, 15 Jul 2021 23:35:42 -0700 (PDT) Received: from ernst.home (pd9e2360f.dip0.t-ipconnect.de. [217.226.54.15]) by smtp.gmail.com with ESMTPSA id y16sm9089351wrw.42.2021.07.15.23.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 23:35:42 -0700 (PDT) Date: Fri, 16 Jul 2021 08:35:39 +0200 From: Gary Jennejohn To: Warner Losh Cc: Niclas Zeising , Michael Gmelin , FreeBSD X11 Subject: Re: mouse and keyboard fail to work with xorg-server-1.20.11_3,1 Message-ID: <20210716063539.12b35f80@ernst.home> In-Reply-To: <20210716061708.6c791297@ernst.home> References: <20210714140055.7ca49259@ernst.home> <20210714170444.08a7f1f4@bsd64.grem.de> <20210714154404.03c32df6@ernst.home> <20210715102752.6b8570fa@ernst.home> <5746ba5f-5788-ff5d-a620-9b481806b464@daemonic.se> <20210716061708.6c791297@ernst.home> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GR1hc2ckFz3FlZ X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DttEVgEB; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::42f as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-0.87 / 15.00]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::42f:from]; RECEIVED_SPAMHAUS_PBL(0.00)[217.226.54.15:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TAGGED_RCPT(0.00)[freebsd]; FREEMAIL_REPLYTO(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::42f:from:127.0.2.255]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.63)[0.629]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42f:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[x11]; SUSPICIOUS_RECIPS(1.50)[] X-ThisMailContainsUnwantedMimeParts: N On Fri, 16 Jul 2021 08:17:08 +0200 Gary Jennejohn wrote: > On Thu, 15 Jul 2021 13:18:56 -0600 > Warner Losh wrote: > > > On Thu, Jul 15, 2021 at 1:14 PM Niclas Zeising > > wrote: > > > > > On 2021-07-15 12:27, Gary Jennejohn wrote: > > > > On Wed, 14 Jul 2021 17:44:04 +0200 > > > > Gary Jennejohn wrote: > > > > > > > >> On Wed, 14 Jul 2021 17:04:44 +0200 > > > >> Michael Gmelin wrote: > > > >> > > > >>> On Wed, 14 Jul 2021 16:00:55 +0200 > > > >>> Gary Jennejohn wrote: > > > >>> > > > >>>> So, I made the mistake of updating firefox today, which resulted in a > > > >>>> forced installation of xorg-server-1.20.11_3,1. > > > >>>> > > > >>>> Unfortunately, neither the keyboard nor the mouse worked, even after I > > > >>>> pkg installed xf86-input-keyboard-1.9.0_4 and > > > >>>> xf86-input-mouse-1.9.3_3. > > > >>>> > > > >>>> Luckily, I had a full backup of /usr/local which I could restore to > > > >>>> get a working Xorg. > > > >>>> > > > >>>> Still, it seems rather strange that both the keyboard and mouse > > > >>>> stopped working even after I installed the supposedly relevant > > > >>>> drivers. > > > >>>> > > > >>>> Or maybe those aren't the correct drivers? > > > >>> > > > >>> They aren't, xorg moved to libinput. Maybe all you need is: > > > >>> > > > >>> pkg install xf86-input-libinput > > > >>> > > > >>>> > > > >>>> So, does anyone know what I have to do to get a working keyboard and > > > >>>> mouse with the new xorg-server? > > > >>>> > > > >>> > > > >>> Depends on your version of the OS/installed packages. If installing > > > >>> libinput won't do the trick, you could try a little tool I wrote last > > > >>> year to help debugging Xorg's config after the migration. It's probably > > > >>> a bit outdated at this point: > > > >>> https://github.com/grembo/xorg-udev-setup-check > > > >>> > > > >>> See also: > > > >>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196678 > > > >>> Google: kern.evdev.rcpt_mask domain:lists.freebsd.org > > > >>> > > > >> > > > >> Thanks, but as I reported in a follow-up post I got it working. > > > >> > > > >> And libinput was already installed. > > > >> > > > > > > > > That was a fluke. When I tried to start Xorg 1.20.11 today the > > > > mouse and keyboard didn't work. I have no idea why it all of > > > > a sudden worked yesterday but not today. I ran Xorg -version > > > > yesterday to verify that the new server was really running. > > > > > > > > Thanks to your shell script I found out that two libraries were > > > > missing, something which I would expect to be automatically taken > > > > care of by an update of xorg-server. So I installed them (thanks to > > > > pkg). > > > > > > > > I also changed kern.evdev.rcpt_mask to 6, as recommended by your > > > > fantastic script. > > > > > > Which libraries were missing? > > > > > > kern.evdev.rcpt_mask should be 12, it is the default of all supported > > > FreeBSD versions which use evdev. > > > > > > > I asked these questions in private earlier today. Lemme summarize > > the email thread... > > > > He wasn't sure if setting the rcpt_mask fixed it, or adding > > xf86-input-libinput-0.30.0_1 and xf86-input-evdev-2.10.6_6 ports. He got > > here by > > adding a number of ports and having a FreeBSD 13 -> 14 ABI forced > > upgrade. I think that there's nothing obvious in his setup that > > we could fix. > > > > Thanks, Warner. > > To clarify things somewhat, I deleted both ports today and then > no longer had the mouse and keyboard after starting xorg-server. > > Re-installing xf86-input-libinput-0.30.0_1 while keeping > kern.evdev.rcpt_mask set to 6 got me back the mouse and keyboard. > > Whether using the default of 12 for kern.evdev.rcpt_mask works I haven't > tried. But I have kbdmux in my kernel config file, so I think 6 is the right > setting for me. > Using kern.evdev.rcpt_mask=12 still works, so it was the missing xf86-input-libinput-0.30.0_1 which caused my problems. -- Gary Jennejohn