Setting a default VESA resolution in BIOS mode

This is for discussing general topics about how to use VirtualBox.
Post Reply
noorez
Posts: 9
Joined: 22. Sep 2010, 19:48
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows

Setting a default VESA resolution in BIOS mode

Post by noorez »

If I boot an ubuntu cd in EFI mode (and set the EFI Gop mode to 1440x900 the same as my native resolution), the grub menu immediately shows up in that particular resolution and everything else including the ubuntu desktop functions in that resolution.

However, in the traditional BIOS mode, even though I set a custom vesa resolution of the same, the initial boot screen is of a very small resolution vs when booting the cd directly on a physical machine it comes up in the correct resolution... The vga parameter only effects the terminal showing the boot information and the desktop reverts back to the smaller resolution.

Is there any way to set the default resolution to 1440x900 so that it takes effect immediately?
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Setting a default VESA resolution in BIOS mode

Post by michaln »

There is no such thing as a default VBE resolution. The guest software always chooses the resolution from a list. So you'd have to ask Ubuntu why they choose the resolution they choose.
noorez
Posts: 9
Joined: 22. Sep 2010, 19:48
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows

Re: Setting a default VESA resolution in BIOS mode

Post by noorez »

Ahh. Okay. Thanks for the clarification.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Setting a default VESA resolution in BIOS mode

Post by michaln »

I should add that EFI is a complete opposite and there is only one resolution which cannot be changed (without a chip-specific driver).
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Setting a default VESA resolution in BIOS mode

Post by socratis »

So what does the EfiGopMode do in VirtualBox?
http://www.virtualbox.org/manual/ch03.html#efividmode
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.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Setting a default VESA resolution in BIOS mode

Post by michaln »

It picks that one resolution which can't be changed by the guest OS.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Setting a default VESA resolution in BIOS mode

Post by socratis »

michaln wrote:It picks that one resolution which can't be changed by the guest OS.
I think I'm getting what you're saying, but I just want to make sure. So, if you use the EfiGopMode the guest is presented with one and only one available resolution, while if you don't use it the guest is "free" to use custom resolutions?
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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Setting a default VESA resolution in BIOS mode

Post by socratis »

OK, scratch that. I tried a Mint Live CD (linuxmint-18-mate-64bit.iso) with and without the EfiGopMode set. To be accurate, the exact setting that I changed in the .vbox:

Code: Select all

<ExtraDataItem name="VBoxInternal2/EfiGopMode" value="3"/>
The only difference was the initial Mint screen. With the EfiGopMode set, the initial screen was 1280x1024 (as it should be). Without the EfiGopMode set, the initial screen was 640x480. In both cases the same resolutions were presented when asked to change the display resolution. Which is something, btw, that I wish my Mac guests would do... :(

So, michaln, can you please elaborate on your explanation?
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.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Setting a default VESA resolution in BIOS mode

Post by michaln »

socratis wrote:The only difference was the initial Mint screen. With the EfiGopMode set, the initial screen was 1280x1024 (as it should be). Without the EfiGopMode set, the initial screen was 640x480. In both cases the same resolutions were presented when asked to change the display resolution. Which is something, btw, that I wish my Mac guests would do... :(

So, michaln, can you please elaborate on your explanation?
Without knowing exactly what your guest does, not really. But I can tell you that there are two completely different EFI graphics interfaces, GOP and UGA. UGA supports mode switching, acceleration, and other goodies. GOP is just a dumb framebuffer. Windows and OS X only support GOP so as far as I'm concerned, that's the only interface which matters.

Have I ever mentioned that unless you really really can't, you should avoid EFI like the plague it is?
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Setting a default VESA resolution in BIOS mode

Post by socratis »

michaln wrote:Have I ever mentioned that unless you really really can't, you should avoid EFI like the plague it is?
I really, really, really have to use it. OSX guests won't boot otherwise ;)

I just did a quick test with an Ubuntu LiveCD to see if there are any differences. And they were. Somehow Ubuntu is able to change the screen resolution, OSX can't. It is stuck with one, and only one resolution. No biggie, I just wanted to see if it was a result of having the EfiGopMode set. Maybe Ubuntu doesn't use the GOP mode and ignores it completely and goes with UGA? Don't know and to tell you the truth it doesn't really matter.

I know about the state of EFI in VirtualBox and I use it either on OSX guest, or experimentally once in a blue moon just for temporary tests on other guests.

Thanks.
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.
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Any and all
Contact:

Re: Setting a default VESA resolution in BIOS mode

Post by michaln »

socratis wrote:I really, really, really have to use it. OSX guests won't boot otherwise ;)
OK, then EFI and GOP is the only choice.
No biggie, I just wanted to see if it was a result of having the EfiGopMode set. Maybe Ubuntu doesn't use the GOP mode and ignores it completely and goes with UGA?
Entirely possible. As you say, it doesn't really matter for OS X guests, they only use GOP.
I know about the state of EFI in VirtualBox and I use it either on OSX guest, or experimentally once in a blue moon just for temporary tests on other guests.
It's just EFI, period. Incredibly bad design. The industry went from not designed, organically grown, messy BIOS to overdesigned, simultaneously overengineered and underengineered, and horribly implemented EFI. Hard to say which is worse.

The only advantage of EFI seems to be that writing in C lowered the barrier to entry so now we have more clueless people writing firmware code :)
Post Reply