VirtualBox

Opened 5 years ago

Last modified 4 years ago

#19082 new defect

VirtualBox Manager scaled *down*, when a mix of HiDPI and non-HiDPI screens are attached

Reported by: Nuvanda Owned by:
Component: VMM Version: VirtualBox 6.0.14
Keywords: HiDPI Qt Cc:
Guest type: all Host type: Linux

Description

Steps to reproduce:

  1. Set up a machine with a mix of HiDPI and non-HiDPI screens
  2. Start virtualbox
  3. Observe failure

Expected result: The GUI of virtualbox looks normal Also acceptable: The GUI is scaled up for the HiDPI screen

Observed behavior: The GUI of virtualbox is scaled *down* by roughly a factor of two. Making the text hard to read even on a low-resolution screen. The virtual machines themselves are not impacted.

My setup: VirtualBox Version is 6.0.14 r133895 (Qt5.6.1) on Debian 10 Buster. The device is a Lenovo T490 notebook, with an internal 14" 1920x1080 (HiDPI) screen. The behavior is observed when attaching a low-res 1920*1200 external display, but not when attaching a HiDPI 3840*2160 display. The behavior occurs both with the Debian-Package, and with the distribution-agnostic installation. I am not aware of any custom configuration on my system that might impact this.

Additional notes: I have posted about this on the forums here: https://forums.virtualbox.org/viewtopic.php?f=7&t=95297. There are descriptions of similar behavior (may or may not be the same issue) here: https://forums.virtualbox.org/viewtopic.php?f=7&t=92965; and here: https://forums.virtualbox.org/viewtopic.php?f=7&t=88116. All of these are recent. I first observed this behavior after installing an update using apt, however I do not know which version I had before that, sorry.

Temporary workaround: Virtualbox can be forcibly scaled up by setting QT_SCALE_FACTOR=2, however this cannot be set globally, as it will break all other Qt-based applications. Also when this bug is not triggered (b/c only low-res or HiDPI screens are attached) the extra scaling will make everything unusably big.

Is there any log files that I should post to help reproduce this?

Change History (3)

comment:1 by Nuvanda, 5 years ago

Not sure if this helps, but the scaling down affects only the contents of the windows. The windows themselves are still created with the correct geometry. So the about box – for Example – will still have the same size it normally has, but it is now mostly empty, because the image and the text are tiny.

comment:3 by remy_arxzu, 4 years ago

Another related discussion: https://forums.virtualbox.org/viewtopic.php?f=7&t=88116

The issue is similar and adding the following line to the ~/.bashrc file worked on my machine.

export QT_AUTO_SCREEN_SCALE_FACTOR=0
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use