From nobody Sat Mar 29 15:15:26 2025 X-Original-To: bugs@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 4ZQ1DH1D3cz5rbT0 for ; Sat, 29 Mar 2025 15:15:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZQ1DG3kp2z3Jm3 for ; Sat, 29 Mar 2025 15:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743261326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3TJWF6OBCjBrpB75Spge4IVXUUE9QjzGltZOEY2On3s=; b=mTIRPShduN6Cxw4LMr6rNQMU5bLKkr46RYGL3j+WeQoRHxCwh70+43CJbK5aTpro+XeW3r nIjQ0tTXzxgnZv1BKHeu0sX25U0UMZyARd7JRUtMWQW0l+yYuu+6xC6UFRJhQuPHl0vB4R SvI2mGlcdl13gCm0CXqe8D+cP2slEhp6pN5ds+vF5ABD7ROSYqYZbvt3ogTZjN3T9Qme3n ILWbrWJrwTcCZ0asB8MUJJEbXenXtnoK8cZuztoSBR61GeXtFXw7Rc438RkX9CMUkuXZxG VLCa9GL3+6xJ4XaMyTjRVkryLMXhjLtaZG3x3iVNA5CDECWcQdHTYn3wEpDf4g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1743261326; a=rsa-sha256; cv=none; b=PHhrzSuKyazSrLjezOissKcloYU5kKP/j3qTp+9a7iO8YB9JxUZ2M62F7XKkffBtYRTGZF qp3DfwPZ35/ydan2KoRF0oAiIszSu9ZoZskqQaRSmKDaqR+ounO0tT8aJ8Xk/V5pvV+MvY B5YlYflY7Cn9TmuB4qPR+ssZcTiOcU3yBaZxM/qKuvZesn+zRMGNrvwv5ph14qqVgXBIBF q3MWtSIqID5Xvhmc/lhSZvxYUe11POqEBtIHZH5vrEXnvrooGh22cU3zY2LTf3G0C7gBQN cxBi6ci3B3tp//s7xH3RCfNzXGZeX7GfpFpTNCJ7V11539bFsriQsPnF/CSi1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1743261326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3TJWF6OBCjBrpB75Spge4IVXUUE9QjzGltZOEY2On3s=; b=rHrbXvYxr5qwxmuDoNdbZCj3fQap25kgDG8V6fpu1Sh0pvV2kwrP3FY84wVEZqu8/DfKrt fMydL3wYuuqO5D5+qE9af3STfFoJoNi8HKZCysyVbkLBrO1jXo0ed+SnPjEfomPncxvT6B ckHBHwalh4lzPuECKKbkzTUmoXcnPkaCwBA/ZE5yUcsqskGDaQ059MG8Xgq3f8FMyiW2Wy tUelAB4cwhylxs6oMd6Tz56JeHnGjrvcaz7cJVSLuxGoh1/FWE/lsE/61XTU0vi14KP9Il aGGtR7XF0E2KHqW6puUxuMb1kSiZlJSLn04+orwEwML+PmSUPFOBSvbySfhE8w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ZQ1DG3JmBzZw4 for ; Sat, 29 Mar 2025 15:15:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 52TFFQvj011129 for ; Sat, 29 Mar 2025 15:15:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 52TFFQwY011128 for bugs@FreeBSD.org; Sat, 29 Mar 2025 15:15:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285745] First keypress is ignored on Lenovo laptop Date: Sat, 29 Mar 2025 15:15:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tembun@bk.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285745 Bug ID: 285745 Summary: First keypress is ignored on Lenovo laptop Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: tembun@bk.ru Created attachment 259149 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D259149&action= =3Dedit The interaction between driver and keyboard On Lenovo ThinkPad Edge 11 there is a small problem with integrated keyboar= d: the very first keypress is ignored - it doesn't take effect, like no keypre= ss was done. But after this first not-registered keypress keyboard starts wor= king fine: all keypresses are registered. There are no issues with external USB keyboard. The issue was first discovered in 13.4-RELEASE with GENERIC kernel. I also tested with 14.2-RELEASE install image and the problem can be observed there too. It turned out, that there is a quirk for atkbdc(4) driver that solves the problem: `LENOVO_SPECIAL', that has a value of 0x12. Though one should manually change the source code to set this quirk and then recompile the kernel, currently there is no autodetection. One fellow helped me and wrote a set of patches for the kernel for it to log the interaction between driver and the keyboard. With this, I booted, pres= sed "qwerty12345" sequence (with letter "q" not printed on the screen) and then dumped the output via ktrdump(8). The result of it is attached as ktrdump.log.xz file. Here the values of some kenv(1) variables: smbios.bios.vendor -> LENOVO smbios.system.maker -> LENOVO smbios.system.product -> 0328RT1 smbios.bios.version -> 86ET33WW (1.17 ) I guess, these can help to do a proper autodetection and applying the quirk. Thank you, Artem --=20 You are receiving this mail because: You are the assignee for the bug.=