GNU bug report logs - #35583
Setting a GRUB keyboard-layout breaks GRUB… and Linux‽

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Tobias Geerinckx-Rice <me@HIDDEN>; dated Sun, 5 May 2019 16:28:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 35583 <at> debbugs.gnu.org:


Received: (at 35583) by debbugs.gnu.org; 6 May 2019 09:39:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 06 05:39:52 2019
Received: from localhost ([127.0.0.1]:55733 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hNa6C-0006jU-E0
	for submit <at> debbugs.gnu.org; Mon, 06 May 2019 05:39:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53190)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1hNa6A-0006jH-E2
 for 35583 <at> debbugs.gnu.org; Mon, 06 May 2019 05:39:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:35947)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <ludo@HIDDEN>)
 id 1hNa65-0000t7-7a; Mon, 06 May 2019 05:39:45 -0400
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=48006 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>)
 id 1hNa64-00068t-Im; Mon, 06 May 2019 05:39:44 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: bug#35583: Setting a GRUB keyboard-layout breaks =?utf-8?Q?GR?=
 =?utf-8?Q?UB=E2=80=A6?= and =?utf-8?Q?Linux=E2=80=BD?=
References: <87tve89898.fsf@nckx>
Date: Mon, 06 May 2019 11:39:42 +0200
In-Reply-To: <87tve89898.fsf@nckx> (Tobias Geerinckx-Rice's message of "Sun,
 05 May 2019 18:27:31 +0200")
Message-ID: <87a7fzly5d.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 35583
Cc: 35583 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi Tobias,

Tobias Geerinckx-Rice <me@HIDDEN> skribis:

> However, today I tried to (re-)add it to GRUB, too, and ended up
> writing the following comment:
>
> (bootloader
>  (bootloader-configuration
>   (bootloader grub-efi-bootloader)
>   ;; XXX Strange bug: GRUB can read the LUKS passphrase, but
> afterwards (at
>   ;; the menu screen) no longer responds to key presses.  Even
> stranger: it
>   ;; makes my X230T's backspace key send =E2=80=98XF86ScreenSaver=E2=80=
=99s even on
> Linux.
>   ;; (keyboard-layout keyboard-layout)
>   (target "/boot/efi")
>   (timeout 1))))
>
> This is 100% reproducible.

Even in =E2=80=98guix system vm --full-boot=E2=80=99, right?

It could be that the XKB =E2=86=92 GRUB conversion fails.  You can see
conversion process in (gnu bootloader grub).  In that case, that would
be a =E2=80=98grub-mklayout=E2=80=99 or a =E2=80=98ckbcomp=E2=80=99 bug.

I=E2=80=99ve only tested this stuff with standard keyboard layouts with one=
 or
two options at most, so it may be that you=E2=80=99re pushing it to its lim=
its.

I=E2=80=99m surprised what GRUB does has an impact on what Linux does
afterwards, though.

Thanks,
Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#35583; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 May 2019 16:27:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 05 12:27:54 2019
Received: from localhost ([127.0.0.1]:54733 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hNJzW-0000YU-5k
	for submit <at> debbugs.gnu.org; Sun, 05 May 2019 12:27:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:43041)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1hNJzT-0000YF-Jd
 for submit <at> debbugs.gnu.org; Sun, 05 May 2019 12:27:52 -0400
Received: from lists.gnu.org ([209.51.188.17]:34930)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <me@HIDDEN>) id 1hNJzO-0001Ww-Ay
 for submit <at> debbugs.gnu.org; Sun, 05 May 2019 12:27:46 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57417)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <me@HIDDEN>) id 1hNJzN-0005eP-8i
 for bug-guix@HIDDEN; Sun, 05 May 2019 12:27:46 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <me@HIDDEN>) id 1hNJzL-0001Ue-Rb
 for bug-guix@HIDDEN; Sun, 05 May 2019 12:27:45 -0400
Received: from tobias.gr ([2001:470:7405::1]:60168)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <me@HIDDEN>) id 1hNJzI-0001Lw-3v
 for bug-guix@HIDDEN; Sun, 05 May 2019 12:27:42 -0400
