Created attachment 151356 [details] patch PR 194718 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194718 was closed but never MFC'ed to 9-STABLE. The patch below should apply cleanly.
A commit references this bug: Author: emaste Date: Fri Apr 24 19:26:01 UTC 2015 New revision: 281947 URL: https://svnweb.freebsd.org/changeset/base/281947 Log: MFC r273973: vt(4): Fix keyboard allocation when kbdmux(4) isn't used The problem was that only the kbdmux keyboard index was saved in vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this case, the keyboard was correctly allocated, but the returned index was discarded. PR: 196512 Changes: _U stable/9/sys/ _U stable/9/sys/dev/ stable/9/sys/dev/vt/vt_core.c