SUCCESS: xorg, hal and international keyboard

Boris Samorodov bsam at
Fri Apr 10 09:10:51 UTC 2009

Hello List,

I didn't find any full information on how to configure hal to use
international keyboard with new xorg versions. That's my success

When hal is used (it's a default for new xorg) the keyboard is
configured according to
My previous xorg.conf has defined keyboard as:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us,ru(winkeys)"
        Option      "XkbOptions" "grp:ctrl_shift_toggle,grp_led:scroll,altwin:menu"

The last two options should be moved to 10-x11-input.fdi. Beware
that Option "XkbLayout" "us,ru(winkeys)" is equal to
Option      "XkbLayout" "us,ru"
Option      "XkbVariant" ",winkeys"

One more change should be done at 10-x11-input.fdi: a match key
for "linux" should be changed to "FreeBSD". ;-)

So, for my keyboard the diff is (well, I've changed a comment
--- 10-x11-input.fdi.orig	2009-04-10 10:35:51.000000000 +0400
+++ 10-x11-input.fdi	2009-04-10 13:06:49.000000000 +0400
@@ -2,12 +2,13 @@
 <deviceinfo version="0.2">
     <match key="info.capabilities" contains="input.keyboard">
-      <!-- If we're using Linux, we use evdev by default (falling back to
-           keyboard otherwise). -->
+      <!-- If we're using FreeBSD, we use kbd by default -->
       <merge key="input.x11_driver" type="string">kbd</merge>
       <match key="/org/freedesktop/Hal/devices/"
-             string="Linux">
-        <merge key="input.x11_driver" type="string">evdev</merge>
+             string="FreeBSD">
+      <merge key="input.xkb.layout" type="string">us,ru</merge>  
+      <merge key="input.xkb.variant" type="string">,winkeys</merge>  
+      <merge key="input.xkb.options" type="string">grp:ctrl_shift_toggle,grp_led:scroll,altwin:menu</merge>  

If nothing helps you may wish to restart hald. ;-)

Boris Samorodov (bsam)
Research Engineer, Telephone & Internet SP
FreeBSD Committer, The Power To Serve

More information about the freebsd-x11 mailing list