foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.59k stars 1.14k forks source link

Ultrawide Resolution #302

Open geilername opened 4 years ago

geilername commented 4 years ago

Hello, I tried using qxl and std to get 5120x1440 but none of them worked. I'd like to either get 5120x1440 or 2 x 2560x1440. I can select up to 8kx4k but no ultrawide (only16:9)

ghost commented 4 years ago

Try to follow this guide, and let me know the results.

geilername commented 4 years ago

That didn't work, I managed to get it working by changing 2 files from ovmf (adding my resolution) and recompile it. After that it works like a charm using qxl.

ghost commented 4 years ago

Awesome!

niklasgrewe commented 4 years ago

@geilername could you show me what did you do in detail? I want to do the same. Is your macOS VM fast and smooth despite the high resolution? Can you work with it?

geilername commented 4 years ago

@geilername could you show me what did you do in detail? I want to do the same. Is your macOS VM fast and smooth despite the high resolution? Can you work with it?

well it kinda works but my vm runs on proxmox and i got some screen tearing and lags. I think this is a VNC performance problem (despite I got a 10gbit connection to the server).

I will post my changes as soon as I can :)

niklasgrewe commented 4 years ago

@geilername thanks ah ok i wanted to do this with QXL. Do I have to set anything else here to get UltraWide Resolution working smooth?

geilername commented 4 years ago

pull the current code: https://github.com/tianocore/edk2

then you just need to add your custom resolution in 2 places and recompile.

Gop.c Initialize.c

for me building worked with following command: stuart_build -c OvmfPkg/PlatformCI/PlatformBuild.py TOOL_CHAIN_TAG=GCC5 -a X64

after that your OVMF image is found under Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd

you need to select your resolution in the uefi configuration of ovmf. if you dont see your resolution over there you need to increase your video memory.

paul-vd commented 3 years ago

@geilername could you be a little more specific regarding the building steps, then what to do with the OVMF image?

when I try to build I get the following out

Error List

  • "Dependency 'mu_nasm' is not met!" from ~/.local/lib/python3.8/site-> packages/edk2toolext/environment/self_describing_environment.py:282
  • "Dependency 'iasl' is not met!" from ~/.local/lib/python3.8/site-> packages/edk2toolext/environment/self_describing_environment.py:282

Any chance someone could help me compile 5120x1440 ? :pray: