Date: Mon, 4 Sep 2023 12:10:56 -0600 From: Warner Losh <imp@bsdimp.com> To: Michael Gmelin <grembo@freebsd.org> Cc: Matthias Apitz <guru@unixarea.de>, Alexander Motin <mav@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: 14.0-CURRENT boots fine but keyboard does not work Message-ID: <CANCZdfre5vW%2BQinsUXuwrROS_70iR%2Bpyz9Y7BWcWXxYuZEakxQ@mail.gmail.com> In-Reply-To: <58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF@freebsd.org> References: <ZPYVKL74wlue%2BOuu@c720-r368166> <58E9D0C9-747F-4DEB-9DC7-5A2E8C54EABF@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000033cdb406048c6feb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 4, 2023, 11:40 AM Michael Gmelin <grembo@freebsd.org> wrote: > > > 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, Matthias Apitz <guru@unixarea.de> wrote: > > > =EF=BB=BF > > Added Alexander Motin <mav@FreeBSD.org> to To: as the origin of the CI; > > > 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? > > > > Filing a PR makes sense, could you please Cc me on it? > > > Do you know which version of FreeBSD was the last that worked for you? > > > I'm actually using (and typing this on it) r368166. Will file a PR > tomorrow. Thanks > > > This could also be related: > > > https://cgit.freebsd.org/src/commit/?id=3D319d2bf407b3762da6f1c67ffe8dce2= fee587aaf > > You could try to undo that patch and build a new kernel. > It shouldn't make a difference... but I may have been given bad advice if it did... if it's this one, I'll help sort it out. Warner 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 +0200 > > Matthias Apitz <guru@unixarea.de> 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=3D6c176113bbdd598231ec47d161d4c37= 14997169b > > > 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=3Dce8811700= 88c4c98c036fe561f8ee8413c2e2585 > > > 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=3D1 as workaround and report the issue. > > > 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 > > > > -- > > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > > Public GnuPG key: http://www.unixarea.de/key.pub > > > > > -- > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > > --00000000000033cdb406048c6feb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Mon, Sep 4, 2023, 11:40 AM Michael Gmelin <<a hr= ef=3D"mailto:grembo@freebsd.org">grembo@freebsd.org</a>> wrote:<br></div= ><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1= px #ccc solid;padding-left:1ex"><div dir=3D"auto"><div dir=3D"ltr"></div><d= iv dir=3D"ltr"><br></div><div dir=3D"ltr"><br><blockquote type=3D"cite">On = 4. Sep 2023, at 19:34, Matthias Apitz <<a href=3D"mailto:guru@unixarea.d= e" target=3D"_blank" rel=3D"noreferrer">guru@unixarea.de</a>> 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, Mic= hael Gmelin escribi=C3=B3:</span><br><span></span><br><blockquote type=3D"c= ite"><span></span><br></blockquote><blockquote type=3D"cite"><span></span><= br></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><span>O= n 4. Sep 2023, at 19:23, Matthias Apitz <<a href=3D"mailto:guru@unixarea= .de" target=3D"_blank" rel=3D"noreferrer">guru@unixarea.de</a>> wrote:</= span><br></blockquote></blockquote><blockquote type=3D"cite"><blockquote ty= pe=3D"cite"><span></span><br></blockquote></blockquote><blockquote type=3D"= cite"><blockquote type=3D"cite"><span>=EF=BB=BF</span><br></blockquote></bl= ockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><span>Added Al= exander Motin <mav@FreeBSD.org> to To: as the origin of the CI;</span= ><br></blockquote></blockquote><blockquote type=3D"cite"><blockquote type= =3D"cite"><span></span><br></blockquote></blockquote><blockquote type=3D"ci= te"><blockquote type=3D"cite"><span>Neither hw.atkbd.hz=3D1 nor hw.atkbd.hz= =3D10 makes the keyboard working on</span><br></blockquote></blockquote><bl= ockquote type=3D"cite"><blockquote type=3D"cite"><span>my beloved Acer C720= . Should I file a new PR?</span><br></blockquote></blockquote><blockquote t= ype=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote></bloc= kquote><blockquote type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>Filing a PR makes sense, could you please Cc me on it?<= /span><br></blockquote><blockquote type=3D"cite"><span></span><br></blockqu= ote><blockquote type=3D"cite"><span>Do you know which version of FreeBSD wa= s the last that worked for you?</span><br></blockquote><span></span><br><sp= an>I'm actually using (and typing this on it) r368166. Will file a PR</= span><br><span>tomorrow. Thanks</span><br><span></span><br></div></blockquo= te><div><br></div><div>This could also be related:</div><div><br></div><div= ><a href=3D"https://cgit.freebsd.org/src/commit/?id=3D319d2bf407b3762da6f1c= 67ffe8dce2fee587aaf" target=3D"_blank" rel=3D"noreferrer">https://cgit.free= bsd.org/src/commit/?id=3D319d2bf407b3762da6f1c67ffe8dce2fee587aaf</a></div>= <div><br></div><div>You could try to undo that patch and build a new kernel= .</div></div></blockquote></div></div><div dir=3D"auto"><br></div><div dir= =3D"auto">It shouldn't make a difference... but I may have been given b= ad advice if it did... if it's this one, I'll help sort it out.</di= v><div dir=3D"auto"><br></div><div dir=3D"auto">Warner</div><div dir=3D"aut= o"><br></div><div dir=3D"auto"><div class=3D"gmail_quote"><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex"><div dir=3D"auto"><div>Best</div><div>Michael</div><div><br><= /div><div><br></div><br><blockquote type=3D"cite"><div dir=3D"ltr"><span> = =C2=A0 =C2=A0matthias</span><br><span></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"c= ite"><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></span><br></blockquote></bl= ockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><= blockquote type=3D"cite"><span></span><br></blockquote></blockquote></block= quote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type= =3D"cite"><span>On Mon, 4 Sep 2023 18:43:11 +0200</span><br></blockquote></= blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"= ><blockquote type=3D"cite"><span>Matthias Apitz <<a href=3D"mailto:guru@= unixarea.de" target=3D"_blank" rel=3D"noreferrer">guru@unixarea.de</a>> = wrote:</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"><blockquo= te type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>= I have a 14.0-CURRENT compiled from sources of head from August 4,</span><b= r></blockquote></blockquote></blockquote></blockquote><blockquote type=3D"c= ite"><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type= =3D"cite"><span>which boots fine from a produced USB key, but the keyboard = does not</span><br></blockquote></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><= blockquote type=3D"cite"><span>work on an Acer C720 (amd64), on other lapto= ps the keyboard is fine.</span><br></blockquote></blockquote></blockquote><= /blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote= type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote></bl= ockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote ty= pe=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>The k= eyboard works during the boot menu (for example to enable verbose</span><br= ></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 syst= em.</span><br></blockquote></blockquote></blockquote></blockquote><blockquo= te type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><block= quote type=3D"cite"><span></span><br></blockquote></blockquote></blockquote= ></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquo= te type=3D"cite"><blockquote type=3D"cite"><span>I've enabled SSH acces= s into the C720 (if someone need more</span><br></blockquote></blockquote><= /blockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite= "><blockquote type=3D"cite"><blockquote type=3D"cite"><span>information) an= d I'm attaching /var/log/messages of the booted system.</span><br></blo= ckquote></blockquote></blockquote></blockquote><blockquote type=3D"cite"><b= lockquote type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockq= uote></blockquote></blockquote><blockquote type=3D"cite"><blockquote type= =3D"cite"><blockquote type=3D"cite"><span>Hi Matthias,</span><br></blockquo= te></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"><blockquot= e type=3D"cite"><span>The C720 required special patches for the keyboard to= work, which I</span><br></blockquote></blockquote></blockquote><blockquote= type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>or= iginally added here:</span><br></blockquote></blockquote></blockquote><bloc= kquote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><s= pan><a href=3D"https://cgit.freebsd.org/src/commit/?id=3D6c176113bbdd598231= ec47d161d4c3714997169b" target=3D"_blank" rel=3D"noreferrer">https://cgit.f= reebsd.org/src/commit/?id=3D6c176113bbdd598231ec47d161d4c3714997169b</a></s= pan><br></blockquote></blockquote></blockquote><blockquote type=3D"cite"><b= lockquote type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockq= uote></blockquote></blockquote><blockquote type=3D"cite"><blockquote type= =3D"cite"><blockquote type=3D"cite"><span>I assume that something in that a= rea changed recently.</span><br></blockquote></blockquote></blockquote><blo= ckquote 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>Without dig= ging into it, this looks like a possible cause:</span><br></blockquote></bl= ockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><= blockquote type=3D"cite"><span></span><br></blockquote></blockquote></block= quote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote type= =3D"cite"><span> <a href=3D"https://cgit.freebsd.org/src/commit/sys/dev/atk= bdc/atkbd.c?id=3Dce881170088c4c98c036fe561f8ee8413c2e2585" target=3D"_blank= " rel=3D"noreferrer">https://cgit.freebsd.org/src/commit/sys/dev/atkbdc/atk= bd.c?id=3Dce881170088c4c98c036fe561f8ee8413c2e2585</a></span><br></blockquo= te></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"><blockquot= e type=3D"cite"><span> atkbd: Disable periodic polling by default.</span><b= r></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockqu= ote type=3D"cite"><blockquote type=3D"cite"><span> It is one of the few rem= aining Giant-locked callouts.=C2=A0 It would be</span><br></blockquote></bl= ockquote></blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><= blockquote type=3D"cite"><span> good to remove it, not mentioning that poll= ing itself is not good.</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"><blockquote type=3D"cite"><span> If thi= s cause keyboard/mouse freezes on some hardware, please set</span><br></blo= ckquote></blockquote></blockquote><blockquote type=3D"cite"><blockquote typ= e=3D"cite"><blockquote type=3D"cite"><span> loader tunable hw.atkbd.hz=3D1 = as workaround and report the issue.</span><br></blockquote></blockquote></b= lockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote t= ype=3D"cite"><span></span><br></blockquote></blockquote></blockquote><block= quote type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><sp= an>So you could try to set hw.atkbd.hz=3D1 (or hw.atkbd.hz=3D10) in</span><= br></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockq= uote 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"c= ite"><span></span><br></blockquote></blockquote></blockquote><blockquote ty= pe=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>Best<= /span><br></blockquote></blockquote></blockquote><blockquote type=3D"cite">= <blockquote type=3D"cite"><blockquote type=3D"cite"><span>Michael</span><br= ></blockquote></blockquote></blockquote><blockquote type=3D"cite"><blockquo= te 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>-- </span><br></blockquote></blockquote></= blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>Michael Gmelin</span><br></blockquote></blockquote></bl= ockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote ty= pe=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blockq= uote type=3D"cite"><blockquote type=3D"cite"><span></span><br></blockquote>= </blockquote><blockquote type=3D"cite"><blockquote type=3D"cite"><span>-- <= /span><br></blockquote></blockquote><blockquote type=3D"cite"><blockquote t= ype=3D"cite"><span>Matthias Apitz, =E2=9C=89 <a href=3D"mailto:guru@unixare= a.de" target=3D"_blank" rel=3D"noreferrer">guru@unixarea.de</a>, <a href=3D= "http://www.unixarea.de/" target=3D"_blank" rel=3D"noreferrer">http://www.u= nixarea.de/</a> +49-176-38902045</span><br></blockquote></blockquote><block= quote type=3D"cite"><blockquote type=3D"cite"><span>Public GnuPG key: <a hr= ef=3D"http://www.unixarea.de/key.pub" target=3D"_blank" rel=3D"noreferrer">= http://www.unixarea.de/key.pub</a></span><br></blockquote></blockquote><blo= ckquote type=3D"cite"><span></span><br></blockquote><blockquote type=3D"cit= e"><span></span><br></blockquote><span></span><br><span>-- </span><br><span= >Matthias Apitz, =E2=9C=89 <a href=3D"mailto:guru@unixarea.de" target=3D"_b= lank" rel=3D"noreferrer">guru@unixarea.de</a>, <a href=3D"http://www.unixar= ea.de/" target=3D"_blank" rel=3D"noreferrer">http://www.unixarea.de/</a> +4= 9-176-38902045</span><br><span>Public GnuPG key: <a href=3D"http://www.unix= area.de/key.pub" target=3D"_blank" rel=3D"noreferrer">http://www.unixarea.d= e/key.pub</a></span><br></div></blockquote></div></blockquote></div></div><= /div> --00000000000033cdb406048c6feb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfre5vW%2BQinsUXuwrROS_70iR%2Bpyz9Y7BWcWXxYuZEakxQ>