GNU bug report logs - #57068
Resizing mcron job in vm-image.tmpl interferes with settings

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; Severity: important; Reported by: Ludovic Courtès <ludo@HIDDEN>; dated Tue, 9 Aug 2022 09:31:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Added indication that bug 57068 blocks53214 Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 57068) by debbugs.gnu.org; 9 Aug 2022 09:47:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 09 05:47:32 2022
Received: from localhost ([127.0.0.1]:42574 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oLLpj-00039R-KL
	for submit <at> debbugs.gnu.org; Tue, 09 Aug 2022 05:47:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:58902)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1oLLph-00039F-S2
 for 57068 <at> debbugs.gnu.org; Tue, 09 Aug 2022 05:47:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36416)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oLLpc-0003Qv-LN; Tue, 09 Aug 2022 05:47:24 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=wwnuYEysP+HLDqHaPJ7nrHZ2Fniue9WPoX+CMc8WV6E=; b=HWOsoBIzCTlghQPz/CrN
 0qzT3UF31oE2XUp322pqtzcpxrygNie//q466STHk8bCC5TQuq9JL27Khyh6mZUGRj/CywkmpZeml
 PN+mXDtE9DU5uh1NRoPdKDlC9m1tsBJzfaarX0r8A+Q2WBDlvhYs163ukt5NpptaHW3NMKvCJh8mb
 HSDNbTrcX9Yzowy4AX9BWdZDCSs7RyP2EYoDq3iy+DjmGB755QoX9XOKZtH08YsnV/U6VnWXsWUYZ
 kGnRkeM+eNcl+R8S65wa3agUVebfuJpVRf4Cnmx1EsXH3H4A0PBKX37epwj7ISezlK4hVauS6uiE9
 ARYLkcV8M72urA==;
Received: from [193.50.110.201] (port=52096 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1oLLpX-0004cZ-L6; Tue, 09 Aug 2022 05:47:21 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: 57068 <at> debbugs.gnu.org
Subject: Re: bug#57068: Resizing mcron job in vm-image.tmpl interferes with
 settings
References: <87r11p932e.fsf@HIDDEN>
Date: Tue, 09 Aug 2022 11:47:17 +0200
In-Reply-To: <87r11p932e.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?=
 =?utf-8?Q?'s?= message of "Tue, 09 Aug 2022 11:30:33 +0200")
Message-ID: <87edxp92ai.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57068
Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
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 (---)

Ludovic Court=C3=A8s <ludo@HIDDEN> skribis:

> Commit 945ad48cd8029fa77a643e00c7fd350e98cacca0 added an mcron job to
> =E2=80=98vm-image.tmpl=E2=80=99 that resets screen size every second.  I=
=E2=80=99m don=E2=80=99t fully
> understand the problem this was addressing, but it has two drawbacks:
>
>   1. Kicking in every second is inefficient.
>
>   2. Resetting the screen size prevents users from changing it.  For
>      example, if I run:
>
>        $(guix system vm gnu/system/examples/vm-image.tmpl) -m 1024
>
>     then go to the Xfce menu, Settings -> Display, and change the screen
>     size, I have it immediately reset back to the default value.

There=E2=80=99s a third problem that I initially thought was unrelated:

  3. The mcron job starts running before =E2=80=98xorg-server=E2=80=99 is u=
p, and that
     can cause Xorg to fail to start.

Namely, if you run the command above, you=E2=80=99ll see that Xorg starts a=
nd
fails typically a few times in a row, until it eventually succeeds.  In
/var/log/messages, you can see that the =E2=80=98xorg-server=E2=80=99 proce=
ss exits with
code 1 (without any indication of what went wrong AFAICS) and the
service gets respawned.

Now if you remove the mcron job and boot the VM, the =E2=80=98xorg-server=
=E2=80=99
service successfully starts.  It=E2=80=99s 100% reproducible for me.

I suppose the =E2=80=98xrandr=E2=80=99 command can kick in too early while =
Xorg is
initializing, causing it to exit.

Ludo=E2=80=99.




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

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


Received: (at submit) by debbugs.gnu.org; 9 Aug 2022 09:30:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 09 05:30:42 2022
Received: from localhost ([127.0.0.1]:42557 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oLLZS-0002kM-LE
	for submit <at> debbugs.gnu.org; Tue, 09 Aug 2022 05:30:42 -0400
Received: from lists.gnu.org ([209.51.188.17]:53300)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1oLLZO-0002kD-Vv
 for submit <at> debbugs.gnu.org; Tue, 09 Aug 2022 05:30:41 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39874)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1oLLZO-0004c1-10
 for bug-guix@HIDDEN; Tue, 09 Aug 2022 05:30:38 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:36254)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1oLLZN-0000vE-6w
 for bug-guix@HIDDEN; Tue, 09 Aug 2022 05:30:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to:
 references; bh=b8D/uUnevEyN9nA4rb3L7LqccN4wVXQ+H6cmMzJnfYI=; b=fmcVxSXNzOm6mT
 wSydE8Q6NUPBqaGSUiXDhq8gC2NUapw/6eztTOhAj93pecAAkFUjP8nDzdma3H4AZvRzpjav7Tpdd
 5VCt1ClEdghrCw1dyWpo/cbq29c3f+BoRZXVsNqJWfMNoWZZObzJGqQizI1Y+WBXTWLtt36wxaX1q
 6+tpB84gtNisO1z5dddE2Ymm/hQ5gJJgm2jKeZDwLuV/hB1l/QxebKCikj/rJnQWt6jZ2dW80ElE+
 01FDgRceq5fIuO7pu0V32Qw3OjBoG1kJEBtb3ki/lRWvq1WhlP5RXpi/Cf6XxW5vFqfc423OVgj+P
 1zBYMgaozvc7qecBMGwQ==;
Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=40948 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1oLLZL-000429-Iv
 for bug-guix@HIDDEN; Tue, 09 Aug 2022 05:30:36 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Resizing mcron job in vm-image.tmpl interferes with settings
X-Debbugs-Cc: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: Duodi 22 Thermidor an 230 de la =?utf-8?Q?R=C3=A9vol?=
 =?utf-8?Q?ution=2C?= jour du =?utf-8?Q?C=C3=A2prier?=
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, 09 Aug 2022 11:30:33 +0200
Message-ID: <87r11p932e.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
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: -3.3 (---)

Hello!

Commit 945ad48cd8029fa77a643e00c7fd350e98cacca0 added an mcron job to
=E2=80=98vm-image.tmpl=E2=80=99 that resets screen size every second.  I=E2=
=80=99m don=E2=80=99t fully
understand the problem this was addressing, but it has two drawbacks:

  1. Kicking in every second is inefficient.

  2. Resetting the screen size prevents users from changing it.  For
     example, if I run:

       $(guix system vm gnu/system/examples/vm-image.tmpl) -m 1024

    then go to the Xfce menu, Settings -> Display, and change the screen
    size, I have it immediately reset back to the default value.

Should we remove this workaround, possibly finding another one?

Thanks,
Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to maxim.cournoyer@HIDDEN, bug-guix@HIDDEN. Full text available.
Report forwarded to maxim.cournoyer@HIDDEN, bug-guix@HIDDEN:
bug#57068; 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: Tue, 9 Aug 2022 10:00:03 UTC

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