From owner-freebsd-x11@FreeBSD.ORG Sat May 23 18:20:45 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 2E0B6106564A for ; Sat, 23 May 2009 18:20:45 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: from mail-qy0-f105.google.com (mail-qy0-f105.google.com [209.85.221.105]) by mx1.freebsd.org (Postfix) with ESMTP id DD51E8FC13 for ; Sat, 23 May 2009 18:20:44 +0000 (UTC) (envelope-from rbgarga@gmail.com) Received: by qyk3 with SMTP id 3so3682044qyk.3 for ; Sat, 23 May 2009 11:20:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ob8c6073IVvbFAfNViPyB2Vg+LeJLDLOFhHX1Bz1nVs=; b=g7CYneuo5JLrTzaYy0cDuUjijrqHur/CyEM6vn/DUTqOUXkvKZvNEC++q4lRtozrEb zGLJz8arMXT+h+b3N/4+Ds093soAsfQBWfYRUASwIbi7dVexqZ0/ZzdXjOUliIrrJwuc mFqGP8gIq/w5HalU1y4YMX50eBsH60vFRIDmM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=wCErtS3V6sjsw3V4ODG7J4LRhMRwH9BXOLV/5s2B3vmO+46v49ZQz1Oazqn0xRSEPd dhOGUGsuFN0NCwndmvlt4XCSIInJlGQrZJ055dHm5UScvAjV2rwYghBK8Tqcz/enYHt+ KBhjg4id1rDynLHunelzgxKtPNEwU/cUsFrvY= MIME-Version: 1.0 Received: by 10.220.76.212 with SMTP id d20mr4925627vck.26.1243101017114; Sat, 23 May 2009 10:50:17 -0700 (PDT) In-Reply-To: <34088967@bb.ipt.ru> References: <34088967@bb.ipt.ru> From: Renato Botelho Date: Sat, 23 May 2009 14:49:57 -0300 Message-ID: <747dc8f30905231049t1f5047d9h966e5ebd31af5cf@mail.gmail.com> To: Boris Samorodov Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 23 May 2009 18:20:45 -0000 On Fri, Apr 10, 2009 at 6:10 AM, Boris Samorodov wrote: > 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 > 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" > =A0 =A0 =A0 =A0Identifier =A0"Keyboard0" > =A0 =A0 =A0 =A0Driver =A0 =A0 =A0"kbd" > =A0 =A0 =A0 =A0Option =A0 =A0 =A0"XkbModel" "pc105" > =A0 =A0 =A0 =A0Option =A0 =A0 =A0"XkbLayout" "us,ru(winkeys)" > =A0 =A0 =A0 =A0Option =A0 =A0 =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 =A0 =A0 =A0"XkbLayout" "us,ru" > Option =A0 =A0 =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 =A0 =A0 =A0 2009-04-10 10:35:51.000000000 +0400 > +++ 10-x11-input.fdi =A0 =A02009-04-10 13:06:49.000000000 +0400 > @@ -2,12 +2,13 @@ > =A0 > =A0 > =A0 =A0 > - =A0 =A0 =A0 > + =A0 =A0 =A0 > =A0 =A0 =A0 kbd > =A0 =A0 =A0 - =A0 =A0 =A0 =A0 =A0 =A0 string=3D"Linux"> > - =A0 =A0 =A0 =A0evdev > + =A0 =A0 =A0 =A0 =A0 =A0 string=3D"FreeBSD"> > + =A0 =A0 =A0us,ru > + =A0 =A0 =A0,winkeys > + =A0 =A0 =A0grp:ctrl_sh= ift_toggle,grp_led:scroll,altwin:menu > =A0 =A0 =A0 > =A0 =A0 > =A0 > ----- > > If nothing helps you may wish to restart hald. ;-) > > > HTH & WBR > -- > Boris Samorodov (bsam) > Research Engineer, http://www.ipt.ru Telephone & Internet SP > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > _______________________________________________ > freebsd-x11@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" > 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 kbd= pc(pc105)+sun_vndr/usb(sun_usb)+pc(pc105)+us(intl) --=20 Renato Botelho