unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Mathieu Othacehe <othacehe@gnu.org>, 57068-done@debbugs.gnu.org
Subject: bug#57068: Resizing mcron job in vm-image.tmpl interferes with settings
Date: Sat, 30 Dec 2023 00:35:13 -0500	[thread overview]
Message-ID: <87o7e8qmlq.fsf@gmail.com> (raw)
In-Reply-To: <87pme4qe2u.fsf@gnu.org> ("Ludovic Courtès"'s message of "Thu, 03 Nov 2022 15:59:05 +0100")

Hi Ludovic,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi,
>
> Mathieu Othacehe <othacehe@gnu.org> skribis:
>
>>> Oh, I wasn’t aware of that, that should certainly be fixed.  (I fixed a
>>> similar issue in GNOME some years ago, and I’m confident it’ll be easier
>>> to fix in Xfce because it doesn’t have all those layers and daemons 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).

-- 
Thanks,
Maxim




      reply	other threads:[~2023-12-30  5:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09  9:30 bug#57068: Resizing mcron job in vm-image.tmpl interferes with settings Ludovic Courtès
2022-08-09  9:47 ` Ludovic Courtès
2022-08-10  4:46   ` Maxim Cournoyer
2022-08-11 10:30     ` Ludovic Courtès
2022-08-10  1:14 ` Maxim Cournoyer
2022-08-11 10:36   ` Ludovic Courtès
2022-11-01 17:40     ` Mathieu Othacehe
2022-11-03 14:59       ` Ludovic Courtès
2023-12-30  5:35         ` Maxim Cournoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7e8qmlq.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=57068-done@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    --cc=othacehe@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).