Contributed by johan on Thu May 8 07:47:55 2008 (GMT)
from the next-patch-is-for-nonUS-mouse-support dept.
Matthieu Herrb (matthieu@) has committed support for Xorg to detect the keyboard layout based on the wscons keymap being used.
What this means to us is that one of the final obstacles to running X without a pre-made xorg.conf(5) file is now gone. This should make it considerably easier to run X11 for users with a non-US keyboard layout.
The idea and initial diff was contributed by Reyk Floeter (reyk@).
Furthermore, keyboard layouts are referred to differently in wscons(4) and Xorg(1) for some countries. This meant that for example the Swedish keyboard layout which is named "sv" in wscons(4) would not get automatically detected because it is named "se" in Xorg. Mats O Jansson (maja@) solved this by adding a lookup table to the xf86-input-keyboard driver.
There is one exception - if you alter your keymap by means of wsconsctl(8) your keymap will become "user" in which case this will not work.
Go ahead and try using Xorg without xorg.conf(5) yourself next time you install X on an OpenBSD computer.