From owner-freebsd-questions@FreeBSD.ORG Thu Nov 10 10:26:04 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EE8D106566C for ; Thu, 10 Nov 2011 10:26:04 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id C987F8FC19 for ; Thu, 10 Nov 2011 10:26:03 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RORpZ-00032J-V5 for freebsd-questions@freebsd.org; Thu, 10 Nov 2011 11:26:01 +0100 Received: from c-82-209-158-57.cust.bredband2.com ([82.209.158.57]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2011 11:26:01 +0100 Received: from mc by c-82-209-158-57.cust.bredband2.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Nov 2011 11:26:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Cardell Widerkrantz Date: Thu, 10 Nov 2011 11:25:45 +0100 Organization: Temple of the Moby Hack Lines: 25 Message-ID: <86ipmsl1ee.fsf@kropotkin.hack.org> References: <4EB88225.9020702@bredband.net> <20111108205600.7a8e0205.freebsd@edvax.de> <20111108215114.24d336e6.freebsd@edvax.de> <4EBA5EBD.7020501@bredband.net> <86pqh1njww.fsf@kropotkin.hack.org> <30329CB5-03FA-4717-81E6-43CC9CE43713@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-82-209-158-57.cust.bredband2.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) Cancel-Lock: sha1:+fUkw3qj7fm+YyRwS8GvyrErQ94= Subject: Re: X server and xinit works excellent....almost. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2011 10:26:04 -0000 Chuck Swiger , 2011-11-09 22:10 (+0100): >> How would HAL know that the keyboard had a Swedish layout? No such >> information is sent through USB or PS/2 when you attach a keyboard. > > True for PS/2, but not true for USB-- the USB Vendor & Product ID can > identify different keyboard types and let you infer the country. I'm sorry I was unclear. I meant the USB device doesn't say what physical keyboard layout it has in any standardized way. There is nothing in the USB protocol about it. The product ID code might tell you something if you have a large database and the USB product ID is indeed different between two physical layouts. It might not be. For instance, while ANSI keyboards and ISO keyboards are bound to have different USB product IDs because of actually physical differences in the number of keys, the only thing that differs between, say, a German keyboard and a Swedish keyboard of the same model is what is printed on the keycaps. A vendor might see these as the same USB product ID. -- http://hack.org/mc/ Plain text e-mails, please. HTML messages sent to me are silently deleted. OpenPGP welcome, 0xE4C92FA5.