From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZOQVT-00063N-Vt for mharc-grub-devel@gnu.org; Sun, 09 Aug 2015 09:19:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOQVR-00060Y-CV for grub-devel@gnu.org; Sun, 09 Aug 2015 09:19:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOQVQ-0006zR-En for grub-devel@gnu.org; Sun, 09 Aug 2015 09:19:17 -0400 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:34308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOQVL-0006wp-Hh; Sun, 09 Aug 2015 09:19:11 -0400 Received: by lbbtg9 with SMTP id tg9so44605471lbb.1; Sun, 09 Aug 2015 06:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Zp+ZqXJYdhh1FrqIssnl23XIIpJ4UA5/FepSMYzE0XM=; b=Bm1fzmdVNwEPhTjUVg/PjYKZlu1eB6RvpzdkZ/3JvbHwMIlgGy307ELWclCrEEMP9+ uCaReHpzMqmi7aDA8wgxfW8lbFU0DUH2Wjc9bQ/Y/ZYDEiNTZPPB6yn91El76ZFxs/CR kz2nlYK4ZRANh/Leuejc9AZtzmYcyQpwj9SlTJR068RWV5OODIhtSxOeJKvJKX62i48Y b3S8AIJUY5L2VgAYBIe05vp304PLFGZOiyxDirdIbL3w2zI/rkTBjDMfAa441OjE06Bo otM/Z4pjSb1CtpR7baMHubZRL7Dwiuy6/N4nUTv8qhBtw7uQaQzVVU3ghnh3GeBxkvOE 0CRg== X-Received: by 10.112.148.130 with SMTP id ts2mr16366535lbb.17.1439126350477; Sun, 09 Aug 2015 06:19:10 -0700 (PDT) Received: from opensuse.site (ppp91-76-6-204.pppoe.mtu-net.ru. [91.76.6.204]) by smtp.gmail.com with ESMTPSA id ap2sm3501591lac.13.2015.08.09.06.19.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2015 06:19:09 -0700 (PDT) Date: Sun, 9 Aug 2015 16:19:07 +0300 From: Andrei Borzenkov To: =?UTF-8?B?SGVydsOp?= Werner Subject: Re: Changing default keyboard layout Message-ID: <20150809161907.62cbad27@opensuse.site> In-Reply-To: References: X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.28; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::232 Cc: "bug-grub@gnu.org" , Marco Gamberoni , grub-devel@gnu.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2015 13:19:18 -0000 Please in future send such mails to grub-devel or open bug on savannah. =D0=92 Sat, 8 Aug 2015 19:36:58 +0200 Herv=C3=A9 Werner =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Hello >=20 > I'm trying to change the default US keyboard layout on=20 > Grub2 but I don't manage to get it working. Here is basically what I did > : > $ ckbcomp fr bepo |grub-mklayout -v -o /boot/grub/bepo.gkb >=20 > and then I added these lines : >=20 > terminal_input at_keyboard > insmod keylayouts > keymap /boot/grub/bepo.gkb >=20 > After running grub-mkconfig, grub.cfg looks fine. Unfortunately at boot t= he layout is still qwerty. >=20 I can't reproduce it, at least in QEMU (grub build for i386-pc). Loading custom keyboard does change keyboard layout. > I'm using Grub version 2.02~beta2-22 as shipped by Debian.=20 >=20 > There is a bug reported on Debian : https://bugs.debian.org/cgi-bin/bugre= port.cgi?bug=3D741464 but unfortunately it is still pending. This bug is not clear, but I notice that at least in QEMU interrupt is not disabled after startup and we never explicitly do it either. So grub may race with BIOS for input characters. The commands mentioned in this bug report (outb 0x64 0x60 ; outb 0x60 0x64) effectively disable keyboard interrupt.=20 @Marco: would you be willing to test a patch that does it by default? > I also stubbled upon similar bugs pertaining to other distros so it looks= like a global issue though I did not find anything on Grub BTS. >=20 >=20 > I'm looking for help pertaining this issue. >=20 Well, you will need to debug this, as I said, I cannot reproduce it and bug report you mentioned does not show any debug information either. If you are willing to compile your grub, we could add debug output to verify what you actually get from controller.