Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch android x86 screen resolution

I would like to use Android-x86 2.2 as an emulator on my Windows 7. I have downloaded VirtualBox and the ISO, and I've made a virtual machine with it, but I can't set the resolution to 320x480 or something similar.

The following tutorial "Using the Android-x86 Port as your Emulator" suggests to insert:

<ExtraDataItem name="CustomVideoMode2" value="320x480x16" /> 

to my .vbox file and I did it. Then I added UVESA_MODE=320x480 and vga=ask to the boot config. When it boots, I have to press Enter to see the available options, but there is no 320x480 among them. How can I get it to work?

like image 809
gberes Avatar asked Jun 01 '11 13:06

gberes


People also ask

Can you change Android screen resolution?

Most modern Android devices will give you the option to adjust screen resolution in the Display options or Settings. To get there, look for the gear-like icon on the applications menu. It should be labeled as Settings. You can also swipe down and click on the Settings app from the drop-down menu.

How do you change game resolution on Android?

Tap the Settings app icon, which resembles a colored gear, to do so. You can also swipe down from the top of the screen and then tap the gear icon in the resulting drop-down menu. Changing the pixel density (DPI) does not change the screen resolution on your device. It just changes how many pixels-per-inch are used.

How do I get 1920x1080 resolution in virtualbox?

Go to the File menu and activate Environment setting or, in more recent versions, Preferences. Select Display and change the setting for Maximum guest screen size to “hint” which allows you to set an arbitrary size for both width and height (e. g. 1920 and 1200). Reboot the virtual machine and enjoy it.


1 Answers

To change the Android-x86 screen resolution on VirtualBox you need to:

  1. Add custom screen resolution:
    Android <6.0:

    VBoxManage setextradata "VM_NAME_HERE" "CustomVideoMode1" "320x480x16" 

    Android >=6.0:

    VBoxManage setextradata "VM_NAME_HERE" "CustomVideoMode1" "320x480x32" 
  2. Figure out what is the ‘hex’-value for your VideoMode:
    2.1. Start the VM
    2.2. In GRUB menu enter a (Android >=6.0: e)
    2.3. In the next screen append vga=ask and press Enter
    2.4. Find your resolution and write down/remember the 'hex'-value for Mode column

  3. Translate the value to decimal notation (for example 360 hex is 864 in decimal).

  4. Go to menu.lst and modify it:
    4.1. From the GRUB menu select Debug Mode
    4.2. Input the following:

    mount -o remount,rw /mnt   cd /mnt/grub   vi menu.lst 

    4.3. Add vga=864 (if your ‘hex’-value is 360). Now it should look like this:

    kernel /android-2.3-RC1/kernel quiet root=/dev/ram0 androidboot_hardware=eeepc acpi_sleep=s3_bios,s3_mode DPI=160 UVESA_MODE=320x480 SRC=/android-2.3-RC1 SDCARD=/data/sdcard.img vga=864

    4.4. Save it:

    :wq 
  5. Unmount and reboot:

    cd / umount /mnt reboot -f 

Hope this helps.

like image 67
surlac Avatar answered Sep 18 '22 13:09

surlac