From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cNGxB2Mt8mLTAAEAbAwnHQ (envelope-from ) for ; Tue, 09 Aug 2022 11:48:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AF/VB2Mt8mLvBAEA9RJhRA (envelope-from ) for ; Tue, 09 Aug 2022 11:48:19 +0200 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 EE7FCC92F for ; Tue, 9 Aug 2022 11:48:18 +0200 (CEST) Received: from localhost ([::1]:44578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLLqU-0001Q3-8F for larch@yhetil.org; Tue, 09 Aug 2022 05:48:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLLqE-0001PK-M5 for bug-guix@gnu.org; Tue, 09 Aug 2022 05:48:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52833) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLLqE-0003Za-D1 for bug-guix@gnu.org; Tue, 09 Aug 2022 05:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLLqE-0003Cj-8V for bug-guix@gnu.org; Tue, 09 Aug 2022 05:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57068: Resizing mcron job in vm-image.tmpl interferes with settings Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 09 Aug 2022 09:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 57068@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 57068-submit@debbugs.gnu.org id=B57068.166003845212121 (code B ref 57068); Tue, 09 Aug 2022 09:48:02 +0000 Received: (at 57068) by debbugs.gnu.org; 9 Aug 2022 09:47:32 +0000 Received: from localhost ([127.0.0.1]:42574 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLLpj-00039R-KL for submit@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 ) id 1oLLph-00039F-S2 for 57068@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 ) 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 ) id 1oLLpX-0004cZ-L6; Tue, 09 Aug 2022 05:47:21 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87r11p932e.fsf@inria.fr> Date: Tue, 09 Aug 2022 11:47:17 +0200 In-Reply-To: <87r11p932e.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 09 Aug 2022 11:30:33 +0200") Message-ID: <87edxp92ai.fsf@gnu.org> 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-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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1660038499; 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:dkim-signature; bh=wwnuYEysP+HLDqHaPJ7nrHZ2Fniue9WPoX+CMc8WV6E=; b=XB4YQuw59LsROaTgzs3QQJv5yFG7MYFUAaH/tpuCQ3RkV0Xi7FTzmzL1zzDm3tYQLM2kUB y4dXfTtc0IA1wtmI9aJiQKgOC1L8NOi1StzNlQUjhwLFO7NvtzmsNdUXLfvEDJ3MsCJQ0l BJZ5We2OngnQugDn0kDSKxjRjsxGvgJ85beiG8hr5muOzhwr63DtkwPYbTuSyKRItG0Ge/ Uha/COZfNJ8snx+xOSOs9GVlGERQ97fG3SUqkevozbgSjUMW7TDotZ59dL5tOL/x7bSwDG jz5LeMoYaAHs5XdNkah/snpQ9lol4jsb8kHmM32FGhv0ynMrj6M9KdY+F5LcIQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660038499; a=rsa-sha256; cv=none; b=tSLyca9tAk/jKk9IgxpAOOka7jbn0HUT5I4ZgjOAMNdz5bpDyU3ESJXlMywT1pILJ4n501 R5QbHmd/f9D6eGmHE5SUksCGK0Wb2sHBEnCLcwxl7cMqnX4uN9GV7hMkFa5OHZcX4mxLxB QvRp+oqSPZzBVZWpoN5XF+jWCDAKE4+tYh70ecNeny9sagkYAyrlq1fLyRgSrR+scZYEaC iWIa623hFX0g83Kryyh4ZWof8EUFcOIf0lPx1ut9C09zt+B3tM7nc57LhCADPSItrA7fut O/mvmksJnD3n/N07xuUGTvWL0b0dih3YG8EPZS04sW1xOxu6/dizYS8Q9i52iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HWOsoBIz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HWOsoBIz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: EE7FCC92F X-Spam-Score: -5.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 490oGoZL++0/ Ludovic Court=C3=A8s 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.