From nobody Tue May 26 13:34:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from coreboot.org (mail.coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 175108982819924.024931382503723; Fri, 27 Jun 2025 22:50:28 -0700 (PDT) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id EF222407AD; Sat, 28 Jun 2025 05:50:24 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 34F6440262 for ; Sat, 28 Jun 2025 05:50:05 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) [91.19.167.192]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 2801961E64845; Sat, 28 Jun 2025 07:49:38 +0200 (CEST) From: Paul Menzel To: Kevin O'Connor , Gerd Hoffmann Date: Sat, 28 Jun 2025 07:49:13 +0200 Message-ID: <20250628054913.256266-1-pmenzel@molgen.mpg.de> In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: W67AYXGGNBKG4TTJ4VBEM74DC76VSPHC X-Message-ID-Hash: W67AYXGGNBKG4TTJ4VBEM74DC76VSPHC X-MailFrom: pmenzel@molgen.mpg.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: seabios@seabios.org, =?UTF-8?q?Micha=C5=82=20=C5=BBygowski?= , Andrei Purdea , Paul Menzel X-Mailman-Version: 3.3.11b1 Precedence: list Subject: [SeaBIOS] [PATCH] sercon: Fix keycodes for F11 and F12 List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: --- X-ZM-MESSAGEID: 1751089831953116600 From: Micha=C5=82 =C5=BBygowski Fix what happens when F11/F12 is sent via serial port. The existing code already correctly detects the byte sequence that is sent on the serial connection, however it translates it to the incorrect keycode. The termseq table must map to *DOS scan codes*. The incorrect value matches *PS2 set1 scan codes* for F11 and F12, so fix the implementation mistake. The patch is tested by Andrei on real hardware. Signed-off-by: Micha=C5=82 =C5=BBygowski Cc: Andrei Purdea [Add and message description by Andrei Purdea ] Link: https://mail.coreboot.org/archives/list/seabios@seabios.org/thread/V2= KN2YKCL5J2JL4IMJKVTVE6YALIIC73/ Link: https://github.com/Dasharo/SeaBIOS/commit/0f4530859f11b3235b7d6163388= f19577bdc6e1e Fixes: d6728f30 ("add serial console support") Signed-off-by: Paul Menzel --- src/sercon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sercon.c b/src/sercon.c index 3019d9b..cdc47ab 100644 --- a/src/sercon.c +++ b/src/sercon.c @@ -567,8 +567,8 @@ static VAR16 struct { { .seq =3D "[19~", .len =3D 4, .keycode =3D 0x4200 }, // F8 { .seq =3D "[20~", .len =3D 4, .keycode =3D 0x4300 }, // F9 { .seq =3D "[21~", .len =3D 4, .keycode =3D 0x4400 }, // F10 - { .seq =3D "[23~", .len =3D 4, .keycode =3D 0x5700 }, // F11 - { .seq =3D "[24~", .len =3D 4, .keycode =3D 0x5800 }, // F12 + { .seq =3D "[23~", .len =3D 4, .keycode =3D 0x8500 }, // F11 + { .seq =3D "[24~", .len =3D 4, .keycode =3D 0x8600 }, // F12 =20 { .seq =3D "[2~", .len =3D 3, .keycode =3D 0x52e0 }, // insert { .seq =3D "[3~", .len =3D 3, .keycode =3D 0x53e0 }, // delete --=20 2.50.0 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org