From nobody Mon Sep 4 17:23:06 2023 X-Original-To: freebsd-current@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 4Rfb7d4bbHz4sVgv for ; Mon, 4 Sep 2023 17:23:09 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rfb7d3zzKz4Z3M; Mon, 4 Sep 2023 17:23:09 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [188.174.51.238] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1qdDI3-00Frs0-WC; Mon, 04 Sep 2023 19:23:08 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 384HN7V4018336 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 4 Sep 2023 19:23:07 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 384HN6bM018335; Mon, 4 Sep 2023 19:23:06 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 4 Sep 2023 19:23:06 +0200 From: Matthias Apitz To: Michael Gmelin , Alexander Motin Cc: freebsd-current@freebsd.org Subject: Re: 14.0-CURRENT boots fine but keyboard does not work Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: Michael Gmelin , Alexander Motin , freebsd-current@freebsd.org References: <20230904185552.0f7559be.grembo@freebsd.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230904185552.0f7559be.grembo@freebsd.org> X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.51.238 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Queue-Id: 4Rfb7d3zzKz4Z3M Added Alexander Motin to To: as the origin of the CI; Neither hw.atkbd.hz=1 nor hw.atkbd.hz=10 makes the keyboard working on my beloved Acer C720. Should I file a new PR? Thanks matthias El día lunes, septiembre 04, 2023 a las 06:55:52p. m. +0200, Michael Gmelin escribió: > > > On Mon, 4 Sep 2023 18:43:11 +0200 > Matthias Apitz wrote: > > > I have a 14.0-CURRENT compiled from sources of head from August 4, > > which boots fine from a produced USB key, but the keyboard does not > > work on an Acer C720 (amd64), on other laptops the keyboard is fine. > > > > The keyboard works during the boot menu (for example to enable verbose > > boot messages) but not on the login: prompt of the booted system. > > > > I've enabled SSH access into the C720 (if someone need more > > information) and I'm attaching /var/log/messages of the booted system. > > Hi Matthias, > > The C720 required special patches for the keyboard to work, which I > originally added here: > https://cgit.freebsd.org/src/commit/?id=6c176113bbdd598231ec47d161d4c3714997169b > > I assume that something in that area changed recently. > > Without digging into it, this looks like a possible cause: > > https://cgit.freebsd.org/src/commit/sys/dev/atkbdc/atkbd.c?id=ce881170088c4c98c036fe561f8ee8413c2e2585 > > atkbd: Disable periodic polling by default. > It is one of the few remaining Giant-locked callouts. It would be > good to remove it, not mentioning that polling itself is not good. > > If this cause keyboard/mouse freezes on some hardware, please set > loader tunable hw.atkbd.hz=1 as workaround and report the issue. > > So you could try to set hw.atkbd.hz=1 (or hw.atkbd.hz=10) in > /boot/loader.conf, then reboot and see if it helps. > > Best > Michael > > -- > Michael Gmelin > -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub