Page 1 of 1
Wrong resolution and distorted fonts on 4k display (#17627)
Posted: 15. Mar 2018, 23:01
by MrOSE
[ModEdit; related ticket: #17627: Unconditional upscaling of display on HIDPI systems]
Hi,
I am using Virtualbox on a linux system equipped with a 4k display running KDE (with a scaling-factor of 1.4).
Everything works well, except for VirtualBox - which somehow tries to scale the emulated display and even reports wrong resolution to the guest OS (despite scaling is set to 100% in the VM's preferences).
Please see the attached screenshot - this was a maximized VirtualBox window on the 3840x2160 display, yet the guest OS reports only a fraction of that.
Any hints about how to solve this issue are highly appreciated.
best regards, Clemens
Re: Wrong resolution and distorted fonts on 4k display
Posted: 15. Mar 2018, 23:08
by socratis
MrOSE wrote:with a scaling-factor of 1.4 ... 3840x2160 display
With a scaling factor of 1.4, your display becomes:
- 3840 / 1.4 = 2743
2160 / 1.4 = 1542
And if you take out ~100 px for taskbar/menubar/window decorations, that should be ~ 1442.
Re: Wrong resolution and distorted fonts on 4k display
Posted: 16. Mar 2018, 00:02
by MrOSE
With a scaling factor of 1.4, your display becomes
Sure, but the question is - how can I avoid image upscaling by VirtualBox, as the OS I run is already high-dpi capable.
The "scale factor" setting in VM settings is already at 100% - the lowest possible value the GUI allows.
Furthermore I don't understand why VirtualBox is upscaling the display using simple image upscaling - this way it is almost guaranteed to destroy text in a way to be almost unreadable (just take a look at the screenshot).
Best regards, Clemens
Re: Wrong resolution and distorted fonts on 4k display
Posted: 4. Apr 2018, 14:00
by MrOSE
I am rather sure this is a bug in VirtualBox. It unconditionally applies bitmap-scaling to the virtual display (and limiting the slider in the VM preferences to 100% artificially removes the possibility to counteract that behaviour):
https://www.virtualbox.org/ticket/17627
As this one is really bothersome I wonder - do VirtualBox devs accept pull requests?
Br, Clemens
Re: Wrong resolution and distorted fonts on 4k display
Posted: 4. Apr 2018, 21:04
by HansComps
Had the same issue on Arch with Plasma; but included some other Qt application artefacts.
Update and reboot later and everything is back to normal. I suspect a Qt libs and VirtualBox version mismatch.
Re: Wrong resolution and distorted fonts on 4k display
Posted: 6. Apr 2018, 08:32
by MrOSE
HansComps wrote:Had the same issue on Arch with Plasma; but included some other Qt application artefacts.
Update and reboot later and everything is back to normal. I suspect a Qt libs and VirtualBox version mismatch.
Thanks for the hint! On my Fedora-27 system the issue is not fixed - but indeed after updating less worse.
Now the pixel-based scaleup of the display seems to be performed with at least billinear scaling - so fonts stay at least readable (but blurry).