grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: "Hervé Werner" <dud225@hotmail.com>
Cc: "bug-grub@gnu.org" <bug-grub@gnu.org>,
	Marco Gamberoni <gamberoni@libero.it>,
	grub-devel@gnu.org
Subject: Re: Changing default keyboard layout
Date: Sun, 9 Aug 2015 16:19:07 +0300	[thread overview]
Message-ID: <20150809161907.62cbad27@opensuse.site> (raw)
In-Reply-To: <DUB128-W9390937FD593A87315BBB28F720@phx.gbl>

Please in future send such mails to grub-devel or open bug on savannah.

В Sat, 8 Aug 2015 19:36:58 +0200
Hervé Werner <dud225@hotmail.com> пишет:

> Hello
> 
> I'm trying to change the default US keyboard layout on 
> 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
> 
> and then I added these lines :
> 
> terminal_input at_keyboard
> insmod keylayouts
> keymap /boot/grub/bepo.gkb
> 
> After running grub-mkconfig, grub.cfg looks fine. Unfortunately at boot the layout is still qwerty.
> 

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. 
> 
> There is a bug reported on Debian : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741464 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. 

@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.
> 
> 
> I'm looking for help pertaining this issue.
> 

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.


       reply	other threads:[~2015-08-09 13:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <DUB128-W9390937FD593A87315BBB28F720@phx.gbl>
2015-08-09 13:19 ` Andrei Borzenkov [this message]
     [not found]   ` <DUB128-W71F6855D659F76AA094F7E8F7E0@phx.gbl>
2015-08-13 17:33     ` Changing default keyboard layout Andrei Borzenkov
2015-08-13 19:05       ` Hervé Werner
2015-09-02  0:31         ` Hervé Werner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150809161907.62cbad27@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=bug-grub@gnu.org \
    --cc=dud225@hotmail.com \
    --cc=gamberoni@libero.it \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).