From owner-freebsd-virtualization@freebsd.org Mon Feb 22 12:58:18 2021 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DB12B553EFC for ; Mon, 22 Feb 2021 12:58:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dkj0V5fPRz3MNd for ; Mon, 22 Feb 2021 12:58:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BFDFA553EFB; Mon, 22 Feb 2021 12:58:18 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BFA455541EF for ; Mon, 22 Feb 2021 12:58:18 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dkj0V4yYkz3MGG for ; Mon, 22 Feb 2021 12:58:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 9D6842576E for ; Mon, 22 Feb 2021 12:58:18 +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 11MCwIkt029988 for ; Mon, 22 Feb 2021 12:58:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 11MCwIP6029987 for virtualization@FreeBSD.org; Mon, 22 Feb 2021 12:58:18 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: virtualization@FreeBSD.org Subject: [Bug 246121] [bhyve][PATCH] Append Keyboard Layout specified option for using VNC. Date: Mon, 22 Feb 2021 12:58:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bhyve X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: koinec@yahoo.co.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2021 12:58:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246121 --- Comment #25 from Koine Yuusuke --- (In reply to Michael Reifenberger from comment #24) Thank you for reporting the results. > Hi,do you have by chance updated patches for stable/12 and main? > > For me bhyve_kbdlayout_option_fbsd122r.patch doesn't seem to work as inte= nded. > > Running a Windows 10 VM with '-k de' and setting the Windows KBD-Lang to = 'deu' > seems to work for the intended Layout for Keys like '\|-_' but I don't get > Umlauts or ???... Currently, bhyve_kbdlayout_option_fbsd***.patch doesn't support language-specific keys other than alphabets, numbers, ASCII code symbols(e.= g. !/#/$/etc), and control keys (Enter, Escape, Space, etc.) that are also fou= nd on US keyboards. Because I only have a Japanese keyboard, I don't know what keys are on keyboards in other languages, how to type them, and what keycodes are outpu= t as a result. For this reason, you should not be able to enter umlauts, etc. If possible, I would be grateful if you could add the settings specific to = the German keyboard to the "/usr/share/bhyve/kbdlayout/de" file. This file has the following syntax. ---- '', hex (1byte); comment hex (1or2byte), hex (1byte); comment ---- The first data is the state of the console that does not start Xorg, and if= the character is displayed by pressing the key, enter the character separated by quotes. If the control key does not display characters, enter the value of keysym displayed when the corresponding key is entered with the xev command in hexadecimal. However, since umlauts are one letter in German, not control keys, I'm sorr= y I don't know if they can be represented by Xorg's keysym. For the second data, enter the scancode (type2) value of the keyboard of ea= ch language corresponding to that key. The value of scancode differs depending on the keyboard of each language, so please check it with google etc. Then write a semicolon to mark the end of the line. The line after the semicolon is considered a comment. I'm sorry I think it's difficult, but if you understand it, please set it. > Also the bhyve_qemu_ext_key_event_msg patch doesn't apply cleanly on top = of the > hyve_kbdlayout_option patch: > > Patching file bhyve/ps2kbd.c using Plan A... > Hunk #1 succeeded at 185 (offset 7 lines). > Hunk #2 failed at 339. > Hunk #3 succeeded at 382 (offset 7 lines). > Hunk #4 succeeded at 393 (offset 7 lines). > 1 out of 4 hunks failed--saving rejects to bhyve/ps2kbd.c.rej bhyve_kbdlayout_option_fbsd***.patch does not assume apply prior to bhyve_qemu_ext_key_event_msg_fbsd***.patch. For this reason, I'm sorry, but I would like you to apply bhyve_qemu_ext_key_event_msg_fbsd***.patch first and then bhyve_kbdlayout_option_fbsd***.patch to the original bhyve source code. Finally, I launched the git site for this patch, and in addition to the pat= ch, I also released a tool to generate a layout file from a kbd file for FreeBS= D's vt, so please refer to it. https://osdn.net/users/koinec/pf/bhyve_keyboard_layout_patch/wiki/FrontPage Best regards. --=20 You are receiving this mail because: You are the assignee for the bug.=