Freebsd syscons

From wikinotes

Console driver for FreeBSD, replaced with freebsd vt as default in FreeBSD-12.

Documentation

man syscons https://www.freebsd.org/cgi/man.cgi?query=syscons&format=html

Locations

/boot/loader.conf set console driver
/usr/share/syscons/keymaps/*.kbd keymap files

Configuration

Enable

# /boot/loader.conf
vt.kern.vty = "sc"  # enable syscons

Video Mode

export TERM=xterm    # required to use vidcontrol command
kldload vesa         # unless already loaded
vidcontrol -i mode   # list all available video modes
vidcontrol MODE_279  # set video mode

Keymaps

cd /usr/share/syscons/keymaps
sudo cp us.iso.kbd us.iso-ctrlcaps.kbd
# /usr/share/syscons/keymaps/us.iso-ctrlcaps.kbd
058   lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl   O
# /etc/rc.conf
keymap="us.iso-ctrlcaps"

Repeat Rate

kbdcontrol -r fast		## interactively test 'fast' repeat-key (250.34)
# /etc/rc.conf
keyrate=250.34