From owner-freebsd-virtualization@freebsd.org Thu May 21 13:40:48 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 042A22D8579 for ; Thu, 21 May 2020 13:40:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49SW3M6LjNz3WPy for ; Thu, 21 May 2020 13:40:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D9DDF2D870E; Thu, 21 May 2020 13:40:47 +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 D9A272D81FF for ; Thu, 21 May 2020 13:40:47 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49SW3M5TZMz3WDk for ; Thu, 21 May 2020 13:40:47 +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 B7A34DFF7 for ; Thu, 21 May 2020 13:40:47 +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 04LDel0L006589 for ; Thu, 21 May 2020 13:40:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 04LDel8L006588 for virtualization@FreeBSD.org; Thu, 21 May 2020 13:40:47 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: Thu, 21 May 2020 13:40:44 +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: attachments.isobsolete attachments.mimetype attachments.created 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.33 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: Thu, 21 May 2020 13:40:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246121 Koine Yuusuke changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #214027|0 |1 is obsolete| | Attachment #214725|text/x-uuencode |text/plain mime type| | --- Comment #5 from Koine Yuusuke --- Created attachment 214725 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214725&action= =3Dedit [bhyve][PATCH] Append Keyboard Layout specified option for using VNC. Thank you for the various ideas! As a result of thinking, I think that the method that has the keyboard-layo= ut setting file is better. However, I tried to automatically generate the keyboard-layout setting file= for each language from the file existing /usr/share/vt/kbdmap for vt, so update= the generated keyboard-layout patch files for each language. Now that I can enter the following keys on the keyboards of all languages supported by vt, what about? A. How to apply the patch ---------------------------------- 1. cd /usr/src/usr.sbin 2. patch -u < bhyve_kbdlayout_fbsd13c.patch 3. sh bhyve_kbdlayout.shar (*Updated the bhyve_kbdlayou.shar fi= le in this time.) 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. Supoorting Keyboard map --------------------------------- You can use the following keyboard language layout. (Indicates the string that can be specified in the bhyve -k option.) am / be / be_acc / bg_bds / bg_phonetic / br / br_noacc / by ca / ca-fr / centraleuropean / centraleuropean_qwerty ch / ch_acc / ch-fr / ch-fr_acc / ch_macbook_acc / colemak_acc cz / de / de_acc / de_noacc / dk / dk_acc / dk_macbook ee / es / es_acc / es_dvorak / fi fr / fr_acc / fr_dvorak / fr_dvorak_acc / fr_macbook gr / gr_101_acc / gr_elot_acc / hr / hu_101 / hu_102 il / is / is_acc / it / kz_io / kz_kst / lt latinamerican / latinamerican_acc / nl / no / no_dvorak / nordic_asus= -eee pl / pl_dvorak / pt / pt_acc / ru / ru_shift / ru_win / se / si / sk tr / tr_f / ua / ua_shift_alt / uk / uk_capsctrl / uk_dvorak / uk_mac= book us / us_acc / us_ctrl / us_emacs / us_macbook / us_unix us_dvorak / us_dvorakl / us_dvorakp / us_dvorakr / us_dvorakx jp / jp_capsctrl C. Supporting Key with the above Keyboard-Layout file. ---- Alphabetical Key ( [a-zA-Z] ) Numeric Key ( [0-9] ) Sign mark Key ( !"#$%&'()+-*/=3D^~\|@`[]{};:,.<>?_ ) Enter / Escape / Tab / Shift(L/R) / Ctrl.(L/R) / Alt(L/R) / Home / End / = Ins. / BackSpace / Delete Up Arrow / Down Arrow / Left Arrow / Right Arrow / PgUp / PgDown F1-12 / WinKey(L/R) * jp / jp_capsctl supports Japanese keyboard specific keys. D. Thoghts on the ideas you taught ------------------------ 1. The workaround by executing "setxkbmap us" on the VNC client side. This method allows the guest OS to enter the correct key input, but ther= e is a problem that the key cannot be input correctly on the client side(HyberVi= sor) terminal. Therefore, it is not possible to use the FreeBSD terminal on which bhyve runs and the guest OS as the same time. I knew it was also introduced as a workaround on other sites, but I patc= hed this thread because of the above issue. 2. The use of QEMU Extended Key Event Message I understand that this method is a drastic measure to avoid using the keyboard-layout files, and I would like to make the patch with it if possib= le ... However, in the current VNC clients that exist the FreeBSD ports, tigerV= NC doesn't support this message because it is an old version, and it seems that tightVNC & ssvnc doesn't support this message in the first place. If the VNC clients that exist the FreeBSd ports supprots this message, I would like to try to support this message, but I can not support it because there is no VNCclient currently. And as far as I can see the bhyve source t= ree, I think the difficulty level of the modification is high. 3. This proposal When we aim to make it easy to use any language using the current VNCcli= ent on FreeBSD ports, I think that it is unavoidable to use the keyboard-layout setting file. However, it is difficult to create the keyboard-layout files for each launguage from the beginning, so the minimum keys such as alphabets, number= s, and symbols were automatically generated. I would like to ask if this method is acceptable, test the generating keyboard-layout setting file for each language, and add a unique key defini= tion for each language. --=20 You are receiving this mail because: You are the assignee for the bug.=