Date: Mon, 4 Sep 2023 19:40:08 +0200 From: Michael Gmelin <grembo@freebsd.org> To: Matthias Apitz <guru@unixarea.de> Cc: Alexander Motin <mav@freebsd.org>, freebsd-current@freebsd.org Subject: Re: 14.0-CURRENT boots fine but keyboard does not work Message-ID: <58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF@freebsd.org> In-Reply-To: <ZPYVKL74wlue%2BOuu@c720-r368166> References: <ZPYVKL74wlue%2BOuu@c720-r368166>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <guru@unixarea.de> 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 <guru@unixarea.de> wrote: >>>=20 >>> =EF=BB=BF >>> Added Alexander Motin <mav@FreeBSD.org> 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 <guru@unixarea.de> 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 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D= utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr"><br= ></div><div dir=3D"ltr"><br><blockquote type=3D"cite">On 4. Sep 2023, at 19:= 34, Matthias Apitz <guru@unixarea.de> wrote:<br><br></blockquote></div= ><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=BF<span>El d=C3=ADa lunes= , septiembre 04, 2023 a las 07:29:41p. m. +0200, Michael Gmelin escribi=C3=B3= :</span><br><span></span><br><blockquote type=3D"cite"><span></span><br></bl= ockquote><blockquote type=3D"cite"><span></span><br></blockquote><blockquote= type=3D"cite"><blockquote type=3D"cite"><span>On 4. Sep 2023, at 19:23, Mat= thias Apitz <guru@unixarea.de> wrote:</span><br></blockquote></blockqu= ote><blockquote type=3D"cite"><blockquote type=3D"cite"><span></span><br></b= lockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><= span>=EF=BB=BF</span><br></blockquote></blockquote><blockquote type=3D"cite"= ><blockquote type=3D"cite"><span>Added Alexander Motin <mav@FreeBSD.org&g= t; to To: as the origin of the CI;</span><br></blockquote></blockquote><bloc= kquote type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote= ></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><span>Neit= her hw.atkbd.hz=3D1 nor hw.atkbd.hz=3D10 makes the keyboard working on</span= ><br></blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D= "cite"><span>my beloved Acer C720. Should I file a new PR?</span><br></block= quote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><span= ></span><br></blockquote></blockquote><blockquote type=3D"cite"><span></span= ><br></blockquote><blockquote type=3D"cite"><span>Filing a PR makes sense, c= ould you please Cc me on it?</span><br></blockquote><blockquote type=3D"cite= "><span></span><br></blockquote><blockquote type=3D"cite"><span>Do you know w= hich version of FreeBSD was the last that worked for you?</span><br></blockq= uote><span></span><br><span>I'm actually using (and typing this on it) r3681= 66. Will file a PR</span><br><span>tomorrow. Thanks</span><br><span></span><= br></div></blockquote><div><br></div><div>This could also be related:</div><= div><br></div><div><a href=3D"https://cgit.freebsd.org/src/commit/?id=3D319d= 2bf407b3762da6f1c67ffe8dce2fee587aaf">https://cgit.freebsd.org/src/commit/?i= d=3D319d2bf407b3762da6f1c67ffe8dce2fee587aaf</a></div><div><br></div><div>Yo= u could try to undo that patch and build a new kernel.</div><div><br></div><= div>Best</div><div>Michael</div><div><br></div><div><br></div><br><blockquot= e type=3D"cite"><div dir=3D"ltr"><span> matthias</span><br><spa= n></span><br><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote= type=3D"cite"><span>El d=C3=ADa lunes, septiembre 04, 2023 a las 06:55:52p.= m. +0200, Michael Gmelin escribi=C3=B3:</span><br></blockquote></blockquote= ></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquot= e type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><s= pan></span><br></blockquote></blockquote></blockquote><blockquote type=3D"ci= te"><blockquote type=3D"cite"><blockquote type=3D"cite"><span></span><br></b= lockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote ty= pe=3D"cite"><blockquote type=3D"cite"><span>On Mon, 4 Sep 2023 18:43:11 +020= 0</span><br></blockquote></blockquote></blockquote><blockquote type=3D"cite"= ><blockquote type=3D"cite"><blockquote type=3D"cite"><span>Matthias Apitz &l= t;guru@unixarea.de> wrote:</span><br></blockquote></blockquote></blockquo= te><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"c= ite"><span></span><br></blockquote></blockquote></blockquote><blockquote typ= e=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote t= ype=3D"cite"><span>I have a 14.0-CURRENT compiled from sources of head from A= ugust 4,</span><br></blockquote></blockquote></blockquote></blockquote><bloc= kquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><bl= ockquote type=3D"cite"><span>which boots fine from a produced USB key, but t= he keyboard does not</span><br></blockquote></blockquote></blockquote></bloc= kquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D= "cite"><blockquote type=3D"cite"><span>work on an Acer C720 (amd64), on othe= r laptops the keyboard is fine.</span><br></blockquote></blockquote></blockq= uote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><block= quote type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote>= </blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote= type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>The= keyboard works during the boot menu (for example to enable verbose</span><b= r></blockquote></blockquote></blockquote></blockquote><blockquote type=3D"ci= te"><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"= cite"><span>boot messages) but not on the login: prompt of the booted system= .</span><br></blockquote></blockquote></blockquote></blockquote><blockquote t= ype=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote= type=3D"cite"><span></span><br></blockquote></blockquote></blockquote></blo= ckquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type= =3D"cite"><blockquote type=3D"cite"><span>I've enabled SSH access into the C= 720 (if someone need more</span><br></blockquote></blockquote></blockquote><= /blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote t= ype=3D"cite"><blockquote type=3D"cite"><span>information) and I'm attaching /= var/log/messages of the booted system.</span><br></blockquote></blockquote><= /blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"= ><blockquote type=3D"cite"><span></span><br></blockquote></blockquote></bloc= kquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D= "cite"><span>Hi Matthias,</span><br></blockquote></blockquote></blockquote><= blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"= ><span></span><br></blockquote></blockquote></blockquote><blockquote type=3D= "cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>The C720 re= quired special patches for the keyboard to work, which I</span><br></blockqu= ote></blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"= cite"><blockquote type=3D"cite"><span>originally added here:</span><br></blo= ckquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote type= =3D"cite"><blockquote type=3D"cite"><span>https://cgit.freebsd.org/src/commi= t/?id=3D6c176113bbdd598231ec47d161d4c3714997169b</span><br></blockquote></bl= ockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><b= lockquote type=3D"cite"><span></span><br></blockquote></blockquote></blockqu= ote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"= cite"><span>I assume that something in that area changed recently.</span><br= ></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquot= e type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote></bl= ockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><b= lockquote type=3D"cite"><span>Without digging into it, this looks like a pos= sible cause:</span><br></blockquote></blockquote></blockquote><blockquote ty= pe=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span></span= ><br></blockquote></blockquote></blockquote><blockquote type=3D"cite"><block= quote type=3D"cite"><blockquote type=3D"cite"><span> https://cgit.freebsd.or= g/src/commit/sys/dev/atkbdc/atkbd.c?id=3Dce881170088c4c98c036fe561f8ee8413c2= e2585</span><br></blockquote></blockquote></blockquote><blockquote type=3D"c= ite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span></span><br></= blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote t= ype=3D"cite"><blockquote type=3D"cite"><span> atkbd: Disable periodic pollin= g by default.</span><br></blockquote></blockquote></blockquote><blockquote t= ype=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span> It i= s one of the few remaining Giant-locked callouts. It would be</span><b= r></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquo= te type=3D"cite"><blockquote type=3D"cite"><span> good to remove it, not men= tioning that polling itself is not good.</span><br></blockquote></blockquote= ></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquot= e type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><s= pan> If this cause keyboard/mouse freezes on some hardware, please set</span= ><br></blockquote></blockquote></blockquote><blockquote type=3D"cite"><block= quote type=3D"cite"><blockquote type=3D"cite"><span> loader tunable hw.atkbd= .hz=3D1 as workaround and report the issue.</span><br></blockquote></blockqu= ote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockq= uote type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><= blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"= ><span>So you could try to set hw.atkbd.hz=3D1 (or hw.atkbd.hz=3D10) in</spa= n><br></blockquote></blockquote></blockquote><blockquote type=3D"cite"><bloc= kquote type=3D"cite"><blockquote type=3D"cite"><span>/boot/loader.conf, then= reboot and see if it helps.</span><br></blockquote></blockquote></blockquot= e><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"ci= te"><span></span><br></blockquote></blockquote></blockquote><blockquote type= =3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>Best</sp= an><br></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><span>Michael</span><br></bl= ockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote typ= e=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote></blockqu= ote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockq= uote type=3D"cite"><span>-- </span><br></blockquote></blockquote></blockquot= e><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"ci= te"><span>Michael Gmelin</span><br></blockquote></blockquote></blockquote><b= lockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite">= <span></span><br></blockquote></blockquote></blockquote><blockquote type=3D"= cite"><blockquote type=3D"cite"><span></span><br></blockquote></blockquote><= blockquote type=3D"cite"><blockquote type=3D"cite"><span>-- </span><br></blo= ckquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><sp= an>Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-1= 76-38902045</span><br></blockquote></blockquote><blockquote type=3D"cite"><b= lockquote type=3D"cite"><span>Public GnuPG key: http://www.unixarea.de/key.p= ub</span><br></blockquote></blockquote><blockquote type=3D"cite"><span></spa= n><br></blockquote><blockquote type=3D"cite"><span></span><br></blockquote><= span></span><br><span>-- </span><br><span>Matthias Apitz, =E2=9C=89 guru@uni= xarea.de, http://www.unixarea.de/ +49-176-38902045</span><br><span>Public Gn= uPG key: http://www.unixarea.de/key.pub</span><br></div></blockquote></body>= </html>= --Apple-Mail-78B0591B-95C1-48CD-983C-74937C493FF0--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF>