Changing Screen Res in VirtualBox

8,965 views
Skip to first unread message

EJE

unread,
May 31, 2012, 10:00:18 AM5/31/12
to Android-x86
I hope I am not missing some obvious resource that answers this, and
if so, my apologies.

I have the generic-PC build running relatively well in VirtualBox.
(The mouse does acts pretty weird, though. My experience with VB is
that it does that until you install GuestAdditions, but I am assuming
that is not an option.)

One thing that would be very helpful is to be able to change the
resolution to something that takes better advantage of my PC's screen
size. How do I convince x86 to run at a different size?

For what it's worth, the stock Android emulator runs like a dog, but
x86 runs pretty well. I am hoping I can use x86 to do some app
development. I was a little discouraged at what few apps actually ran
from the AndAppStore, though, so maybe the virtualization through
Dalvik does not solve all platform issues?

Thx for any assistance!

Alejandro Alvarez

unread,
May 31, 2012, 6:45:34 PM5/31/12
to andro...@googlegroups.com
Have you tried adding custom video modes to VirtualBox and choosing it with vga=ask?

      <ExtraDataItem name="CustomVideoMode1" value="1280x800x16"/>
      <ExtraDataItem name="CustomVideoMode2" value="1366x768x16"/>
      <ExtraDataItem name="CustomVideoMode3" value="1920x1080x16"/>
      <ExtraDataItem name="CustomVideoMode4" value="800x1280x16"/>
      <ExtraDataItem name="CustomVideoMode5" value="480x800x16"/>
      <ExtraDataItem name="CustomVideoMode6" value="400x800x16"/> 

It works with AOSP, I think it also does the work in Android-x86





2012/5/31 EJE <apl...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.




--
--
Alejandro Alvarez Bravo
alex.a...@gmail.com

EJE

unread,
Jun 2, 2012, 10:05:55 AM6/2/12
to Android-x86
Sounds promising. Forgive me a dumb question, but where are those
values set? Looks like some config items in VB, I have used VB quite a
bit, but haven't come across those particular settings before. :)

On May 31, 6:45 pm, Alejandro Alvarez <alex.a.br...@gmail.com> wrote:
> Have you tried adding custom video modes to VirtualBox and choosing it with
> vga=ask?
>
>       <ExtraDataItem name="CustomVideoMode1" value="1280x800x16"/>
>       <ExtraDataItem name="CustomVideoMode2" value="1366x768x16"/>
>       <ExtraDataItem name="CustomVideoMode3" value="1920x1080x16"/>
>       <ExtraDataItem name="CustomVideoMode4" value="800x1280x16"/>
>       <ExtraDataItem name="CustomVideoMode5" value="480x800x16"/>
>       <ExtraDataItem name="CustomVideoMode6" value="400x800x16"/>
>
> It works with AOSP, I think it also does the work in Android-x86
>
> 2012/5/31 EJE <aplu...@gmail.com>
> alex.a.br...@gmail.com

Alejandro Alvarez

unread,
Jun 2, 2012, 6:56:04 PM6/2/12
to andro...@googlegroups.com
Every VirtualBox VM has an .vbox archive in their folder. Just edit and add your desired modes inside <ExtraData> tags. You have to do it with VirtualBox stopped, or changes will be lost next time VirtualBox is stopped.

Then in grub, edit and append vga=ask to choose video mode.




2012/6/2 EJE <apl...@gmail.com>

perspectoff

unread,
Jun 2, 2012, 6:09:10 PM6/2/12
to Android-x86
Use the VirtualBox "scale" mode. It will adjust your Android-x86 to be
whatever size the VirtualBox window is.

perspectoff

unread,
Jun 2, 2012, 5:30:35 PM6/2/12
to Android-x86
The question is how to change the Android-x86 resolution. Once you
solve that, you can always start VirtualBox in fullscreen mode easily.

Let's say you have created a virtual machine named "Android-x86". Just
start VirtualBox with the command:

VirtualBox -fullscreen -startvm "Android-x86"

So, if your display is 1024x768 and you have set Android-x86 to
display at 1024x768 and you start VirtualBox in fullscreen mode, then
your Android will fill your screen.

EJE

unread,
Jun 3, 2012, 1:43:22 PM6/3/12
to Android-x86
I'll try changing the settings. BTW, Changing to full screen while x86
is running doesn't change anything, though perhaps that would be
different if it started full screen. :)

Frank van Beek

unread,
Nov 28, 2012, 7:51:53 AM11/28/12
to andro...@googlegroups.com
The vga=ask is a Grub option. The Android-x86 iso-images install Grub with a 5 second timeout. During the timeout you can press 'e' to edit the Grub command. See this screenshot:


The AndroVM virtual machines I've used don't show the Grub prompt where you can add this option.

So you probably have to boot the Android virtual machine from a Linux live image, and then use a Linux editor to change the Grub options an the Android partition. I'm currently at work so I can't be more specific, sorry.


On 27 November 2012 19:44, Michael Bailey <baile...@gmail.com> wrote:
Please forgive my ignorance, but when you say "choosing it with vga=ask", how exactly am I supposed to do that? Is that a command-line switch when launching VirtualBox?

F van Beek

unread,
Nov 28, 2012, 3:13:23 PM11/28/12
to andro...@googlegroups.com
Ok, the AndroVM virtual machines I've downloaded come without Grub it seems... Unless you installed one of the ISO's yourself in VirtualBox. Please be more specific.

Daniel Fages - android-x86

unread,
Nov 28, 2012, 3:40:11 PM11/28/12
to andro...@googlegroups.com
Hi,
please be careful even if AndroVM shares some code with android-x86 the init scripts are different.
To change screen res, you have to use the "AndroVM configuration application" provided.
If you screen size is not listed in the configuration tool.
You have to do two things :
- Modify the Custom video modes in VirtualBox using the info mentioned hereunder ; if you want to have screen rotation working, you have to speciy both <width>x<height>x16 and <height>x<width>x16
- Tell AndroVM to use it using a "VirtualBox guest property" using the command line "VBoxManage guestproperty set "<TheNameOfYourName>" vbox_graph_mode "<Width>x<Height>-16" (for example 840x460-16).

Last thing : if you have AndroVM specific questions, you'd rather use the dedicated Google group : https://groups.google.com/forum/?fromgroups#!forum/androvm

Regards,
Dan.

Reply all
Reply to author
Forward
0 new messages