You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Nick Couchman (Jira)" <ji...@apache.org> on 2022/04/16 23:56:00 UTC

[jira] [Closed] (GUACAMOLE-1583) Dynamic Resolution Update for vnc connections

     [ https://issues.apache.org/jira/browse/GUACAMOLE-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Couchman closed GUACAMOLE-1583.
------------------------------------
    Resolution: Duplicate

> Dynamic Resolution Update for vnc connections
> ---------------------------------------------
>
>                 Key: GUACAMOLE-1583
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1583
>             Project: Guacamole
>          Issue Type: Improvement
>          Components: guacamole-server, guacd, Terminal, VNC
>            Reporter: Felix Fischer
>            Priority: Minor
>              Labels: features
>
> I think it would be possible to dynamically update the resolution of a vnc connection to the actual browser window size by getting the inner resolution of the window using javascript like so:
>  
> {code:java}
> window.innerWidth
> window.innerHeight
> {code}
> and then setting this resolution using xrandr.
> I am unsure if it is already possible, but all you would need is a way to execute a command in the same shell as the vnc user is logged in (otherwise xrandr won't be able to access the display).
> If this was possible, you could simply execute the following commands:
> {{}}
> {code:java}
> cvt "$WIDTH" "$HEIGHT" "$REFRESH" | grep Modeline | sed "s/Modeline//" | xargs xrandr --newmode
> xrandr --addmode "$DEVICE" "$WIDTH"x"$HEIGHT"_"$REFRESH".00
> xrandr --output "$DEVICE" --mode "$WIDTH"x"$HEIGHT"_"$REFRESH".00{code}
> {{}}
>  
> and this would change the resolution of the xsession to whatever the window size was.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)