From owner-freebsd-questions@FreeBSD.ORG Wed May 15 15:05:18 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3179BD77 for ; Wed, 15 May 2013 15:05:18 +0000 (UTC) (envelope-from signorecitizen@myopera.com) Received: from momout1-smtp.messagingengine.com (momout1-smtp.messagingengine.com [66.111.4.229]) by mx1.freebsd.org (Postfix) with ESMTP id 0A45C5FB for ; Wed, 15 May 2013 15:05:18 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id D7BF33EB; Wed, 15 May 2013 10:57:08 -0400 (EDT) Received: from web2.nyi.mail.srv.osa ([10.202.2.212]) by compute6.internal (MEProxy); Wed, 15 May 2013 10:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:cc:mime-version :content-transfer-encoding:content-type:subject:date:in-reply-to :references; s=smtpout; bh=kTfa24FArHECV5X73xfrSpc0JoE=; b=Jk/9y pIm68wjrbHv1Y/DMolPTl6xSsklmgC6QHAk2ATUURb0jjaJ8IL954HfKUhFs5XFd y/RqcPFCZUaGrbfc12Fof4ob+AfCkE2yml3A/hNMKXQ6WNWb0YWvoYDplff0n1vS 7HSDj8gSh05wRA42QkFCtGZkx8V/+vG7JxO1MM= Received: by web2.nyi.mail.srv.osa (Postfix, from userid 99) id B463E200269; Wed, 15 May 2013 10:57:08 -0400 (EDT) Message-Id: <1368629828.11935.140661231410401.7AEEEFA9@webmail.messagingengine.com> X-Sasl-Enc: PuZEBtg5AlOxL88qN58QX0bv5QAusnbjllCOdC5+2uBi 1368629828 From: Signore Citizen To: Polytropon , Matthias Apitz MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-efdc2334 Subject: Re: detecting keyboard layout during boot Date: Wed, 15 May 2013 07:57:08 -0700 In-Reply-To: <20130515164530.6241a910.freebsd@edvax.de> References: <20130515073554.GA1098@tiny.Sisis.de> <20130515152724.1ef31a58.freebsd@edvax.de> <20130515135308.GA2090@tiny.Sisis.de> <20130515164530.6241a910.freebsd@edvax.de> Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2013 15:05:18 -0000 On Wed, May 15, 2013, at 07:45 AM, Polytropon wrote: > On Wed, 15 May 2013 15:53:08 +0200, Matthias Apitz wrote: > > Hello, > > > > Here on an laptop/netbook EeePC 900 with English keyboard it says: > > > > # dmesg | fgrep kbd > > kbd1 at kbdmux0 > > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > > atkbd0: irq 1 on atkbdc0 > > kbd0 at atkbd0 > > atkbd0: [GIANT-LOCKED] > > psm0: irq 12 on atkbdc0 > > > > how do I know that the kb layout is English? > > By looking at it. ONLY by looking at it. :-) > > Even if you would remove the built-in keyboard (disconnect the > flex), you would see that entry. It's not about the keyboard per > se, it's about the keyboard controller. This interface usually > is "in parallel" with a PS/2 connector (if present). There is > no language information in it. > > > > > > But as you're asking about USB, there is a way. But this way > > > depends on how the manufacturer cooperates. Let's discuss that. > > > > USB was only meant as the boot device. > > Okay, then I misread it. English is not my native language. :-) > > The logical conclusion: You have no way to find out what keyboard > is physically installed (or attached via PS/2). > > This _might_ be not entirely true: If you can obtain some hardware > identification of the eeePC you're using, maybe some kind of ACPI > string or other vendor and product ID from some component, you could > guess what "localization" the device has, and then assume what > keyboard is installed. But that's just a wild guess from my side. > > Have you tried dmidecode? Handle 0x000E, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J1A1 Internal Connector Type: None External Reference Designator: Keyboard External Connector Type: PS/2 Port Type: Keyboard Port Handle 0x000F, DMI type 8, 9 bytes Port Connector Information Internal Reference Designator: J1A1 Internal Connector Type: None External Reference Designator: Mouse External Connector Type: PS/2 Port Type: Mouse Port -- Signore Citizen signorecitizen@myopera.com