Hello All,
Looking in the forum I am very surprised that no solution has been posted since FreeBSD switched to VT Console.
This can be a real problem for many users using non US keyboard, to type some complex "root" password in single user mode, before being able to switch keyboard with :
As a reminder, with the former "SC" console (or 'syscons'), the solution was to recompile the kernel.
Looking for :
We added :
Frankly, I haven't tried again with FreeBSD 12, but this solution is known to not work anymore in VT console with FreeBSD 10 & 11.
Anyway, the following solution works, and should work at less since FreeBSD 11 (I can't remember for FreeBSD 10)
In the Kernel config, let's look for the following section :
Add :
Example is done for French keyboard
I am not totally sure but I think KBDMUX options should work for both SC and VT consoles.
KBDMUX being a master multiplexer driver, I suppose atkbd and ukbd apply to slave devices.
So, you can't apply both former and new method.... if I remember correctly my tests.
Running in SC console, kernel will look for matching keymap file in :
/usr/share/syscons/keymaps
Running in VT console, kernel will look for matching keymap file in :
/usr/share/vt/keymaps
If you still need to switch between 'SC' and 'VT', try to find a common layout both present in 'syscons' and 'vt' directories
NOTE :
- In single user mode, password protection is activated by switching the console to insecure in /etc/ttys
So along with a full drive encryption, the workstation may be fully protected. Activation of encryption without switching the console to insecure is useless as anybody could easily change passwords of all users booting in single user mode.
- Many people here have nothing else to say... "I use a Qwerty keyboard". I just remind you that you are not alone in the world. There are many people who are not using qwerty keyboard, as Russians, Japaneses, Chineses....
Looking in the forum I am very surprised that no solution has been posted since FreeBSD switched to VT Console.
This can be a real problem for many users using non US keyboard, to type some complex "root" password in single user mode, before being able to switch keyboard with :
kbdcontrol
As a reminder, with the former "SC" console (or 'syscons'), the solution was to recompile the kernel.
Looking for :
Code:
device atkbd
We added :
Code:
options ATKBD_DFLT_KEYMAP
makeoptions ATKBD_DFLT_KEYMAP=german.iso
Frankly, I haven't tried again with FreeBSD 12, but this solution is known to not work anymore in VT console with FreeBSD 10 & 11.
Anyway, the following solution works, and should work at less since FreeBSD 11 (I can't remember for FreeBSD 10)
In the Kernel config, let's look for the following section :
Code:
device kbdmux
Add :
Code:
options KBDMUX_DEFLT_KEYMAP
makeoptions KBDMUX_DEFLT_KEYMAP=fr.acc
Example is done for French keyboard
I am not totally sure but I think KBDMUX options should work for both SC and VT consoles.
KBDMUX being a master multiplexer driver, I suppose atkbd and ukbd apply to slave devices.
So, you can't apply both former and new method.... if I remember correctly my tests.
Running in SC console, kernel will look for matching keymap file in :
/usr/share/syscons/keymaps
Running in VT console, kernel will look for matching keymap file in :
/usr/share/vt/keymaps
If you still need to switch between 'SC' and 'VT', try to find a common layout both present in 'syscons' and 'vt' directories
NOTE :
- In single user mode, password protection is activated by switching the console to insecure in /etc/ttys
So along with a full drive encryption, the workstation may be fully protected. Activation of encryption without switching the console to insecure is useless as anybody could easily change passwords of all users booting in single user mode.
- Many people here have nothing else to say... "I use a Qwerty keyboard". I just remind you that you are not alone in the world. There are many people who are not using qwerty keyboard, as Russians, Japaneses, Chineses....
Last edited: