Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/UTMPublic
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

scripting: expose display config#6978

Open
naveenrajm7 wants to merge1 commit intoutmapp:main
base:main
Choose a base branch
Loading
fromnaveenrajm7:script-display

Conversation

naveenrajm7
Copy link
Contributor

Fixes#6660

  • qemu display
    • All fields , except vga ram is exposed
  • apple display
    • only dynamic resolution property is exposed.
    • From GUI , the height, width and pixel of resolution is in pre-defined ratio and hence not exposed.

Both displays will have ids, which can be used to track and detach the displays.

Usage:

add_qemu_display.applescript

onrun argvsetvmNametoitem1of argvtellapplication"UTM"setvmto virtualmachinenamed vmNamesetconfigto configurationof vmsetcurrentDisplayto displaysof configsetnewDisplayto ¬          { ¬hardware:"virtio-gpu-pci", ¬              dynamicresolution:false, ¬              nativeresolution:true, ¬              upscalingfilter:"QsLi", ¬              downscalingfilter:"QsNe" ¬          }setendof currentDisplayto newDisplayset displaysof configto currentDisplay      update configurationof vmwith configend tellendrun

clear_qemu_display.applescript

onrun argvsetvmNametoitem1of argvtellapplication"UTM"setvmto virtualmachinenamed vmNamesetconfigto configurationof vm-- clear all displaysset displaysof configto {}      update configurationof vmwith configend tellendrun

add_apple_display.applescript

onrun argvsetvmNametoitem1of argvtellapplication"UTM"setvmto virtualmachinenamed vmNamesetconfigto configurationof vmsetnewDisplayto {dynamicresolution:true}-- Apple Configuration supports only one displayset displaysof configto newDisplay      update configurationof vmwith configend tellendrun

Sn0wCrack, vkorostelev, Stromweld, arranstewart, gmerlino, jackwiseman, and davidvasandani reacted with thumbs up emoji
qemu display- All fields , except vga ram is exposedapple display- only dynamic resolution property is exposed.- From GUI , the height, width and pixel of resolution is in pre-defined ratio as hence not exposed.Both display will have id, which can be used to track and ditach the displays.
@naveenrajm7
Copy link
ContributorAuthor

This is a missing piece for the automated VM buildnaveenrajm7/packer-plugin-utm#5

@davidvasandani
Copy link

@osy, can this be merged, and if not, how can we help?

@naveenrajm7, do you have a signed build that we can help test?

@osy
Copy link
Contributor

osy commentedMar 26, 2025

@davidvasandani it will be merged in the next release, which is currently blocked on us getting a Windows driver signing certificate

naveenrajm7 and davidvasandani reacted with hooray emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Scripting: Add/Update/Remove displays
3 participants
@naveenrajm7@davidvasandani@osy

[8]ページ先頭

©2009-2025 Movatter.jp