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

Parameter "ScalingFactor" does nothing #1083

Open
johann-petrak opened this issue Aug 27, 2020 · 4 comments
Open

Parameter "ScalingFactor" does nothing #1083

johann-petrak opened this issue Aug 27, 2020 · 4 comments
Assignees

Comments

@johann-petrak
Copy link

johann-petrak commented Aug 27, 2020

Using the Java client, VncViewer-1.10.90.jar on a HiDPI Laptop running Ubuntu 20.04, and with both Java 8.0.265 and 11.0.8. My screen resolution 2880x1620 and my Ubuntu display settings are set to scale to 200% which works for other windows, but not any of the TigerVNC windows.

I have tried --ScalingFactor=auto and --ScalingFactor=200 and various other factors larger and smaller than 100 and the window shown is always exactly the same.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@bphinz
Copy link
Member

bphinz commented Aug 27, 2020 via email

@johann-petrak
Copy link
Author

Can you please try adding “-Dsun.java2d.uiScale=200%” before -jar and see if that works?

Very cool, thanks, that did work!

@bphinz
Copy link
Member

bphinz commented Aug 27, 2020 via email

@johann-petrak
Copy link
Author

One issue seems to be that “-Dsun.java2d.uiScale=200%” apparently only really supports multiples of 100 which results in a very coarse selection of scalings.

With a recent Ubunty Unity release I think it is possible to use scalings in between as well.

I have tried RealVNC under Windows and there the scaling works even better and the window can change size with proper rescaling arbitrarily. It even adapts to dual monitor configurations with very different DPIs so that about the same portion of the monitor is used when moving it from one to the other.

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

2 participants