Hello, I'm emulating Android 4.4 using Virtualbox 5.0.2 (on Ubuntu 14.04). Android was installed successfully and is running just fine, but when I start some applications, the screen will rotate 90° CCW:
When I leave the application, the screen goes back to normal. This problem happens even though screen rotation is locked:
I'm not sure what's going on. Could someone help me, please?
Screen keeps rotating on Android 4.4
-
- Posts: 17
- Joined: 8. Aug 2009, 20:29
- Primary OS: Ubuntu other
- VBox Version: PUEL
- Guest OSses: Windows (W2K-WXP-W7), Linux, OpenSolaris, Android, Others
Re: Screen keeps rotating on Android 4.4
Hi!
I've been using VirtualBox for Android x86 for some time.
The only workaround I've found (from multiple sources) is to create two virtual machines using a single virtual harddisk, and two distinct GRUB entries in Android, one for portrait, another for landscape.
Basically you can start by installing Android in whatever orientation you prefer.
Shutdown the virtual machine, and create a new one using the same virtual harddisk.
I suggest choosing sensible VM names, such as "Droid - Portrait" and "Droid - Landscape" for the VMs.
Then you must configure both for specific video modes:
Portrait virtual machine:
Landscape virtual machine:
Finally, you must edit the GRUB configuration within Android.
EDITION TO CLARIFY:
To edit the grub configuration boot Android x86 in debug mode, when booting stops (you will be in text mode), edit the GRUB configuration using the 'vi' editor (familiarize yourself with the very basics of the 'vi' editor, is powerful and sometimes the only editor available):
You can reboot after saving the changes.
[/color]
Portrait boot stanza (you can edit the existing one, remember to rename it to something descriptive):
Landscape boot stanza (you must add this one, remember to assign a descriptive boot name):
Note: change the "4.4-r2" portions according to the Android x86 version you use.
You're free to select any valid VESA mode (Google is your friend), I've chosen the above simply because these work for me and fit nicely into my Linux host screen.
Depending on the application I need to use, I boot either of these. I guess if you've an app which uses both you've problems. Keep in mind this is just a workaround, not real screen rotation (which works, but never the way you intended!); as I use Android mainly to test stuff I don't need the real screen rotation functionality.
Hope that helps!
Kind regards,
I've been using VirtualBox for Android x86 for some time.
The only workaround I've found (from multiple sources) is to create two virtual machines using a single virtual harddisk, and two distinct GRUB entries in Android, one for portrait, another for landscape.
Basically you can start by installing Android in whatever orientation you prefer.
Shutdown the virtual machine, and create a new one using the same virtual harddisk.
I suggest choosing sensible VM names, such as "Droid - Portrait" and "Droid - Landscape" for the VMs.
Then you must configure both for specific video modes:
Portrait virtual machine:
Code: Select all
VBoxManage setextradata "Droid - Portrait" "CustomVideoMode1" "480x800x16"
Code: Select all
VBoxManage setextradata "Droid - Portrait" "CustomVideoMode1" "1024x600x16"
EDITION TO CLARIFY:
To edit the grub configuration boot Android x86 in debug mode, when booting stops (you will be in text mode), edit the GRUB configuration using the 'vi' editor (familiarize yourself with the very basics of the 'vi' editor, is powerful and sometimes the only editor available):
Code: Select all
vi /mnt/grub/menu.lst
[/color]
Portrait boot stanza (you can edit the existing one, remember to rename it to something descriptive):
Code: Select all
kernel /android-4.4-r2/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/android-4.4-r2 UVESA_MODE=480x800
Code: Select all
kernel /android-4.4-r2/kernel quiet root=/dev/ram0 androidboot.hardware=android_x86 SRC=/android-4.4-r2 UVESA_MODE=1024x600
You're free to select any valid VESA mode (Google is your friend), I've chosen the above simply because these work for me and fit nicely into my Linux host screen.
Depending on the application I need to use, I boot either of these. I guess if you've an app which uses both you've problems. Keep in mind this is just a workaround, not real screen rotation (which works, but never the way you intended!); as I use Android mainly to test stuff I don't need the real screen rotation functionality.
Hope that helps!
Kind regards,
-
- Posts: 1
- Joined: 26. Feb 2016, 12:06
Re: Screen keeps rotating on Android 4.4
use Rotation Locker app from Play Store
Re: Screen keeps rotating on Android 4.4
I have had good results with the app Smart Rotator by SmartDog Studio HK.