From nobody Fri Jul 16 06:36:14 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 A70391277551 for ; Fri, 16 Jul 2021 06:36:31 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GR1jW32l9z3GGL for ; Fri, 16 Jul 2021 06:36:31 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 03eae040; Fri, 16 Jul 2021 06:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=4agQ5ICP7lkuQE 9/CdiLHLb2+Xw=; b=X7VwPIjA6hhFCMMUYe8oY0bigQhYhnKEZkGq2RSjd37d1c 3RSjd4d+Cudq+RF5Fb7nHN4Nr3conys5LHl9zCo4U5bRb40WgOmdyvaJlE5y/yQ0 pkTaIkktqHiGqe8CpkqoPXZe+lNr03ZwqS4xVgRiKpjaCZudOz9agJS3NUMYkPV5 u9qs6a+PQCEkJWm5mT/pRfg5gsBYHyrWZ/X6vIYcqQJ8JKlRyisNA1mLy5iosv3d ROLZfYyaK7O89CeQmaqEv9co1j1RH0u9KR/Qp2P1aaPyu71iDvjKSpYEjUYNcvLc JltLiTkuI2PMlQJl1XgR67TVCczR18OZnJUAkRIA== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=glJbYOQq 6tTWel2M4zznvuGXuCVY/dkF9K0URwv/F9gJLgwF2ZH8CJEQGA1ITl9BtJmb4ccL NZArz1oWSxSZByxz9nmdx9ctUVIBsPqTnXz74ehvRmby3nKgDs7uGpqeUo25WDOk 1DFBz6Qw9BYkg8LONuJ2fqbuQfL0EgJbpy9FjF1tP2L2+n3J5OKXaEBao/uUCZAt ITGjZbivqxraYbqUaGUwBzKWcZc8IphDsfzKzWZ8wtUag2BySZIUMr4uqK2wDmeU ru5W3p1Su+9/V2VPV09OD/QtFrVo6FbM+tmZEkyndVQgPtDzcz0wrHt7fRW86pjN 5/EhVFCluQi1Uw== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 52b28c28 (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Fri, 16 Jul 2021 06:36:15 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 (1.0) Subject: Re: mouse and keyboard fail to work with xorg-server-1.20.11_3,1 From: Michael Gmelin In-Reply-To: <20210716061708.6c791297@ernst.home> Date: Fri, 16 Jul 2021 08:36:14 +0200 Cc: Warner Losh , Niclas Zeising , FreeBSD X11 Message-Id: References: <20210716061708.6c791297@ernst.home> To: gljennjohn@gmail.com X-Mailer: iPhone Mail (18F72) X-Rspamd-Queue-Id: 4GR1jW32l9z3GGL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[freebsd]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 16. Jul 2021, at 08:17, Gary Jennejohn wrote: >=20 > =EF=BB=BFOn Thu, 15 Jul 2021 13:18:56 -0600 > Warner Losh wrote: >=20 >>> On Thu, Jul 15, 2021 at 1:14 PM Niclas Zeising >>> wrote: >>>=20 >>> On 2021-07-15 12:27, Gary Jennejohn wrote: =20 >>>> On Wed, 14 Jul 2021 17:44:04 +0200 >>>> Gary Jennejohn wrote: >>>>=20 >>>>> On Wed, 14 Jul 2021 17:04:44 +0200 >>>>> Michael Gmelin wrote: >>>>>=20 >>>>>> On Wed, 14 Jul 2021 16:00:55 +0200 >>>>>> Gary Jennejohn wrote: >>>>>>=20 >>>>>>> So, I made the mistake of updating firefox today, which resulted in a= >>>>>>> forced installation of xorg-server-1.20.11_3,1. >>>>>>>=20 >>>>>>> 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. >>>>>>>=20 >>>>>>> Luckily, I had a full backup of /usr/local which I could restore to >>>>>>> get a working Xorg. >>>>>>>=20 >>>>>>> Still, it seems rather strange that both the keyboard and mouse >>>>>>> stopped working even after I installed the supposedly relevant >>>>>>> drivers. >>>>>>>=20 >>>>>>> Or maybe those aren't the correct drivers? =20 >>>>>>=20 >>>>>> They aren't, xorg moved to libinput. Maybe all you need is: >>>>>>=20 >>>>>> pkg install xf86-input-libinput >>>>>>=20 >>>>>>>=20 >>>>>>> So, does anyone know what I have to do to get a working keyboard and= >>>>>>> mouse with the new xorg-server? >>>>>>>=20 >>>>>>=20 >>>>>> 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 probab= ly >>>>>> a bit outdated at this point: >>>>>> https://github.com/grembo/xorg-udev-setup-check >>>>>>=20 >>>>>> See also: >>>>>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196678 >>>>>> Google: kern.evdev.rcpt_mask domain:lists.freebsd.org >>>>>>=20 >>>>>=20 >>>>> Thanks, but as I reported in a follow-up post I got it working. >>>>>=20 >>>>> And libinput was already installed. >>>>>=20 >>>>=20 >>>> 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. >>>>=20 >>>> 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). >>>>=20 >>>> I also changed kern.evdev.rcpt_mask to 6, as recommended by your >>>> fantastic script. =20 >>>=20 >>> Which libraries were missing? >>>=20 >>> kern.evdev.rcpt_mask should be 12, it is the default of all supported >>> FreeBSD versions which use evdev. >>>=20 >>=20 >> I asked these questions in private earlier today. Lemme summarize >> the email thread... >>=20 >> 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. >>=20 >=20 > Thanks, Warner. >=20 > To clarify things somewhat, I deleted both ports today and then > no longer had the mouse and keyboard after starting xorg-server. >=20 > 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. >=20 > 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 ri= ght > setting for me. >=20 The default of 12 should work just fine when using libinput (the script just= gives a hint to try 6 in case it doesn=E2=80=99t). Michael > --=20 > Gary Jennejohn