A user has to rely on kbdmux(4) for - ddb(4) - newcons(4) - sysutils/uhidd, cc_attach So, provide a way similar to (ATKBD|SUNKBD|UKBD)_DFLT_KEYMAP to specify default keymap(5) for kbdmux(4) to reduce pain when switching drivers.
This highly appreciated enhancement needs comitting! Some problems with _DFLT_KEYMAP option and dual console types showed up in the mean time, please see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193865 To adopt the same here, the following path to the patch should fit: --- kbdmux_dflt_keymap.patch 2014-09-23 11:48:42.000000000 +0200 +++ kbdmux_dflt_keymap-dual-constype.patch 2014-09-23 12:05:54.000000000 +0200 @@ -52,6 +52,10 @@ compile-with "${AWK} -f $S/teken/gensequences $S/teken/sequences > teken_state.h" \ no-obj no-implicit-rule before-depend \ clean "teken_state.h" +kbdmuxmap.h optional kbdmux_dflt_keymap \ -+ compile-with "/usr/sbin/kbdcontrol -L ${KBDMUX_DFLT_KEYMAP} | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > kbdmuxmap.h" \ ++ compile-with "unset KEYMAP_PATH; for kmpath in ${S:S/sys$/share/}/vt/keymaps ${S:S/sys$/share/}/syscons/keymaps; do kmapfile=$${kmpath}/${KBDMUX_DFLT_KEYMAP:C/\.kbd$$//}.kbd; if [ -r $${kmapfile} ]; then KEYMAP_PATH=$${kmpath}; fi; done; if [ X$${KEYMAP_PATH} != X ]; then env KEYMAP_PATH=$${KEYMAP_PATH} /usr/sbin/kbdcontrol -L ${KBDMUX_DFLT_KEYMAP} | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > kbdmuxmap.h; else echo Error: kbdmux_dflt_keymap not found; exit 1; fi" + no-obj no-implicit-rule before-depend \ + clean "kbdmuxmap.h" usbdevs.h optional usb \
Created attachment 147682 [details] Patch for kbdmux_dflt_keymap.patch to add dual-constype keymap location awareness. Please ignore the pasted patch-patch, there's a newline-escape "\" missing at the and of "kbdmux_dflt_keymap not found; exit 1; fi"
Ahh, sorry, looked into wrong PR. Yes, it's a dup of 153459.
*** Bug 194744 has been marked as a duplicate of this bug. ***
In https://reviews.freebsd.org/D5708 there's a simplification of the compile-time keymap generation command line. Once that's complete I plan to commit a version of this change.
A commit references this bug: Author: emaste Date: Thu Apr 7 20:12:46 UTC 2016 New revision: 297685 URL: https://svnweb.freebsd.org/changeset/base/297685 Log: Add option to specify built-in keymap for kbdmux PR: 153459 Submitted by: swell.k@gmail.com Changes: head/sys/conf/NOTES head/sys/conf/files head/sys/conf/options head/sys/dev/kbdmux/kbdmux.c head/sys/modules/kbdmux/Makefile
A commit references this bug: Author: emaste Date: Thu Apr 21 19:25:34 UTC 2016 New revision: 298430 URL: https://svnweb.freebsd.org/changeset/base/298430 Log: MFC r297685: Add option to specify built-in keymap for kbdmux PR: 153459 Submitted by: swell.k@gmail.com Changes: _U stable/10/ stable/10/sys/conf/NOTES stable/10/sys/conf/files stable/10/sys/conf/options stable/10/sys/dev/kbdmux/kbdmux.c stable/10/sys/modules/kbdmux/Makefile