Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-e RESOLUTION=1920x1080 does nothing #136

Closed
Felix-neko opened this issue Sep 2, 2019 · 6 comments
Closed

-e RESOLUTION=1920x1080 does nothing #136

Felix-neko opened this issue Sep 2, 2019 · 6 comments

Comments

@Felix-neko
Copy link
Contributor

Hi! I've tried to use the key -e RESOLUTION=1920x1080 to set the screen resolution. Alas, the resolution didn't change:

$ xrandr -d :1
xrandr: Failed to get size of gamma for output screen
Screen 0: minimum 1 x 1, current 1853 x 953, maximum 1853 x 953
screen connected 1853x953+0+0 0mm x 0mm
   1853x953       0.00* 

Can you tell me, how to fix it?

@evanesoteric
Copy link

Works for me:

$ docker run -p 6080:80 -e RESOLUTION=1920x1080 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc

root@b0385a3ca922:~# xdpyinfo | grep dimensions
    dimensions:    1920x1080 pixels (488x274 millimeters)

@Felix-neko
Copy link
Contributor Author

Hmm... I'm using the container in slightly other way.

I have run the container in graphical mode first time (in browser), made some changes, deployed some additional software -- and saved it as binary image to use further.

After that it memorized the resolution of my browser and if I'm trying to re-run the container in other resolution with -r RESOLUTION key it does not help.

@Felix-neko
Copy link
Contributor Author

I've also tried to use the url <container_server>:6080/resize, like it was written in #115 (comment)

I did it under other browser window with much bigger viewport (approximately, 1920 x 1050), but it also did not help: the resolution did not change.

@fcwu
Copy link
Owner

fcwu commented Sep 15, 2019

@Felix-neko
Follow this https://github.com/fcwu/docker-ubuntu-vnc-desktop/blob/develop/DEVELOPMENT.md to get the source, then modify Dockerfile, and make build image is a better way.

It may affect original mechanism If you use docker save to save the image.

@fcwu
Copy link
Owner

fcwu commented Oct 5, 2019

Any update?

@fcwu fcwu closed this as completed Oct 18, 2019
@gerroon
Copy link

gerroon commented Mar 5, 2022

and saved it as binary image to use further.

How do you do save it as binary to use it later?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants