mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-04-27 16:45:49 +03:00
[GH-ISSUE #254] Compatiblity with fractional scaling available for retina/HiDPI? (Wayland) #173
Labels
No labels
bug
documentation
enhancement
following upstream developments
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Docker-OSX#173
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @workcomplete on GitHub (Apr 19, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/254
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 on GitHub (Apr 20, 2021):
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 on GitHub (Apr 20, 2021):
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 on GitHub (Apr 20, 2021):
But have you tried reducing the resolution you have selected:
Personally I prefer 1600x900 as it fits on a 1920x1080 screen and I can see everything
@sickcodes commented on GitHub (Apr 20, 2021):
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.
@matt22207 commented on GitHub (Jan 2, 2026):
There are mentions out there of a few different ways to add custom resolutions / HiDPI to macOS for non-apple HiDPI displays/etc, such as editing various plist files, etc. I tried a few, but the only one I got working (and the simplest) was this one:
https://github.com/waydabber/BetterDisplay
In the QEMU window, this results in a full 100% scale resolution window (which will take up twice your monitor space if you have 200% scaling enabled in your linux system prefs), and when you use QEMU's "Zoom to Fit" and Full Screen then QEMU will scale it down to fit your screen. VERY slightly blurry due to downscaling, but i would give it 95% close to being perfect.
Not 100% ideal since macOS is rendering full size, and then QEMU is shinking it down 50% to fit. It would be nice if there was some sort of better native way to do this, but not sure of anything else.
Way better than just using half resolution in the VM config and upscaling resulting in blurry fonts or getting tiny fonts at full resolution.
my TODO: