From nobody Thu Jul 15 19:18:56 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 859648D337F for ; Thu, 15 Jul 2021 19:19:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) (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 4GQkgx0jMKz3QVV for ; Thu, 15 Jul 2021 19:19:08 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x836.google.com with SMTP id x24so5314879qts.11 for ; Thu, 15 Jul 2021 12:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jTwnVzlJs87+A3OxgutKwyX+7URrZJrXhFjcHbw6cDI=; b=e/x87hD/s9eqOUJAY6yZa/fxUXSVmuSYq1hBJxnefRp/3rtJEBbz8jDHqcoI+X2Ph+ 6B/SXWawJji72Uv8dBOZUa+wv4RaAG0rIymRKAbELsITSoMSFl/EPgxGFsxtYPtCdVEb F7eb1ZCtUZNpaXPJQjVo6IS1dEy0pD1am5iuLRLlMQvz1+4YqThszzK5OnoAxmoiYZ4j iPFj8ptjL+cT4kWAwTQRPQSaHR0uK/L5qyjhGEyBQyrQ6h2QdWsVLqEMwPEcNC0yNloL m3c+lKriTmDGA+5v4Ui9K+qHwTZq+xDhXzY5Jj8kdPvu8PnvNEQTUf3xjVEmfP78qjD1 mPiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jTwnVzlJs87+A3OxgutKwyX+7URrZJrXhFjcHbw6cDI=; b=TEKSEelKjgLCLbR/CSAC8w+xMDXK5QU2kSc5Ian0i/ryagkCbYcqY+TBk2PAN401Zu 2qNSyLOr5uspBJeEzJQMP6UDRsbLro6NQJVXIBDeFUmU4WhBbCkjSH4/GqzHqHbtpAgp aMNmN2/dp8ckghc8mK/ONJlCBbkAFcOoFlBDD8kI94+1G4Viz5vgjI5Nfn+Rej2uSRtn 7BbH5mtk28+Fa6RiXHEeB1fqIGQUYYvIQXtZDFqgrmXmA6vaMBovhGb5lTJHs9btYz7V VMD2AULgqpR/TLvXch0+g3Bw+ZjTnxlg/EIQHtufO2hUrs/ajg2DdJhvkUln3TllAHof f0aA== X-Gm-Message-State: AOAM533/9uoisJzQR/peYx8ZJObWLJ8ri51r+410+7MuVQPFtGwlOW7K 3TlPAA9Vx8xpp7wgjJKZ+L9D5ZOAOkWgavxy42AA2vDB9C66KmuM X-Google-Smtp-Source: ABdhPJyBGKiVYl50VnpkpZyTbhd40AWXo7rFlxnVzVHs1Yn2AmKpzSw2Ywk1jUnYz7S1CmzaB1agvI+IduXF1zNBHl4= X-Received: by 2002:ac8:2:: with SMTP id a2mr5496387qtg.101.1626376747901; Thu, 15 Jul 2021 12:19:07 -0700 (PDT) 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 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> In-Reply-To: <5746ba5f-5788-ff5d-a620-9b481806b464@daemonic.se> From: Warner Losh Date: Thu, 15 Jul 2021 13:18:56 -0600 Message-ID: Subject: Re: mouse and keyboard fail to work with xorg-server-1.20.11_3,1 To: Niclas Zeising Cc: Gary Jennejohn , Michael Gmelin , FreeBSD X11 Content-Type: multipart/alternative; boundary="00000000000054754405c72e5860" X-Rspamd-Queue-Id: 4GQkgx0jMKz3QVV X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=e/x87hD/; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::836) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-1.43 / 15.00]; SUSPICIOUS_RECIPS(1.50)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.93)[-0.934]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::836:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[freebsd]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::836:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::836:from]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[x11]; FREEMAIL_CC(0.00)[gmail.com,grem.de,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N --00000000000054754405c72e5860 Content-Type: text/plain; charset="UTF-8" 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. Warner --00000000000054754405c72e5860--