sickcodes / Docker-OSX

Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers.
https://hub.docker.com/r/sickcodes/docker-osx
GNU General Public License v3.0
36.2k stars 1.79k forks source link

Compatiblity with fractional scaling available for retina/HiDPI? (Wayland) #254

Open workcomplete opened 3 years ago

workcomplete commented 3 years ago

Hi thanks for this git! I'm running docker in Arch Linux on a MBA9,1 2020 with Gnome - Wayland. The resolution setting on my GDE is set to 2560x1600 scaled up to 200% using fractional scaling. When I run the following:

docker pull sickcodes/docker-osx:auto

docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e GENERATE_UNIQUE=true \ -e WIDTH=2560 \ -e HEIGHT=1600 \ sickcodes/docker-osx:auto

OSX is huge and does not fit on my screen. If I set my scaling to 100% on GDE the OSX fits but it too small to use. There is no option to change the scaling in System Preferences > Display. Dropping the resolution down makes it fit but it is too blurry to use.

sickcodes commented 3 years ago

You are using a big display right there, in the QEMU window you can zoom in and out. I'm not sure if you want it bigger or smaller?

workcomplete commented 3 years ago

Thanks for the quick reply. Zooming out works, and I can make it fit, but I have the same issue with it becoming blurry.

sickcodes commented 3 years ago

But have you tried reducing the resolution you have selected:

-e WIDTH=2560 
-e HEIGHT=1600

Personally I prefer 1600x900 as it fits on a 1920x1080 screen and I can see everything

sickcodes commented 3 years ago

Ah I see. You have 200% scaling on the desktop.

Mathematically, it should always be blurry by scaling the outside environment from what I know about the display.