VirtualBox 6 - Display Resolution
-
- Volunteer
- Posts: 708
- Joined: 3. Mar 2015, 07:27
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Linux, macOS, Windows
VirtualBox 6 - Display Resolution
I have a 2017 iMac 5K 27. The display resolution is set to 'Default' in System Preferences. This gives an effective display size of 2560x1440.
VirtualBox 6 seems to be ignoring this setting and displaying the VM window as tho the display was set to its maximum resolution, i.e. 3200x1800, yielding very small windows and content (for my eyes anyway).
On VirtualBox 5 this is not a problem - the windows are scaled according to the System Preferences setting.
VirtualBox 6 seems to be ignoring this setting and displaying the VM window as tho the display was set to its maximum resolution, i.e. 3200x1800, yielding very small windows and content (for my eyes anyway).
On VirtualBox 5 this is not a problem - the windows are scaled according to the System Preferences setting.
- Attachments
-
- VBox.log.zip
- (32.73 KiB) Downloaded 67 times
-
- Volunteer
- Posts: 708
- Joined: 3. Mar 2015, 07:27
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Linux, macOS, Windows
Re: VirtualBox 6 - Display Resolution
... and I have since figured out that I need to set the Display Scale-factor to 200% to restore the pre-6.0.0 behaviour. Should have read the manual - sigh.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6 - Display Resolution
Or you can go to the VirtualBox Preferences and adjust the "Global" scale factor under Display, and avoid doing that on a per VM basis.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Volunteer
- Posts: 708
- Joined: 3. Mar 2015, 07:27
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Linux, macOS, Windows
Re: VirtualBox 6 - Display Resolution
Nice idea in in theory. In practice, it does not work. The global setting seems to be ignoredsocratis wrote:Or you can go to the VirtualBox Preferences and adjust the "Global" scale factor under Display, and avoid doing that on a per VM basis.
- Attachments
-
- VBox.log.zip
- (28.8 KiB) Downloaded 33 times
-
- Windows-10.vbox.zip
- (2.22 KiB) Downloaded 44 times
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6 - Display Resolution
That's because you've already edited/changed the per VM option:granada29 wrote:The global setting seems to be ignored
I'm not sure how this is handled at this point. In theory, if the per-VM matches the global, the per-VM setting should get removed from the .vbox file. Not sure if it does or not.[color=#A00000]Windows-10.vbox[/color] wrote:<ExtraDataItem name="GUI/ScaleFactor" value="1"/>
The way I do it is to close all VirtualBox processes and search my VM folder recursively for all "ScaleFactor" instances, for all .vbox files, with a text editor that can actually do such a thing (TextWrangler on OSX). I then remove all instances of the "ScaleFactor" from the vbox files, thus "resetting" the per-VM settings to its global setting.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Volunteer
- Posts: 708
- Joined: 3. Mar 2015, 07:27
- Primary OS: Mac OS X other
- VBox Version: OSE other
- Guest OSses: Linux, macOS, Windows
Re: VirtualBox 6 - Display Resolution
Oh well - I think it has to be a GUI bug then. I would expect that resetting the local scale factor to "1" should just remove that <ExtraDataItem>. I am pretty sure the developers don't really want us to be attacking their xml with a text editor.socratis wrote: That's because you've already edited/changed the per VM option:I'm not sure how this is handled at this point. In theory, if the per-VM matches the global, the per-VM setting should get removed from the .vbox file. Not sure if it does or not.[color=#A00000]Windows-10.vbox[/color] wrote:<ExtraDataItem name="GUI/ScaleFactor" value="1"/>
Thanks for the help.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6 - Display Resolution
Do you know how complicated getting the logic right is? Multiple real monitors, each one with its own scale factor. Some HiDPI some not. Multiple virtual screens per VM, each one with its own scale factor. Some actually being moved between real monitors (HiDPI and not) and respecting all the scaling. Convoluted? An understatement!
Plus, it's really the first release that really has tried to tackle the problem, I expect that such issues will be ironed out over time.
The fact is that there is no easy way right now to remove the per-VM scale factor, if it has been set at least once. Maybe a "Reset to defaults" button in the VM Settings » Display could do just that. BTW, the default is not always a scale factor of "1", if I set mine to "1", the effective screen size is half of what I'd expect it to be, for me the default general scale factor is "2"...
Plus, it's really the first release that really has tried to tackle the problem, I expect that such issues will be ironed out over time.
The fact is that there is no easy way right now to remove the per-VM scale factor, if it has been set at least once. Maybe a "Reset to defaults" button in the VM Settings » Display could do just that. BTW, the default is not always a scale factor of "1", if I set mine to "1", the effective screen size is half of what I'd expect it to be, for me the default general scale factor is "2"...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6 - Display Resolution
Just as "macandroid" reminded me in a similar thread, I've opened a ticket for this, #18303: No way in the GUI to reset the per-VM scale factor to follow the global one. Subscribe to the ticket (by adding a simple comment) if you want to see its progress.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: VirtualBox 6 - Display Resolution
Removing this line
doesn't change anything in my tests. The global scale factor still has no effect, the window is equally scaled on either monitor, which means it is tiny on the retina display, despite having it set to 200% in the global preferences.
Further if you ever open the settings of a VM and leave them with OK (no need to change anything!), the setting re-appears. So you need to remove that line again every time you make a change to the config or just have a look at it, unless you leave them with Cancel.
It also re-appears if you ever move the VM window between monitors, which is the most prominent case while you want the global setting to apply as if you always only use it one specific monitor, then you can as well change the VM setting, which at least does apply.
Code: Select all
<ExtraDataItem name="GUI/ScaleFactor" value="1"/>
Further if you ever open the settings of a VM and leave them with OK (no need to change anything!), the setting re-appears. So you need to remove that line again every time you make a change to the config or just have a look at it, unless you leave them with Cancel.
It also re-appears if you ever move the VM window between monitors, which is the most prominent case while you want the global setting to apply as if you always only use it one specific monitor, then you can as well change the VM setting, which at least does apply.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: VirtualBox 6 - Display Resolution
You haven't shut down VirtualBox and its related processes, that's why. If VirtualBox is open, you can't be editing the .vbox files live, they're ignored, and they're reverted back once you close VirtualBox. If you want to remove that scaling factor, you do it from the CLI, preferably when VirtualBox isn't running:TGOS wrote:if you ever open the settings of a VM and leave them with OK (no need to change anything!), the setting re-appears
VBoxManage setextradata global GUI/ScaleFactor VBoxManage setextradata "<YourVM>" GUI/ScaleFactor
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.