Android x86 native resolution fails


Question

Running Android x86 iso (5.1 rc1 or 4.4 r5) in my native resolution 2880x1800 fails with black screen with blinking cursor. Actually it is a prompt accepting commands but stops without any message or anything on screen.



Last commands visible on screen were:
last commands



I ran it with vga=ask parameter:



/kernel initrd=/initrd.img root=/dev/ram0 androidboot.hardware=android_x86 nomodeset vga=ask SRC= DATA=


And chose the offered 2880x1800x32: 357
offered resolutions



Same if I run it with parameters directly in a command line either the vga= or UVESA_MODE=2880x1800 or tried UVESA_MODE=2880x1800x24 or UVESA_MODE=2880x1800x16.



If I choose 2560x1600x16, it works well, except for the resolution is low.



I run it in Parallels Desktop on OS X.



How to run it in a native 2880x1800 resolution?


Answer

I was having a similar issue running Android-x86 on VMware (Windows host). The solution was to force the virtual machine to load enough memory for the virtual graphics adapter upon boot.



In my case, I had to place svga.minVRAMSize = 536870912 manually in the vm settings file. For Parallels, I believe you should open up the VM's configuration, then in the Hardware section, under the Video group, change the Video Memory value.



The value is generally given in bytes, so 536870912 bytes = 512 MB. The rule of thumb to calculate how much graphics memory you need is to multiply display values (HRes x VRes x colors). So for a 2880x1800x32 resolution, you actually need 2880 x 1800 x 4 = 20736000 bytes which is a little under 20MB. You'd be wise, though, to set up more than that - like I did - to account for 3D graphics, multiple buffering and compositing, and other fancy GPU tricks inherent to Android (See Graphics architecture and Android Graphics Internals).



[Contribution from OP]: I tested and found that 64MB is the minimum amount of graphics memory necessary to run Android 6 at 2880x1800x32 resolution on the Retina MacBook Pro 15".


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes