Created attachment 176222 [details] The patch Hello. I've noticed, that bhyve (at least when it works in conjunction with VNC client) does not understand *lock and keypad keys and prints debug messages like "Unhandled ps2 keyboard keysym". Suggesting a patch which seems to fix the problem. Also, can you please explain what uint32_t keysym codes are? The first 127 of them seem to be ASCII codes and translation table contain ASCII->PS/2 set 2 scancode mappings. But why TAB,ESC and some other symbols are coded with leading 0xff? For example, TAB is 0xff09. How keysyms are generated for *lock and Keypad keys? Nevertheless, I wrote the patch using the mentioned debug output.
I'm working to improve the ps/2 scancodes.
A commit references this bug: Author: araujo Date: Fri Nov 2 08:28:14 UTC 2018 New revision: 340046 URL: https://svnweb.freebsd.org/changeset/base/340046 Log: Add support ps/2 scancodes for NumLock, ScrollLock and numerical keypad keys. PR: 213835 Submitted by: Vasily Postnicov <ivan.zhmudo@gmail.com> MFC after: 4 weeks Relnotes: Yes Sponsored by: iXsystems Inc. Changes: head/usr.sbin/bhyve/ps2kbd.c
Thanks for the patch and sorry about my delay to commit it. Best,
A commit references this bug: Author: araujo Date: Sun Dec 9 06:41:57 UTC 2018 New revision: 341757 URL: https://svnweb.freebsd.org/changeset/base/341757 Log: MFC r340046, r340050 r340046: Add support ps/2 scancodes for NumLock, ScrollLock and numerical keypad keys. PR: 213835 Submitted by: Vasily Postnicov <ivan.zhmudo@gmail.com> Relnotes: Yes Sponsored by: iXsystems Inc. r340050: Remove printf for debug purpose forgotten on r340046. Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Changes: _U stable/12/ stable/12/usr.sbin/bhyve/ps2kbd.c
A commit references this bug: Author: araujo Date: Sun Dec 9 06:42:07 UTC 2018 New revision: 341758 URL: https://svnweb.freebsd.org/changeset/base/341758 Log: MFC r340046, r340050 r340046: Add support ps/2 scancodes for NumLock, ScrollLock and numerical keypad keys. PR: 213835 Submitted by: Vasily Postnicov <ivan.zhmudo@gmail.com> Relnotes: Yes Sponsored by: iXsystems Inc. r340050: Remove printf for debug purpose forgotten on r340046. Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Changes: _U stable/11/ stable/11/usr.sbin/bhyve/ps2kbd.c
MFC to stable 11 and 12 done.