qemu_wait_screen
Blocks until a headless QEMU VM's display stops changing or times out, enabling reliable screenshots or input after VGA-only BIOS splash or boot animations.
Instructions
Block until the VM's display stops changing, or time out.
Polls screendumps every poll_interval_s and waits for stable_polls
consecutive frames that each differ from the previous one by at most
max_changed_pixels pixels (default 64: a blinking text-mode cursor flips
about 18, so identical frames never happen on a text console, while boot
output changes hundreds; use 0 to require identical frames) - the
reliable way to know a VGA-only
guest (no serial output) has finished a BIOS splash or boot animation
before you screenshot or type. For guests with serial output, prefer
qemu_wait_serial - it doesn't need a fixed number of polls to decide.
Always polls at least once, even if timeout_s is 0 or negative.
poll_interval_s must be positive.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| timeout_s | No | ||
| stable_polls | No | ||
| poll_interval_s | No | ||
| max_changed_pixels | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |