From owner-freebsd-virtualization@freebsd.org Sat May 2 12:09:04 2020 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 649E62CE2B9 for ; Sat, 2 May 2020 12:09:04 +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 49DnwJ21yxz47RP for ; Sat, 2 May 2020 12:09:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 458D72CE2B8; Sat, 2 May 2020 12:09:04 +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 455242CE2B7 for ; Sat, 2 May 2020 12:09:04 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DnwJ18Hfz47RN for ; Sat, 2 May 2020 12:09:04 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 22E7C2163B for ; Sat, 2 May 2020 12:09:04 +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 042C94E7071832 for ; Sat, 2 May 2020 12:09:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 042C94IY071823 for virtualization@FreeBSD.org; Sat, 2 May 2020 12:09:04 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: Sat, 02 May 2020 12:09:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.mimetype attachments.created Message-ID: 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.29 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: Sat, 02 May 2020 12:09:04 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246121 Bug ID: 246121 Summary: [bhyve][PATCH] Append Keyboard Layout specified option for using VNC. Product: Base System Version: Unspecified Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bhyve Assignee: virtualization@FreeBSD.org Reporter: koinec@yahoo.co.jp Attachment #214027 text/plain mime type: Created attachment 214027 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214027&action= =3Dedit [bhyve][PATCH] Append Keyboard Layout specified option for using VNC. When a guest OS is loaded using UEFI and connected with VNC, if the keyboar= d on the VNC client side is other than the US keyboard, some keys input may not = be p erformed correctly. For example, if you press the '@' key on a Japanese keyboard, the number '2' will be entered on the guest OS. The cause is that the '@' key on the US keyboard is assigned to Shift + '2' keys. In addition, there is a problem that keys that do not exist on the US keybo= ard cannot be entered. (example, Zenkaku-Hankaku key in the Japanese Keyboard) In the current bhyve(13-Current & 12.1-RELEASE-p3), in the virtual PS2 keyb= oard driver, there is a conversion table that converts from the key entered from= the VNC client side to the virtual keyboard ScanCode for the Guest OS. However, since this conversion table is set for US keyboards, the above pro= blem will occur if the client side is not a US keyboard. Therefore, I created a patch that allows the conversion table to be set in = the external configuration file for each keyboard layout, and that the configuration file (=3Dkeyboard layout) can be specified by the option '-k' of the bhyve command. The following shows how to apply the patch and how to use it. Please merge it into the source tree if possible. I'm new to creating a patch for the FreeBSD source tree, and I'm not sure if it's correct to submit to Bugzilla. If it's wrong to submit it to Bugzilla, it would be very helpful if you cou= ld tell me how to submit it. A. How to apply the patch ---------------------------------- 1. cd /usr/src/usr.sbin 2. patch -u < bhyve_kbdlayout_fbsd13c.patch 3. sh bhyve_kbdlayout.shar 4. cd /usr/src/usr.sbin/bhyve 5. make 6. make install * If you use the FreeBSD 12.1-RELEASE, please replace the "fbsd13c" of the above No.2 to the "fbsd121r". B. How to specified the keyboard layout -------------------- If you use the bhyve command directly, specify the '-k layout' option for= the bhyve command. You can specify the "layout" in the file name stored in /usr/share/bhyve/kbdlayout dir. If no '-k' option is specified, the US keyboard (default) is assumed to be selected. Others, If you use the bhyve via the vm-bhyve package, specify the follow= ing lines for the Guest OS configure file. bhyve_options=3D"-k layout" C. Request for Coooperation (The remaining tasks) ---------- Currently, the keyboard layout setting file can only be created for Japan= ese keyboards. (Because, I have only the Japanese Keyboard...) If you would like to adopt this patch, I would like to ask those who use keyboards of the corresponding languages to create keyboard layout setting files oth er than English and Japanese keyboards. See the 'default' file in the /usr/share/bhyve/kbdlayout dir. for how to create it. --=20 You are receiving this mail because: You are the assignee for the bug.=