From owner-freebsd-x11@FreeBSD.ORG Sun May 24 15:03:48 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8B0B1065688 for ; Sun, 24 May 2009 15:03:48 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 62CA88FC20 for ; Sun, 24 May 2009 15:03:48 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from [85.175.178.151] (helo=moosi) by services.ipt.ru with esmtpa (Exim 4.54 (FreeBSD)) id 1M8FEp-0006qK-DF; Sun, 24 May 2009 19:03:47 +0400 To: Renato Botelho References: <34088967@bb.ipt.ru> <747dc8f30905231049t1f5047d9h966e5ebd31af5cf@mail.gmail.com> From: Boris Samorodov Date: Sun, 24 May 2009 19:04:07 +0400 In-Reply-To: <747dc8f30905231049t1f5047d9h966e5ebd31af5cf@mail.gmail.com> (Renato Botelho's message of "Sat\, 23 May 2009 14\:49\:57 -0300") Message-ID: <12063144@ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-x11@freebsd.org Subject: Re: SUCCESS: xorg, hal and international keyboard X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 May 2009 15:03:49 -0000 Renato Botelho writes: > On Fri, Apr 10, 2009 at 6:10 AM, Boris Samorodov wrote: >> >> I didn't find any full information on how to configure hal to use >> international keyboard with new xorg versions. That's my success >> story. >> >> When hal is used (it's a default for new xorg) the keyboard is >> configured according to >> LOCALBASE/share/hal/fdi/policy/10osvendor/10-x11-input.fdi >> My previous xorg.conf has defined keyboard as: >> ----- >> Section "InputDevice" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Identifier =C2=A0"Keyboard0" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Driver =C2=A0 =C2=A0 =C2=A0"kbd" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0"XkbModel" "pc105" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0"XkbLayout" "us,ru= (winkeys)" >> =C2=A0 =C2=A0 =C2=A0 =C2=A0Option =C2=A0 =C2=A0 =C2=A0"XkbOptions" "grp:= ctrl_shift_toggle,grp_led:scroll,altwin:menu" >> EndSection >> ----- >> >> The last two options should be moved to 10-x11-input.fdi. Beware >> that Option "XkbLayout" "us,ru(winkeys)" is equal to >> ----- >> Option =C2=A0 =C2=A0 =C2=A0"XkbLayout" "us,ru" >> Option =C2=A0 =C2=A0 =C2=A0"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 >> also): >> ----- >> --- 10-x11-input.fdi.orig =C2=A0 =C2=A0 =C2=A0 2009-04-10 10:35:51.00000= 0000 +0400 >> +++ 10-x11-input.fdi =C2=A0 =C2=A02009-04-10 13:06:49.000000000 +0400 >> @@ -2,12 +2,13 @@ >> =C2=A0 >> =C2=A0 >> =C2=A0 =C2=A0 >> - =C2=A0 =C2=A0 =C2=A0 >> + =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 =C2=A0 kbd= >> =C2=A0 =C2=A0 =C2=A0 > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 string=3D"Linux"> >> - =C2=A0 =C2=A0 =C2=A0 =C2=A0evdev >> + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 string=3D"FreeBSD"> >> + =C2=A0 =C2=A0 =C2=A0us= ,ru >> + =C2=A0 =C2=A0 =C2=A0,= winkeys >> + =C2=A0 =C2=A0 =C2=A0g= rp:ctrl_shift_toggle,grp_led:scroll,altwin:menu >> =C2=A0 =C2=A0 =C2=A0 >> =C2=A0 =C2=A0 >> =C2=A0 >> ----- >> >> If nothing helps you may wish to restart hald. ;-) > Hello Boris, > > You don't need to patch this file, just create your own one > and save it as /usr/local/etc/hal/fdi/policy/keyboard.fdi and > restar hal. > > Here is my example, not international, but a Sun Type 7 > > garga@botelhor:~> cat /usr/local/etc/hal/fdi/policy/keyboard.fdi > > > > > > k= bd > type=3D"string">pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc105)+us(intl) > > > > Yes, this works just fine and is a better solution. Thanks! WBR --=20 bsa