From nobody Mon Sep 04 17:40:08 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 4RfbWJ4T0pz4sd88 for ; Mon, 4 Sep 2023 17:40:12 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (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 4RfbWH6mRdz3Cc5; Mon, 4 Sep 2023 17:40:11 +0000 (UTC) (envelope-from grembo@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 735e3b3e; Mon, 4 Sep 2023 17:40:09 +0000 (UTC) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 89c066c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 4 Sep 2023 17:40:09 +0000 (UTC) Content-Type: multipart/alternative; boundary=Apple-Mail-78B0591B-95C1-48CD-983C-74937C493FF0 Content-Transfer-Encoding: 7bit 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 (1.0) Subject: Re: 14.0-CURRENT boots fine but keyboard does not work From: Michael Gmelin In-Reply-To: Date: Mon, 4 Sep 2023 19:40:08 +0200 Cc: Alexander Motin , freebsd-current@freebsd.org Message-Id: <58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF@freebsd.org> References: To: Matthias Apitz X-Mailer: iPhone Mail (20G75) 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:24940, ipnet:213.239.192.0/18, country:DE] X-Rspamd-Queue-Id: 4RfbWH6mRdz3Cc5 --Apple-Mail-78B0591B-95C1-48CD-983C-74937C493FF0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On 4. Sep 2023, at 19:34, Matthias Apitz wrote: >=20 > =EF=BB=BFEl d=C3=ADa lunes, septiembre 04, 2023 a las 07:29:41p. m. +0200,= Michael Gmelin escribi=C3=B3: >=20 >>=20 >>=20 >>>> On 4. Sep 2023, at 19:23, Matthias Apitz wrote: >>>=20 >>> =EF=BB=BF >>> Added Alexander Motin to To: as the origin of the CI; >>>=20 >>> Neither hw.atkbd.hz=3D1 nor hw.atkbd.hz=3D10 makes the keyboard working o= n >>> my beloved Acer C720. Should I file a new PR? >>>=20 >>=20 >> Filing a PR makes sense, could you please Cc me on it? >>=20 >> Do you know which version of FreeBSD was the last that worked for you? >=20 > I'm actually using (and typing this on it) r368166. Will file a PR > tomorrow. Thanks >=20 This could also be related: https://cgit.freebsd.org/src/commit/?id=3D319d2bf407b3762da6f1c67ffe8dce2fee= 587aaf You could try to undo that patch and build a new kernel. Best Michael > matthias >=20 >>>> El d=C3=ADa lunes, septiembre 04, 2023 a las 06:55:52p. m. +0200, Micha= el Gmelin escribi=C3=B3: >>>>=20 >>>>=20 >>>>=20 >>>> On Mon, 4 Sep 2023 18:43:11 +0200 >>>> Matthias Apitz wrote: >>>>=20 >>>>> 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. >>>>>=20 >>>>> The keyboard works during the boot menu (for example to enable verbose= >>>>> boot messages) but not on the login: prompt of the booted system. >>>>>=20 >>>>> I've enabled SSH access into the C720 (if someone need more >>>>> information) and I'm attaching /var/log/messages of the booted system.= >>>>=20 >>>> Hi Matthias, >>>>=20 >>>> The C720 required special patches for the keyboard to work, which I >>>> originally added here: >>>> https://cgit.freebsd.org/src/commit/?id=3D6c176113bbdd598231ec47d161d4c= 3714997169b >>>>=20 >>>> I assume that something in that area changed recently. >>>>=20 >>>> Without digging into it, this looks like a possible cause: >>>>=20 >>>> https://cgit.freebsd.org/src/commit/sys/dev/atkbdc/atkbd.c?id=3Dce88117= 0088c4c98c036fe561f8ee8413c2e2585 >>>>=20 >>>> 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. >>>>=20 >>>> If this cause keyboard/mouse freezes on some hardware, please set >>>> loader tunable hw.atkbd.hz=3D1 as workaround and report the issue. >>>>=20 >>>> So you could try to set hw.atkbd.hz=3D1 (or hw.atkbd.hz=3D10) in >>>> /boot/loader.conf, then reboot and see if it helps. >>>>=20 >>>> Best >>>> Michael >>>>=20 >>>> --=20 >>>> Michael Gmelin >>>>=20 >>>=20 >>> --=20 >>> Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-= 176-38902045 >>> Public GnuPG key: http://www.unixarea.de/key.pub >>=20 >>=20 >=20 > --=20 > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-17= 6-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub --Apple-Mail-78B0591B-95C1-48CD-983C-74937C493FF0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

On 4. Sep 2023, at 19:= 34, Matthias Apitz <guru@unixarea.de> wrote:

=EF=BB=BFEl d=C3=ADa lunes= , septiembre 04, 2023 a las 07:29:41p. m. +0200, Michael Gmelin escribi=C3=B3= :



On 4. Sep 2023, at 19:23, Mat= thias Apitz <guru@unixarea.de> wrote:

<= span>=EF=BB=BF
Added Alexander Motin <mav@FreeBSD.org&g= t; to To: as the origin of the CI;

Neit= her hw.atkbd.hz=3D1 nor hw.atkbd.hz=3D10 makes the keyboard working on
my beloved Acer C720. Should I file a new PR?


Filing a PR makes sense, c= ould you please Cc me on it?

Do you know w= hich version of FreeBSD was the last that worked for you?

I'm actually using (and typing this on it) r3681= 66. Will file a PR
tomorrow. Thanks
<= br>

This could also be related:
<= div>

Yo= u could try to undo that patch and build a new kernel.

<= div>Best
Michael



   matthias

El d=C3=ADa lunes, septiembre 04, 2023 a las 06:55:52p.= m. +0200, Michael Gmelin escribi=C3=B3:



On Mon, 4 Sep 2023 18:43:11 +020= 0
Matthias Apitz &l= t;guru@unixarea.de> wrote:

I have a 14.0-CURRENT compiled from sources of head from A= ugust 4,
which boots fine from a produced USB key, but t= he keyboard does not
work on an Acer C720 (amd64), on othe= r 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 C= 720 (if someone need more
<= /blockquote>
information) and I'm attaching /= var/log/messages of the booted system.
<= /blockquote>

Hi Matthias,
<= blockquote type=3D"cite">

The C720 re= quired special patches for the keyboard to work, which I
originally added here:
https://cgit.freebsd.org/src/commi= t/?id=3D6c176113bbdd598231ec47d161d4c3714997169b

I assume that something in that area changed recently.

Without digging into it, this looks like a pos= sible cause:

https://cgit.freebsd.or= g/src/commit/sys/dev/atkbdc/atkbd.c?id=3Dce881170088c4c98c036fe561f8ee8413c2= e2585

atkbd: Disable periodic pollin= g by default.
It i= s one of the few remaining Giant-locked callouts.  It would be
good to remove it, not men= tioning that polling itself is not good.

If this cause keyboard/mouse freezes on some hardware, please set
loader tunable hw.atkbd= .hz=3D1 as workaround and report the issue.

<= blockquote type=3D"cite">
So you could try to set hw.atkbd.hz=3D1 (or hw.atkbd.hz=3D10) in
/boot/loader.conf, then= reboot and see if it helps.

Best
Michael

--
Michael Gmelin
=

<= blockquote type=3D"cite">
--
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-1= 76-38902045
Public GnuPG key: http://www.unixarea.de/key.p= ub


<= span>
--
Matthias Apitz, =E2=9C=89 guru@uni= xarea.de, http://www.unixarea.de/ +49-176-38902045
Public Gn= uPG key: http://www.unixarea.de/key.pub
= = --Apple-Mail-78B0591B-95C1-48CD-983C-74937C493FF0--