From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2Hb3GO6BiGBbQQAAgWs5BA (envelope-from ) for ; Tue, 27 Apr 2021 23:28:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oLqkFO6BiGBJNgAA1q6Kng (envelope-from ) for ; Tue, 27 Apr 2021 21:28:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 974DE154C1 for ; Tue, 27 Apr 2021 23:28:13 +0200 (CEST) Received: from localhost ([::1]:49472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbVFc-0001zQ-OL for larch@yhetil.org; Tue, 27 Apr 2021 17:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbVFS-0001y2-D6 for bug-guix@gnu.org; Tue, 27 Apr 2021 17:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lbVFR-0003zY-Kg for bug-guix@gnu.org; Tue, 27 Apr 2021 17:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lbVFR-00005N-IH for bug-guix@gnu.org; Tue, 27 Apr 2021 17:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#39341: Installer using 100% of a CPU core Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 27 Apr 2021 21:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39341 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "pelzflorian (Florian Pelz)" Received: via spool by 39341-done@debbugs.gnu.org id=D39341.161955882832723 (code D ref 39341); Tue, 27 Apr 2021 21:28:01 +0000 Received: (at 39341-done) by debbugs.gnu.org; 27 Apr 2021 21:27:08 +0000 Received: from localhost ([127.0.0.1]:51072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbVEZ-0008Vj-QJ for submit@debbugs.gnu.org; Tue, 27 Apr 2021 17:27:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lbVEW-0008VC-Dl for 39341-done@debbugs.gnu.org; Tue, 27 Apr 2021 17:27:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59736) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbVER-0003KM-4b; Tue, 27 Apr 2021 17:26:59 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=58218 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lbVEB-0001zQ-AX; Tue, 27 Apr 2021 17:26:47 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87a766u9et.fsf@gmail.com> <87h7juf3dk.fsf@gnu.org> <20210426143225.fljn47jmgj5hhmra@pelzflorian.localdomain> <87fszdav22.fsf@gnu.org> <20210426161459.rfgxir2n5ya73vmv@pelzflorian.localdomain> <878s546mhs.fsf@gnu.org> <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?UTF-8?Q?Flor=C3=A9al?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 27 Apr 2021 23:26:41 +0200 In-Reply-To: <20210427123209.jyqw77edsbt5qhdj@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Tue, 27 Apr 2021 14:32:09 +0200") Message-ID: <8735vbwh9q.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mathieu Othacehe , 39341-done@debbugs.gnu.org, Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619558893; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=98LoMNPZz91NTHVpQCwZHDmJb7flVJz4gHU/K0jJaq8=; b=BFVtbknLVnNOxtCx3DciS5FXnXN36rjyT3vncUp5zKHvgeUeHKgye/vvOoR5t2A7QMvixn CC0OSo3cml0GUyBARUTUNPFN77dN5uFvPqLfH7Mxm1QNfgBeMXg7rIp/MSadqt5R7wp1hg XDbSAjD3OAcpMMuopKuJgmVBJnO7ntNvMp4XtCYkplyvqGNf/tHRbaBiRzZeEWXPlBhuQb XrhrZVTkWRVbefRzBRA6DRVCkIULbZZkUftbhaBl4TMqNb4kayaQy2sGwsABwlaadCufz8 eKUpjs/E/Wk9GJYfv86NUNSMoI1pNBw1yxit/uNZiW2i03mSwK9bzONidltu3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619558893; a=rsa-sha256; cv=none; b=P10gcgVkmtniPkkE4tc5cuCE3jNS7uUGzWRUYXPQvdS6hg1Evm6nnxKmYdtp6yXhcKeQhe +0mw7thilVXWmjmyPXlO6vWvnxyzxHlWgDzZ5Gwh9LoaUbxQGfqsHbrqrQvZAaDQNL/oqH kHlbK+emZhJd1rrSbsu9b/sbb6tScfaS1TrmAu9CBfqUu2Ljbijun0Bkn4QGmD2gip9iZx PwCY9eS7sq6DOvwy7VfMVy+B1fQ9crK3LnCgmPUf9gabpRr/oV2rmRjKyZpmVOqzFmf/xE SpGY98GJH6jvRbWavA1RhgbDLmXe37xTo9sjuyzV3b00bKaIe4NoF0tE9JppMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 974DE154C1 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: M4I3Nmlysh5U Hi, "pelzflorian (Florian Pelz)" skribis: > On Tue, Apr 27, 2021 at 12:38:23PM +0200, Ludovic Court=C3=A8s wrote: >> What do you mean by =E2=80=9Cfails on real hardware=E2=80=9D? That the = keyboard layout >> is unchanged? > > Yes. > > >> Is there anything in /var/log/messages > > No, nothing out of the ordinary, only the installer pages I went > through. > >> or wherever kmscon >> writes its logs? > > I try with > > diff --git a/gnu/services/base.scm b/gnu/services/base.scm > index 24b3ea785b..0eff24828c 100644 > --- a/gnu/services/base.scm > +++ b/gnu/services/base.scm > @@ -2330,6 +2330,7 @@ This service is not part of @var{%base-services}." >=20=20 > (define kmscon-command > #~(list > + #$(file-append strace "/bin/strace") "-o" "/var/log/kmscon-o= ut" "-f" > #$(file-append kmscon "/bin/kmscon") "--login" > "--vt" #$virtual-terminal > "--no-switchvt" ;Prevent a switch to the virtual terminal. I tried this in =E2=80=98guix system vm gnu/system/install.scm=E2=80=99. I= proceed like so: 1. after the installer=E2=80=99s welcome screen I choose French layout; 2. the next dialog is the host name, which is where I confirm I really got French layout; 3. from there I press F1, choose German layout, confirm by typing into the host name dialog that I got German layout; 4. I repeat step #3 with a variety of layouts. Changing layouts there just works and is instantaneous. (Note that this only changes the layout of kmscon, so tty3 & co. are unaffected.) The strace log shows this when changing layouts (FD 17 corresponds to /tmp/kmscon-165-keymap-update, the FIFO node): --8<---------------cut here---------------start------------->8--- 165 epoll_wait(3, [{EPOLLIN, {u32=3D17731792, u64=3D17731792}}, {EPOLLIN|= EPOLLHUP, {u32=3D18285248, u64=3D18285248}}, {EPOLLIN, {u32=3D17639536, u64= =3D17639536}}], 32, -1) =3D 3 165 epoll_wait(12, [{EPOLLIN, {u32=3D17678528, u64=3D17678528}}], 32, 0) = =3D 1 165 read(20, "\33[5;22H\33[44m\33[K\33[6;22H\33[K\33[7;22H"..., 16384) = =3D 1657 165 read(20, 0x10f6c28, 16384) =3D -1 EAGAIN (Resource temporarily= unavailable) 165 read(17, "p", 1) =3D 1 165 read(17, "c", 1) =3D 1 165 read(17, "1", 1) =3D 1 165 read(17, "0", 1) =3D 1 165 read(17, "5", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "f", 1) =3D 1 165 read(17, "r", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "\0", 1) =3D 1 165 read(17, "", 1) =3D 0 165 stat("/gnu/store/m734r6j7g74x9k74sgjb8835pg7dnqbk-libxkbcommon-1.0.3/= etc/xkb", 0x7fff179314b0) =3D -1 ENOENT (No such file or directory) 165 stat("/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboard-config-2.= 31/share/X11/xkb", {st_mode=3DS_IFDIR|0555, st_size=3D4096, ...}) =3D 0 [...] 165 openat(AT_FDCWD, "/gnu/store/qz3zdrz12rxawlkvah9qjhjyf6fh1v98-xkeyboa= rd-config-2.31/share/X11/xkb/symbols/inet", O_RDONLY) =3D 22 165 fstat(22, {st_mode=3DS_IFREG|0444, st_size=3D64040, ...}) =3D 0 165 mmap(NULL, 64040, PROT_READ, MAP_SHARED, 22, 0) =3D 0x7f50d23b5000 165 brk(0x12bb000) =3D 0x12bb000 165 munmap(0x7f50d23b5000, 64040) =3D 0 165 close(22) =3D 0 165 epoll_ctl(3, EPOLL_CTL_DEL, 17, NULL) =3D 0 165 close(17) =3D 0 165 getpid() =3D 165 165 unlink("/tmp/kmscon-165-keymap-update") =3D 0 165 mknod("/tmp/kmscon-165-keymap-update", S_IFIFO|0700) =3D 0 165 openat(AT_FDCWD, "/tmp/kmscon-165-keymap-update", O_RDONLY|O_NONBLOCK= ) =3D 17 165 epoll_ctl(3, EPOLL_CTL_ADD, 17, {EPOLLIN, {u32=3D19410896, u64=3D1941= 0896}}) =3D 0 --8<---------------cut here---------------end--------------->8--- The last lines show that we delete the FIFO from the poll set, close the FIFO, recreate it, and re-add it to the poll set. So for me it works exactly as intended. Do you have a scenario I could follow to try to reproduce the problem? Thanks, Ludo=E2=80=99.