Received: by tobias.gr (OpenSMTPD) with ESMTP id b89d67a2
 for <bug-guix@HIDDEN>; Sun, 5 May 2019 16:27:33 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to
 :subject:date:message-id:mime-version:content-type; s=2018; i=
 me@HIDDEN; bh=WbO0glG/cJg4ykxqBdtHvEuw+CoWfPHbnRLCXkJSu8w=; b=
 hp0abDkMOgjpiIn9lQ8ngsU2DoGRvLYK0rMMZV7ebegR/KBB0/3acEjFH27DbaIb
 koYpLOOMeJfYpTmgYVn/ANoqLXivR9jVA9zP+UCFlU7LJBLfWZT+qkCMu3nKjnEM
 oKLJ1TLQRasq/JKUWkuPSh5hzEy0zAHn+pdNvQWMBmidH1JLHaua+srk17+mEmC6
 CyzxeXbMRbbN99OzoFPdBSU55X+gAnusFKRD0bFUYwOZAnUCSnOY6pBydvtFuF6Z
 v5eh8VAVSmzI0v3uMED+qmIwKg30iG2JPM55Kt99Ah8HcmxOTk7tZKYEtyb3hsR0
 1ePSe/podvzWjm4EnATqLA==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id dc9f08ab
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <bug-guix@HIDDEN>;
 Sun, 5 May 2019 16:27:32 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: Bug guix <bug-guix@HIDDEN>
Subject: Setting a GRUB keyboard-layout breaks =?utf-8?Q?GRUB=E2=80=A6?=
 and =?utf-8?Q?Linux=E2=80=BD?=
Date: Sun, 05 May 2019 18:27:31 +0200
Message-ID: <87tve89898.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2001:470:7405::1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Guix,

Some (=3Dnone) of you might remember my X keyboard woes on #guix,=20
where I was stuck without a backspace key or the key below it (\,=20
|) on my ThinkPad X230T's US keyboard.  Both sent out=20
=E2=80=98XF86ScreenSaver=E2=80=99 codes instead.

I tried dozens of things, both in my system configuration and by=20
running random stateful xkb commands (naughty), and managed to=20
=E2=80=98fix=E2=80=99 the bug without ever finding the cause (very naughty).

I think I was looking for it in all the wrong places.  Something=20
goes wrong before the kernel even boots.  Here's my=20
keyboard-layout:

 (keyboard-layout
  (keyboard-layout
   "us" "dvp"                           ;=20
   kaufmann.no/roland/dvorak
   #:model "thinkpad"                   ; pc104, pc105, thinkpad,=20
   =E2=80=A6
   #:options                            ; list of XKB Option=20
   strings
   (list ""                             ; unset all inherited=20
   options
         "caps:shiftlock"               ; Shift Lock affects all=20
         keys
         "shift:breaks_caps"            ; Shift cancels Caps Lock
         "compose:102"                  ; next to left Shift on=20
         pc105
         "lv3:ralt_switch"              ; key to choose 3rd level
         "nbsp:level3n"                 ; nbsp @lv3, thin nbsp=20
         @lv4
         "numpad:shift3"                ; Num Lock: Shift chooses=20
         lv3
         "kpdl:semi"                    ; key pad semicolon @lv3
         "misc:typo"                    ; add extra typographic=20
         chars
         "ctrl:swapcaps"                ; onwards for great Emacs
         "terminate:ctrl_alt_bksp")))   ; zap X just to watch it=20
         die

Here's what works just fine:

   (service slim-service-type
            (slim-configuration
             (xorg-configuration
              (xorg-configuration
               (keyboard-layout keyboard-layout)
               =E2=80=A6

However, today I tried to (re-)add it to GRUB, too, and ended up=20
writing the following comment:

 (bootloader
  (bootloader-configuration
   (bootloader grub-efi-bootloader)
   ;; XXX Strange bug: GRUB can read the LUKS passphrase, but=20
   afterwards (at
   ;; the menu screen) no longer responds to key presses.  Even=20
   stranger: it
   ;; makes my X230T's backspace key send =E2=80=98XF86ScreenSaver=E2=80=99=
s even=20
   on Linux.
   ;; (keyboard-layout keyboard-layout)
   (target "/boot/efi")
   (timeout 1))))

This is 100% reproducible.

I'll try to narrow it down a bit, but the combination of losing my=20
actual work-workstation (which is also my funstation) while=20
entering my passphrase 5 times, every time, makes that an=20
unpleasant and tedious affair.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXM8O8wAKCRANsP+IT1Vt
eYmSAP4rXKc9voPyuNiA9NLtt2DL62q1y6ySXB7CLb4uvSeTkgD+Poe0/skMRf1o
rC/MXJ4mlXms0yjgFUtU7cYpQfVY5A4=
=huNA
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Tobias Geerinckx-Rice <me@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#35583; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.