Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

2560x1080 Resolution Issue

Open dhksa opened this issue 3 years ago • 4 comments

Hi,

Thanks a lot for this great project!

After installing Big Sur with a 2560x1080px resolution, I'm using the following command to run MacOS from a persistent disk but hit issues with screen resolution:

docker run -it  \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v "/data/mac_hdd_ng.qcow2:/image" \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e SIZE=300G -e RAM=16 -e SMP=8 -e CORES=8 \
    -e GENERATE_UNIQUE=true \
    -e WIDTH=2560 \
    -e HEIGHT=1080 \
    sickcodes/docker-osx:naked

The machine started with a very low resolution(1000x1000px). After changing to -e WIDTH=1920 I was able to get 1080p no problem.

I also saw in the readme that only the following resolutions are supported, is this true or just out dated info?

Here's a few other resolutions! If you resolution is invalid, it will default to 800x600. -e WIDTH=800
-e HEIGHT=600
-e WIDTH=1280
-e HEIGHT=768
-e WIDTH=1600
-e HEIGHT=900
-e WIDTH=1920
-e HEIGHT=1080
-e WIDTH=2560
-e HEIGHT=1600 \

Thanks in advance for your help here!

Best regards!

dhksa avatar Sep 05 '21 09:09 dhksa

2560x1080 is an invalid resolution, you must use 16:9 from what I tested.

Your combination would be:

-e WIDTH=2560 -e HEIGHT=1600

sickcodes avatar Sep 05 '21 22:09 sickcodes

I'm trying to get 2560x1600 but I only get 1920x1080 it seems

triptec avatar Sep 16 '21 14:09 triptec

@triptec I was able to change to the resolution you want with the method here: https://github.com/sickcodes/Docker-OSX/issues/283

I think this issue can be closed

gronka avatar Dec 07 '21 11:12 gronka

@triptec I was able to change to the resolution you want with the method here: #283

I think this issue can be closed

Is it possible to configure a screen with 21:9 resolution (2560x1080) in sickcodes/docker-osx:ventura? I tried all the configuration alternatives in the config.v2.json file (#283), but it didn't work.

lopsbr avatar Jan 31 '23 22:01 lopsbr

Good afternoon, @sickcodes !

Would it be possible to apply the new resolution for the same Docker container ID (docker start -ai)?

gusbemacbe avatar Apr 22 '23 16:04 gusbemacbe