-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Dynamic resizing of the display size #115
Comments
I have the same issue as well. I know a container is meant to be stateless, but for my use case for the desktop that isn't that handy. |
I've got another one container desktop running, named Kasm web which has a working resize and is also based on noVNC and works with xrandr. Maybe we can peek there what they did? https://hub.docker.com/u/kasmweb You can also easily try it on their website: |
I implemented resize when I worked at QNAP that is not based on xrandr. You may imagine user resize browser window by drag & drop and the screen resolution must change to fit browser window size. It's not a fixed resolution such as 1920x1080, 1280x720. It may be an arbitrary size like 1234x123. So writing a fixed resoulution in X configuration is not a good choice. Alternatively, I run xvfb with a big size like 4096x3??? (4k) and a customized window manager that monitor all windows in it. When any window is out of visible range, window manager will move it to visible range. |
For me it would be great if we have an option, autosize or fixed. I'm okay with just the few fixed resolutions i use: |
@dennisvanderpool restart the docker container leads resizing xvfb. Here is my steps
In step3, it will call HTTP API api/reset?w=xxx&h=xxxx to resize |
@fcwu first of all, thanks for this great container, but I am experiencing some issues with it. I have tried to set the resolution with the RESOLUTION environment variable as it is stated in the How To, but it just simply does not work. I have tried the following things: Start: 1st attempt: 2nd attempt (after recreating the container): Is this just me, or is it really not working properly? |
@tafulop open another issue. |
I have no plan to support this by RandR, because it's possible to change size by resizing browser window. However, it's possible to change resolution without destroying container. |
I will create an endpoint |
@fcwu, thank you for this wonderful container, it fits all my Desktop needs (and I'm writing this comment from it 😁)! |
it works
|
Strange if I connect from inside the container I get
and from outside it's the same
in the nginx logs I get
|
But I'm using |
In docker compose I run
with a
|
bionic-lxqt is not rebase to the latest backend service. Then, I do git rebase but icon/theme is broken, so... |
Oh, I see 😿 |
Hi all, I could successfully use the "/resize" endpoint with the bionic image. When I updated to focal today, I noticed that "/resize" is not working. Or at least in my installation, where this is running behind traefik as reverse proxy, I receive an error message "404" from nginx. |
this is a good method |
AFAIU, the display size is calculated initially, but it the browser's window is resized later, the X desktop won't adjust (well, noVNC has an option to stretch the rendering, etc.).
Would it be possible to use RandR to perform that, along the lines of https://stackoverflow.com/a/46295657 ?
The text was updated successfully, but these errors were encountered: