Explanation for BlissOS' graphics options
BlissOS inherits its core graphics stack implementation from the Android-x86 project. To ensure broad compatibility across the x86 ecosystem, several graphics initialization modes are available during boot. This section details the purpose of each graphics option and documents the specific values they accept.
Warning
All of the options listed below are kernel parameters. If you are unsure how to apply them, please refer to our guide on Setting up kernel command-line parameters.
EGL
What is EGL?
According to Wikipedia, "EGL is an interface between Khronos rendering APIs (such as OpenGL, OpenGL ES or OpenVG) and the underlying native platform windowing system." Android uses EGL to handle graphics context management. For a deeper dive, check out the Android Graphics Architecture page.
The following EGL options are available in BlissOS to handle different graphics rendering paths:
-
angle: Uses Google's ANGLE (Almost Native Graphics Layer Engine). This option translates OpenGL ES 2.0/3.0/3.1 calls into Vulkan commands. This mode requires a working Vulkan HAL to function.- BlissOS utilizes the built-in ANGLE provided by the upstream AOSP source.
-
mesa(Default): Uses Mesa3D's EGL. Alongside Mesa3D's Gallium drivers, this provides the standard hardware acceleration for supported GPUs, as well as software fallback options.- BlissOS maintains a custom Mesa fork to ensure the best compatibility and performance for the specific hardware we support.
-
swiftshader: Uses Google's SwiftShader. This is a purely CPU-based software renderer for OpenGL ES.- Deprecated in BlissOS 16+ (Android 13+). Newer versions favor
SwANGLE(SwiftShader + ANGLE), where ANGLE translates GLES to Vulkan, and SwiftShader runs the Vulkan implementation on the CPU.
- Deprecated in BlissOS 16+ (Android 13+). Newer versions favor
GRALLOC
What is Gralloc?
Gralloc (Graphics Allocator) is the Android HAL module responsible for allocating graphics memory buffers. It acts as the middleman between the graphics drivers and the Android framework, deciding how memory is allocated for surfaces like app windows, video frames, and game rendering.
Read More:
- Android Graphics Architecture (Official AOSP) - A high-level overview of how surfaces and buffers work.
- BufferQueue and Gralloc - Technical details on the Gralloc interface.
BlissOS includes two primary Gralloc implementations, with several specific forks to handle the wide variety of PC hardware and specific driver quirks. The system automatically selects the best default based on your GPU, but these can be manually overridden.
gbm
This is the gbm_gralloc implementation. BlissOS maintains a fork of this project at android-generic/external_gbm_gralloc.
gbm: The standardgbm_gralloc. It uses the Mesa3d's libgbm API to allocate buffers.gbm_hack: A modified version containing a specific workaround: "HACK: Use pixel stride instead of width as gbm->map() argument". This was historically used to fix broken graphics rendering on Mesa'siris(Intel) ornouveau(Nvidia) drivers before better solutions were found.gbm_noscanout: A version with the "scanout" code path removed. By removing the ability for Gralloc to send buffers directly to the display, it forces the Hardware Composer (HWC) to handle the rendering instead.- This was a workaround for
irisdriver issues before thegbm_hacksolution was implemented.
- This was a workaround for
minigbm
Minigbm is a lightweight graphics buffer allocator originally developed for ChromeOS. BlissOS maintains a fork at android-generic/external_minigbm.
minigbm: The default Minigbm implementation. It supports a wide range of backends includingvirtio_gpu,i915,xe,amdgpu,nouveau, andvmwgfx.minigbm_gbm_mesa: A specialized backend created by Roman Stratiienko.- This effectively adapts gbm_gralloc to run inside Minigbm as a backend. It uses Mesa3D's libgbm APIs directly, aiming for optimal allocation on any hardware Mesa supports.
minigbm_arcvm: The specific Minigbm configuration used in ChromeOS's ARCVM (Android Runtime for Chrome Virtual Machine). This backend is designed specifically for virtualized environments. It is optimized to work withvirtio-gputo efficiently share graphics buffers between the host system and the Android guest VM.- By default BlissOS inside a virtual machine (QEMU/KVM) with virtio-gpu enabled will use this option.
GRALLOC4_MINIGBM
This is a specialized boot option that switches the version of the Gralloc and Mapper services used by the system.
GRALLOC4_MINIGBM=1: Forces the system to use the Gralloc 4.0 and Mapper 4.0 services provided by Minigbm, instead of the default Gralloc 2.0 / Mapper 2.0 implementation.
Warning
This option must only be used when GRALLOC is set to a minigbm variant (e.g., minigbm, minigbm_gbm_mesa, etc.).
Other allocators like gbm_gralloc do not support the service structure required for this mode. Enabling this flag with an incompatible allocator will likely result in a broken graphics stack or boot failure.
HWC
What are HWC and Composer HIDL Services?
Hardware Composer (HWC): The HWC is a Hardware Abstraction Layer (HAL) that determines the most efficient way to composite buffers (layers of graphics) on your screen. Instead of forcing the GPU to draw everything (which drains battery and impacts performance), the HWC offloads the composition of layers (like the status bar, apps, and navigation bar) directly to the display controller hardware. Read more about HWC
Composer HIDL Service (HWC_HIDL): HIDL (Hardware Interface Definition Language) is the system Android uses to allow the core OS framework (like SurfaceFlinger) to communicate with hardware drivers. The "Composer HIDL Service" is the actual background daemon that hosts the HWC implementation and translates commands between the OS and the graphics stack.
Read more about HIDL
Just like GRALLOC, BlissOS automatically selects the best HWC and HWC_HIDL configurations based on the detected hardware. However, these can be manually overridden using the boot parameters below.
The HWC= parameter defines which Hardware Composer implementation to load.
default: Uses the standard, dummy fallback hwcomposer provided by AOSP.drm*variants: These usedrm_hwcomposer, which utilizes standard Linux DRM/KMS APIs to handle display composition. BlissOS maintains a fork at android-generic/external_drm_hwcomposer. The_celadonsuffixes pull from a specific branch containing patches from Intel's Project Celadon.drm/drm_celadon: The standarddrm_hwcomposerimplementations. These should be paired with gbm_gralloc.drm_minigbm/drm_minigbm_celadon: Usesdrm_hwcomposercompiled with the legacy MinigbmBufferInfoGetter. This allows the composer to properly read the proprietary buffer metadata generated by Minigbm. Must be paired with minigbm.drm_gbm_cros/drm_gbm_cros_celadon: Usesdrm_hwcomposerwith a legacygbm_grallocBufferInfo getter that mimics the ChromeOS (CrOS) API.- Context: The BlissOS
gbm_grallocfork implements the CrOS API to retrieve buffer info, and this HWC option utilizes an extra bufferinfo file to read it. Must only be used by gbm_gralloc.
- Context: The BlissOS
HWC_HIDL
The HWC_HIDL= parameter specifies which version of the Composer HIDL service daemon should be used to host the chosen HWC implementation.
default-2.1: Uses theandroid.hardware.graphics.composer@2.1-service.- This is typically paired with
HWC=defaultto handle software-rendering fallback environments (no hardware acceleration) or with gbm_gralloc when using the generic drm_framebuffer wrapper.
- This is typically paired with
default-2.4: Uses theandroid.hardware.graphics.composer@2.4-service.- This is the modern service and should be used whenever
drm_hwcomposer(HWC=drm*) is selected, as it supports newer display features.
- This is the modern service and should be used whenever
drmfb: Uses a customdrmfb-composerservice (android.hardware.graphics.composer@2.1-service.drmfb) originally developed by me176c-dev.- This option should be used without specifying an
HWC=parameter. It allows booting with minigbm or gbm_gralloc by drawing directly to the Linux framebuffer, completely bypassing traditional hardware composition.
- This option should be used without specifying an
VULKAN
What is Vulkan?
Vulkan is a modern, cross-platform 3D graphics API designed to minimize CPU overhead and give developers more direct control over the GPU. Unlike OpenGL, which manages a lot of complexity for the developer, Vulkan is explicit, allowing for better performance in multi-core systems.
Read More:
The History of VULKAN=1
In the early days of Android-x86, the boot option VULKAN=1 was used to force the system to switch from the legacy drm_gralloc (which did not support Vulkan) to gbm_gralloc.
As development progressed, drm_gralloc was deprecated and removed, leaving gbm_gralloc and minigbm as the standards, both of which support Vulkan out of the box. Consequently, the old VULKAN=1 flag became obsolete.
However, BlissOS has recently reintroduced the VULKAN= option with a new purpose: switching between specific Vulkan HALs (drivers).
Realistically, the correct Vulkan HAL is automatically selected based on your hardware. You should generally only use these options if you need to debug a specific issue or force a fallback.
The VULKAN= parameter accepts the following values:
Hardware Drivers:
intel: Loads the ANV driver. This is the modern Mesa Vulkan driver for Intel GPUs (Skylake and newer).intel_hasvk: Loads the HasVK driver. This is the legacy Mesa driver split off for older Intel architectures (Haswell, Broadwell).radeon: Loads the RADV driver. This is the standard, high-performance Vulkan driver for AMD Radeon GPUs.nouveau: Loads the NVK driver for NVIDIA GPUs.virtio: Loads the Venus driver. This is for virtualized environments (QEMU/KVM) where the host passes Vulkan capabilities to the guest.
Software Rendering (CPU-based):
pastel: Forces the use of SwiftShader Vulkan.lvp: Forces the use of LLVMpipe (Lavapipe). This is Mesa's CPU-based Vulkan implementation.
Recommendation
For 99% of users, do not set a VULKAN= value. BlissOS's auto-detection logic mimics the behavior of standard Linux distributions to pick the best driver for your card. Use pastel or lvp only if your GPU is unsupported or crashing.
FORCE_GLES
What is OpenGL ES?
OpenGL ES (Embedded Systems) is a subset of the OpenGL graphics API designed specifically for mobile and embedded devices like smartphones. It is the primary API Android uses to render 3D graphics.
Different apps require different versions of OpenGL ES to run. For example, a simple 2D game might only need ES 2.0, while a high-end 3D game might demand ES 3.2 for advanced lighting and tessellation.
Read More:
This boot option forces the system to report a specific OpenGL ES version to applications and the graphics driver. This is useful for testing compatibility or fooling older apps that might not recognize newer driver versions.
FORCE_GLES=<version>: Sets the reported OpenGL ES version.- Supported Values:
2.0,3.0,3.1,3.2.
- Supported Values:
Default Behavior:
If this option is not set, BlissOS defaults to reporting OpenGL ES 3.0 (Internal value: 196608).
Technical Implementation
When you set this option, the system modifies two key properties during boot:
ro.opengles.version: The Android system property that tells apps what the device supports (corresponds to<uses-feature>in an app's Manifest).mesa.gles.version.override: Sets theMESA_GLES_VERSION_OVERRIDEenvironment variable, which forces the Mesa driver to technically report the chosen version, even if the hardware supports more (or less).
| Option Value | ro.opengles.version (Integer) |
ro.opengles.version (Hex) |
|---|---|---|
| 2.0 | 131072 |
0x00020000 |
| 3.0 | 196608 |
0x00030000 |
| 3.1 | 196609 |
0x00030001 |
| 3.2 | 196610 |
0x00030002 |
HWACCEL
This option controls the hardware acceleration state of the Android graphics stack.
HWACCEL=0: Disables hardware acceleration and forces the system to use software rendering.
Under the Hood
When you set HWACCEL=0, the system overrides several other graphics options to ensure a stable software-only environment. Specifically, it configures the stack as follows:
- Gralloc / HWC: Sets both to
default(using the AOSP fallback implementations). - HWC Service: Sets
HWC_HIDL=default-2.1. - Rendering: Sets
VULKAN=pastel(SwiftShader) andEGL=angle.- This activates the SwANGLE software rendering path (ANGLE translating GLES to Vulkan, running on the SwiftShader CPU driver).
Difference from nomodeset
It is common to confuse HWACCEL=0 with the Linux kernel parameter nomodeset, but they function at different levels of the system:
-
HWACCEL=0(User Space): The kernel video drivers (likei915oramdgpu) still load, allowing for proper screen resolution and brightness control. However, Android is told to ignore the GPU for 3D rendering and compositing, doing all the work on the CPU instead.- Use this if: You have graphical glitches or artifacts but the system boots fine.
-
nomodeset(Kernel Space): This instructs the Linux kernel to not load video drivers at all. The system falls back to basic BIOS/UEFI display modes (often with wrong resolution and no brightness control).- Use this if: The system freezes or black screens before the Android boot animation appears.
- Read about nomodeset on ArchLinux Wiki or Linux Kernel Documentation
FORCE_RENDERENGINE
What is RenderEngine?
RenderEngine in Android is a low-level component within SurfaceFlinger that draws layers, handles shadows, and composites graphics buffers, typically utilizing OpenGL ES or SkiaGL to render final images for the screen.
Read More:
This boot option forces SurfaceFlinger to use a specific graphics backend for its RenderEngine operations. It works by setting the system property debug.renderengine.backend.
FORCE_RENDERENGINE=<value>: overrides the default backend.
Supported Values
Modern Backends (Skia):
skiavk: Uses the Skia graphics library with a Vulkan backend (non-threaded).skiavkthreaded: Uses the Skia graphics library with a Vulkan backend (threaded).skiavk&skiavkthreadedwere introduced in Android 14. This is the modern standard for devices with stable Vulkan drivers.
skiagl: Uses the Skia graphics library with an OpenGL ES backend (non-threaded).skiaglthreaded: Uses the Skia graphics library with an OpenGL ES backend (threaded).- Default for BlissOS 16+ (Android 13+).
Legacy Backends (GLES):
threaded: Uses the legacy GLES implementation with threading enabled.- Default for BlissOS 14 & 15 (Android 11/12).
gles: Uses the legacy GLES implementation without threading.
MESA_LLVMPIPE and MESA_ZINK
These options allow you to force specific drivers within the Mesa3D stack.
Requirement
These options must be used in conjunction with EGL=mesa.
If you are using EGL=angle or EGL=swiftshader, these settings will be ignored.
MESA_LLVMPIPE
What is LLVMpipe?
LLVMpipe is a high-performance, CPU-based software rasterizer for OpenGL. It uses the LLVM compiler infrastructure to translate graphics commands into CPU instructions.
In the Android ecosystem, its closest equivalent is SwiftShader. However, while SwiftShader is Google's implementation, LLVMpipe is the standard software fallback for Linux desktops. It is generally very accurate but CPU-intensive, making it a reliable choice for debugging when hardware acceleration fails.
Read More: Mesa3D LLVMpipe Driver
This option forces the system to use LLVMpipe, Mesa's software rasterizer, by setting the property mesa.libgl.always.software=true.
MESA_LLVMPIPE=1: Forces software rendering.
MESA_ZINK
What is Zink?
Zink is a Mesa driver that implements OpenGL by translating everything into Vulkan commands. This allows devices with a working Vulkan driver (but a poor or missing OpenGL driver) to run full hardware-accelerated OpenGL.
This concept is very similar to Google's ANGLE project. You might want to use it as an alternative to ANGLE.
Read More: Mesa3D Zink Driver
This option forces the system to use Zink, Mesa's OpenGL-over-Vulkan implementation, by setting the property mesa.loader.driver.override=zink.
MESA_ZINK=1: Forces OpenGL commands to be translated into Vulkan commands.