From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:5f26::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gH6aKlmsj2XAFwAAkFu2QA (envelope-from ) for ; Sat, 30 Dec 2023 06:36:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +KpOJ1msj2VJkAAAqHPOHw (envelope-from ) for ; Sat, 30 Dec 2023 06:36:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Ohzl4e3u; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1703914585; 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-to: 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=Gsodhjveauf/idCKHYgEtb43qeQ4oB5LkNfL43KVFV0=; b=WRFRJGgFszUWbYJopiq3CvfC4pABicS6wrOhZlHupFQEuWNdjgE9/waUycdbvUZImddfQN dQ0B3zLyLCuYyTR2WEzCRDNYq7Tn9q4hvwvfL3z1OY+G5Gkg3i7arQcik16Ts6QoBrpy9S EucmmUky/4/9B/6lPnwRkKMeoBrL1u06jFYrYbVCLdl4CJCgmfzY7DtnY7ubB+IKhK+v/W MM/h7ooxL18l47UQxaWAOGkpoS24tayOJ0YmqugBxr+T4wU/IVRwedUXsbt5TMom+8lkKs 3XycKDV8rqmux94Vl/GoG6OrqLizQVQBswXgo/YEWOpEU//vK6f6HE2ou539Kg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Ohzl4e3u; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1703914585; a=rsa-sha256; cv=none; b=EdQ15BMMfTebNfAKcNNEBHttK7mP2vYR3r23mEARaj1Dz/AHiFmGQCNJEHz+vM7BqjiAXw urk/+2EFrWvI2642SSnPqS7NLSLBfQ6Nob/lUfh6ymh30snxOGXMr+i0TXDxV4qrPxr1v1 UfobDoV2Xb34i+FYB8+uZ1PFBsJZn1it+Z+fKfWBSmb5t2CY9nN9a7zZ/18p9hHlhSeYsg OsWRXTML5GqG6NAzeXBsaUxMY6lZWy0X3wXK9GJ5qUftrph1AW8GdjsfNMBpOszSygUlpS cMu4h/lrcpNdXzSc3Q9K58O/1S2cknEmwokS5rHOd1VdWlUJZ7zFvBmg72jhOg== 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 78E1612EB8 for ; Sat, 30 Dec 2023 06:36:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJS0x-0005h0-0y; Sat, 30 Dec 2023 00:36:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJS0v-0005gR-S4 for bug-guix@gnu.org; Sat, 30 Dec 2023 00:36:01 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJS0v-0002CT-Jw for bug-guix@gnu.org; Sat, 30 Dec 2023 00:36:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJS0v-0004AR-T5 for bug-guix@gnu.org; Sat, 30 Dec 2023 00:36:01 -0500 Subject: bug#57068: Resizing mcron job in vm-image.tmpl interferes with settings Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Sat, 30 Dec 2023 05:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 57068 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Mathieu Othacehe , 57068-done@debbugs.gnu.org Mail-Followup-To: 57068@debbugs.gnu.org, maxim.cournoyer@gmail.com, ludo@gnu.org Received: via spool by 57068-done@debbugs.gnu.org id=D57068.170391452315968 (code D ref 57068); Sat, 30 Dec 2023 05:36:01 +0000 Received: (at 57068-done) by debbugs.gnu.org; 30 Dec 2023 05:35:23 +0000 Received: from localhost ([127.0.0.1]:42834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJS0I-00049T-Vj for submit@debbugs.gnu.org; Sat, 30 Dec 2023 00:35:23 -0500 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]:47175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJS0H-00049G-9i for 57068-done@debbugs.gnu.org; Sat, 30 Dec 2023 00:35:21 -0500 Received: by mail-qt1-x82b.google.com with SMTP id d75a77b69052e-427941528d8so57907171cf.2 for <57068-done@debbugs.gnu.org>; Fri, 29 Dec 2023 21:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703914515; x=1704519315; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Gsodhjveauf/idCKHYgEtb43qeQ4oB5LkNfL43KVFV0=; b=Ohzl4e3uczzXNww4XoOm27Q/piuTyVa42QZyQ35ptorW9BQg9oKpRUpeiwWDiciyp+ rktGsEYKCk7N35ErvweIGDgzFvjVKjkvXmx0hB2UWX3xnHmunzbvVvyUqlPMRr4W3YTt ICAfj8lvX5+e1l/BYWhvATX4ij3wAjr9u/9AYIyV0Xty2bg1Ro8X5I2+gPMM6hCyt+2B dmWlwzCGJnQuG/meEZ7wknrdhmCgidSYcNyxIXmyKfmouaJrt9IkImfsYpnF4Cd95Y/n nxa/BGFk9XJBGqyJ7qnYuFfkj5KAdFX9G235hpk0OLZA3kE6hCLFLZAbLoMMPltVhrIY YCFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703914515; x=1704519315; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Gsodhjveauf/idCKHYgEtb43qeQ4oB5LkNfL43KVFV0=; b=R62gTIXIZRdzzIOwiQmxAcUJ7SDq20VqRj5Al6bfm/HzgmQOD/D3vgjZj1aobT0/7i CmCnslwxv+ytkjMqmdbPflYbu91F6zc9r1Cg6T12I4d+vj2LXPdm1mZBqrPsfoXj9INt Vf/09wFVi1Dnu9TWNOz1TFsRo81sY7CAgTufbBGMYpeXz8U7vBCDQih70/3L7pGQnxRk waN7R+aCEQ3Xu6iqd9SFAsmKlYAIvt9m5KowjPC29kfTYWzjHj4qQ/L0Qz0xRuXz059j hyBNh3kT/Wl8jWZXCvKKzCAUDsXjXWHJr0bo+NPbz6w1J10Ey2Law9ay12TAEiselscW E6xg== X-Gm-Message-State: AOJu0Yz+yDQ1lKu49NOu3/NiFHuWFUCMYH2j6tWjxZICb56JNtFoDB2b 8jk6XkXfF6UmFJ+75osFfOzYD/YLjqIbeg== X-Google-Smtp-Source: AGHT+IEyQcdk5GLKKGHyHEI62yZgR7mbJP0GtGu91MJXJojMsj29tj119oRTlvHUqco2IV2Pr23mGQ== X-Received: by 2002:a05:622a:34d:b0:425:4043:1da9 with SMTP id r13-20020a05622a034d00b0042540431da9mr15054225qtw.124.1703914515251; Fri, 29 Dec 2023 21:35:15 -0800 (PST) Received: from hurd (dsl-152-202.b2b2c.ca. [66.158.152.202]) by smtp.gmail.com with ESMTPSA id cr9-20020a05622a428900b00427b3271ab4sm8239924qtb.41.2023.12.29.21.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 21:35:14 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <87pme4qe2u.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 03 Nov 2022 15:59:05 +0100") References: <87r11p932e.fsf@inria.fr> <87v8r0nbm2.fsf@gmail.com> <87sfm3vzgl.fsf@gnu.org> <87v8nylgig.fsf@gnu.org> <87pme4qe2u.fsf@gnu.org> Date: Sat, 30 Dec 2023 00:35:13 -0500 Message-ID: <87o7e8qmlq.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.19 X-Spam-Score: -4.19 X-Migadu-Queue-Id: 78E1612EB8 X-TUID: sUyu9EskQGMh Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi, > > Mathieu Othacehe skribis: > >>> Oh, I wasn=E2=80=99t aware of that, that should certainly be fixed. (I= fixed a >>> similar issue in GNOME some years ago, and I=E2=80=99m confident it=E2= =80=99ll be easier >>> to fix in Xfce because it doesn=E2=80=99t have all those layers and dae= mons and >>> JavaScript and DBus interfaces. :-)) >> >> Fixing this behaviour in Xfce seems like the right thing to do to >> conserve SPICE support and fix the QEMU resizing issue. >> >> This also looks like a large development, so I propose to unblock the >> release with this ticket. > > I agree, but it would be nice to find another workaround: invoking > xrandr every second is undesirable. It interferes with user settings > and degrades performance, whether or not one uses SPICE. > > Can the guest determine whether SPICE is being used? That would allow > us to make the hack conditional. I've discovered we could use udev to invoke xrandr only on resizing events, crafted a custom Guile script, and used it to fix this with commit 1d4db94bebba ("gnu: vm-image.tmpl: Improve SPICE dynamic resizing."). I've tested the automatic resizing works with virt-manager and GNOME Boxes, and that nothing happens when using QEMU (the script still runs, consuming 14 MiB of RSS about, but that's it). --=20 Thanks, Maxim