New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of the nasty sleep in prepare-dvm.sh #636

Closed
marmarek opened this Issue Mar 8, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Mar 8, 2015

Reported by joanna on 20 Jul 2012 12:39 UTC

Xorg -config /etc/X11/xorg-preload-apps.conf :0 &
    sleep 2
    DISPLAY=:0 su - user -c /tmp/qubes_save_script

In case the system load is high, this might result in dispvm savefile being prepared without correct dot files, resulting in subsequent longer dispvm starts.

Perhaps we can use some while loop waiting for some Xorg-created socket in order to correctly detect when Xorg really started.

Migrated-From: https://wiki.qubes-os.org/ticket/636

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 20 Jul 2012 13:12 UTC
Also in: vm-init.d/qubes_core_appvm.

Member

marmarek commented Mar 8, 2015

Comment by joanna on 20 Jul 2012 13:12 UTC
Also in: vm-init.d/qubes_core_appvm.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Modified by marmarek on 21 Jul 2012 23:24 UTC

Member

marmarek commented Mar 8, 2015

Modified by marmarek on 21 Jul 2012 23:24 UTC

@marmarek marmarek assigned marmarek and unassigned rootkovska Mar 8, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Mar 8, 2015

Member

Comment by joanna on 22 Jul 2012 09:37 UTC
Perhaps we can attempt to start some simple x application, such as xclock or something, and check its exit code to see if X was already running?

Member

marmarek commented Mar 8, 2015

Comment by joanna on 22 Jul 2012 09:37 UTC
Perhaps we can attempt to start some simple x application, such as xclock or something, and check its exit code to see if X was already running?

@marmarek

This comment has been minimized.

Show comment
Hide comment

@marmarek marmarek closed this Mar 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment