From: "Ludovic Courtès" <ludo@gnu.org>
To: 57068@debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: bug#57068: Resizing mcron job in vm-image.tmpl interferes with settings
Date: Tue, 09 Aug 2022 11:47:17 +0200 [thread overview]
Message-ID: <87edxp92ai.fsf@gnu.org> (raw)
In-Reply-To: <87r11p932e.fsf@inria.fr> ("Ludovic Courtès"'s message of "Tue, 09 Aug 2022 11:30:33 +0200")
Ludovic Courtès <ludo@gnu.org> skribis:
> Commit 945ad48cd8029fa77a643e00c7fd350e98cacca0 added an mcron job to
> ‘vm-image.tmpl’ that resets screen size every second. I’m don’t 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’s a third problem that I initially thought was unrelated:
3. The mcron job starts running before ‘xorg-server’ is up, and that
can cause Xorg to fail to start.
Namely, if you run the command above, you’ll see that Xorg starts and
fails typically a few times in a row, until it eventually succeeds. In
/var/log/messages, you can see that the ‘xorg-server’ process 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 ‘xorg-server’
service successfully starts. It’s 100% reproducible for me.
I suppose the ‘xrandr’ command can kick in too early while Xorg is
initializing, causing it to exit.
Ludo’.
next prev parent reply other threads:[~2022-08-09 9:48 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 [this message]
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
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=87edxp92ai.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=57068@debbugs.gnu.org \
--cc=maxim.cournoyer@gmail.com \
/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).