From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id CJ30M7cG82LWkwAAbAwnHQ (envelope-from ) for ; Wed, 10 Aug 2022 03:15:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AL3nMrcG82IA7wAAG6o9tA (envelope-from ) for ; Wed, 10 Aug 2022 03:15:35 +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 9F8BC2E4C3 for ; Wed, 10 Aug 2022 03:15:35 +0200 (CEST) Received: from localhost ([::1]:41430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oLaJq-0007bP-BL for larch@yhetil.org; Tue, 09 Aug 2022 21:15:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oLaJK-0007bH-17 for bug-guix@gnu.org; Tue, 09 Aug 2022 21:15:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oLaJJ-0007jA-NW for bug-guix@gnu.org; Tue, 09 Aug 2022 21:15:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oLaJJ-0000TO-JS for bug-guix@gnu.org; Tue, 09 Aug 2022 21:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#57068: Resizing mcron job in vm-image.tmpl interferes with settings Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 10 Aug 2022 01:15:01 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 57068@debbugs.gnu.org Received: via spool by 57068-submit@debbugs.gnu.org id=B57068.16600940791773 (code B ref 57068); Wed, 10 Aug 2022 01:15:01 +0000 Received: (at 57068) by debbugs.gnu.org; 10 Aug 2022 01:14:39 +0000 Received: from localhost ([127.0.0.1]:45563 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLaIw-0000SX-Ra for submit@debbugs.gnu.org; Tue, 09 Aug 2022 21:14:39 -0400 Received: from mail-qv1-f43.google.com ([209.85.219.43]:33533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oLaIv-0000SK-G8 for 57068@debbugs.gnu.org; Tue, 09 Aug 2022 21:14:37 -0400 Received: by mail-qv1-f43.google.com with SMTP id d1so9954639qvs.0 for <57068@debbugs.gnu.org>; Tue, 09 Aug 2022 18:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc; bh=bUr3rfGqHLocIaTHtkmP0HDfTKZEy974ziS+L8bbuHQ=; b=CwD0k+h3wE6rfqIcIpcdrJM3UsIKMiLuYtxm48Qf5WoqJhmt2B5elT3DK+1zaqdPgd PpgZvCpmsV/u98L23wdEVSpWDufKZkys4DrKiLGXMyTeap6txQOrXBgySIjdKmZ0KprA YTyvZ7iTK5BXNvDcNvScDOfo76G9RX3pWQNyDfcHPOKzC+SqSwuriEK9gU5iTtbxDCyk 5vVkl6Hp30qndROlsGgrmY5q33x72wrxEOBrPBayeqY1YvRFWNLxiFi2VHuO9JoKYACZ vJJrtX91QFssqCkdojL//xlIlDjKS71mC+53TX//ItmowZ0tSY9u1ihDqNGjofnJZT/l Rl/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=bUr3rfGqHLocIaTHtkmP0HDfTKZEy974ziS+L8bbuHQ=; b=yqqswlF88/J/2knwI80E9Rkgk1By3i1YGwdNatWpbVrlzxugSXr7PeyomfMejYGlbB 1LkLjwYn1sLxUQT0+/3TX73PZ1OrltLgVR7DkNj4rYDwWqV4cvy9yaF/vfHUOSeljsgs rVZPoj0GFGfDmdvem0rso8HgkNL98R4T1W2xji6Ovc0FBhYYmynXCf7G6ajMqdxrDjhf 24gmcQjJh2YNOad3+QzRqPMqhdzrFgwrie/4BPJ4pS9j17E4REcMOxImjgozIszNgmue ykx9/rdWfUhRw/P7rSqxXu1w1zCUU+DgHAbWf/mHrvk+iF4Dr9T5P/W3bn2xg3c6YpxK Fg9Q== X-Gm-Message-State: ACgBeo3POyCepuqweIb7m+Ga4Vt+Eo0Ze/F6Uvjit/BglrCxXk1JmCYS S03IxxLHCW9qMP+TSDIuCrY73g/STck= X-Google-Smtp-Source: AA6agR57HMdmasXbbeuATEsrNfBY2XJWoyV0Bh5MCd2jq/iN6mAw8tSTfP7sbM6yoBWZjht1kjRdIw== X-Received: by 2002:a05:6214:4005:b0:472:be5a:810d with SMTP id kd5-20020a056214400500b00472be5a810dmr22275201qvb.36.1660094071732; Tue, 09 Aug 2022 18:14:31 -0700 (PDT) Received: from hurd (dsl-10-135-11.b2b2c.ca. [72.10.135.11]) by smtp.gmail.com with ESMTPSA id w16-20020a05620a425000b006b60e1cf2c2sm12298729qko.0.2022.08.09.18.14.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 18:14:30 -0700 (PDT) From: Maxim Cournoyer References: <87r11p932e.fsf@inria.fr> Date: Tue, 09 Aug 2022 21:14:29 -0400 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: <87v8r0nbm2.fsf@gmail.com> 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=1660094135; 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=bUr3rfGqHLocIaTHtkmP0HDfTKZEy974ziS+L8bbuHQ=; b=sj+4IARr0ut3wZE+2FzBkoONVrcGDOvYvOAq53HyNnkVTOi0hXzJ9uIqaIWQM05eFWszI4 XvJrb8flVb5wPTnsCM7W8T2GQzAu8E5eRjEPXNd/azMQkiwaEB0Jw0lB10OIrskIsmDrUF 0rrFgq8FOXhbnYjy5q4udJXiihcJhpOi1I4D6vVcoHVpdKBZehuF85bra6K468h4RWHZ4N XqPDVqVPiEx6JsqiYAIHvbwKI6i9m6Pnm3ldIZJvjL0KVMbvo8ND2eTcGeKu/E9LBmF7wn alC+MvXhWBpWiWu/qJIfYaMdqCeU3970O7ekxH3S4D5FW/NrCaC1xi+VrBbMWA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1660094135; a=rsa-sha256; cv=none; b=bECIWWdcLtdsATngJUUEggiEX6y5gRedFFvr+Fdnx6L2Nw4y+q0bLikvHDBKv1zDyRmg0Z ICsPACGfiUnEOMtak09CwaLxKmkJo7+14e1tBWKTyPgGSfGq0ObUp9KAnrBotRfIg4XMZH UTqNyqR/NEi/3KOa5uLwDhXf84DUD/D6CoRaUo9AEls8Tn47thmPXlRfOysJPemrEtSAs1 g+19OaWn4LtK8OrvoNu9rBBNWH8sjvYMoaNrhCQxkjYOE1bxdo2qepALScm3p6ihsRbYH0 yXl4mqruztgtSDWVAnEQ933a9dZbyIga8cCn+Y7lt2FtOKpiUoH2bkZFfCTcdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CwD0k+h3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 4.81 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CwD0k+h3; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 9F8BC2E4C3 X-Spam-Score: 4.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: XO8QO8iNz2sc Hi Ludovic, Ludovic Court=C3=A8s writes: > 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: The vm-image.tmpl is the template we use for our graphical Guix demo QEMU image that can be downloaded from our site (https://guix.gnu.org/en/download/ -> https://ftp.gnu.org/gnu/guix/guix-system-vm-image-1.3.0.x86_64-linux.qcow2). This commit was made to allow SPICE dynamic resizing to work, as mentioned in a comment part of this commit. XFCE lacks support for it, as also mentioned in the comment (https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/142), which means a new user downloading the image and running it in a SPICE-capable viewer such as virt-manager or gnome-boxes will be dismayed that it doesn't resize as they may have come to expect from other modern distributions. > 1. Kicking in every second is inefficient. 5% on my machine, as mentioned in the commit message. The trade is still on the winning side for me (dynamic resizing is a big upgrade for the user experience in my book). > 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. OK. I didn't know this could be workable use case with the stock QEMU viewer when playing with graphical VMs. > Should we remove this workaround, possibly finding another one? I think we should use a desktop environment that is better maintained, and which works well with SPICE, without hacks, given the improvements to the user experience it provides, and given it's important that a first user encounter with Guix be smooth and shiny. GNOME could do it, at the cost of a bigger image size. There are other, perhaps worst issues with XFCE, which is that the keyboard layout switcher doesn't work, and it didn't seem trivial to fix when I looked at it. What do you think? Thanks, Maxim