Very Big Icons After Connecting To External Screen ; Scaling Issue

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Joffrey
Posts: 1
Joined: 26. May 2018, 19:37

Very Big Icons After Connecting To External Screen ; Scaling Issue

Post by Joffrey »

Hello everyone,

I have an issue I tried really hard to solve already but didn't manage to.

I have a laptop with high pixel density (1920x1080 on 13.3") and after connecting it to a screen that has normal dpi (1920x1200 on 24") the Virtualbox icons, and guests windows are terribly big.

I've tried launching it with several scaling options but it does not work.

When I open it through terminal, it says this :
Qt WARNING: Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
QT_SCREEN_SCALE_FACTORS to set per-screen factors.
QT_SCALE_FACTOR to set the application global scale factor.

I've tried to place these options for launching but it still displays with very big icons and with non-useable guests.

Is there any way I could "reset" scaling for virtualbox to know that I am "back" on my 13" display ?

I am using Debian 9 with Gnome interface.

Thanks in advance and regards,

Joffrey
Jonah L
Posts: 2
Joined: 8. May 2019, 13:38

Re: Very Big Icons After Connecting To External Screen ; Scaling Issue

Post by Jonah L »

I am having the same issue on Linux Mint 19.1 Cinnamon edition VirtualBox 6.

FIrst it was fine, I raised my resolution to 1200x956 on a Samsung 4:3 monitor (or something like that can't remember exactly as this is on a client's machine) and at some random point after that the icon scaling is too large, and the menu is too spread out. The lower bar icons are the worst as they take up too much vertical real estate. To be clear, the virtual guest seems okay, it's just the scaling on the VirtualBox framing upper (menu) and lower (peripheral icon bar)

Can someone please tell us how to reset this or put out a bug fix? Thanks
salan
Posts: 72
Joined: 7. Jan 2014, 16:38

Re: Very Big Icons After Connecting To External Screen ; Scaling Issue

Post by salan »

Posting this here as suspect similar problem. For me on my UHD laptop (Dell xps13) using Mint19.1 cinnamon, I get 'microtext' now. It was fine until I used a dual monitor setup. The external monitor was lower res. Now on the laptop screen only the text is near 'zero point'.
"Those who don not learn from Dilbert are doomed to repeat it"
remy_arxzu
Posts: 1
Joined: 5. Dec 2020, 19:58

Re: Very Big Icons After Connecting To External Screen ; Scaling Issue

Post by remy_arxzu »

Hi, I also had very big icons with an external monitor plugged in, and the graphics were mixed up on my laptop screen.

After some digging, I found the following solution:
- adding the following line to the ~/.bashrc file (should work with other shells):

Code: Select all

export QT_AUTO_SCREEN_SCALE_FACTOR=0
- running VirtualBox from the shell (the .desktop file executes the following command, which also works from the shell).

Code: Select all

VirtualBox %U
I haven't done it yet, but a little script could replace the initial .desktop shortcut.
It would make the workaround somewhat transparent.
I haven't encountered issues with other Qt applications yet, but I don't know which ones use it on my computer.

For the record I'm running the following versions:
- VirtualBox Version 6.1.10_Ubuntu r138449
- Qt5.12.8
- On Linux Mint 20 Cinnamon

Credits go to the following thread:

Code: Select all

unix dot stackexchange dot com /questions/441509/qt-scaling-gnome
Post Reply