#3546·ebiten

ebiten: running without a window system fails on Mali/GBM handhelds (fbdev uses EGL_DEFAULT_DISPLAY)

Author: mirusu400Created Aug 28, 2026Updated Sep 30, 2026
Labelsfeatureos:linuxrequest

Ebitengine Version

v2.10.0-alpha

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (paste your go version output)

go version go1.25.6 windows/amd64

What steps will reproduce the problem?

Im trying to port ebiten based app into RG DS(Rockchip RK3566 + Mali-G52 handheld) with ROCKNIX.

What is the expected result?

Ebitengine should present on a Linux handheld that has no window system but does have DRM/KMS + GBM (Mali and other Mesa/panfrost-class GPUs) the same "run without a window system" goal as #3491 / #3492, but for GBM devices instead of raw-framebuffer / PowerVR ones.

A minimal ebiten.RunGame, cross-built with CGO_ENABLED=0 GOOS=linux GOARCH=arm64 and run with no DISPLAY / WAYLAND_DISPLAY (compositor stopped), should show frames on the panel.

What happens instead?

The framebuffer backend (#3492) is selected correctly, but it then fails at startup and nothing renders:

fbdev: eglInitialize failed: EGL error 0x3001   // EGL_NOT_INITIALIZED

The cause is that the backend calls eglGetDisplay(EGL_DEFAULT_DISPLAY). On this device (Rockchip RK3566 + Mali-G52, ROCKNIX) the Mali userspace is the wayland-gbm driver variant, whose EGL only initializes through a platform display; the default display returns EGL_NOT_INITIALIZED.

Anything else you feel useful to add?

Repro: minimal ebiten.RunGame, CGO_ENABLED=0 GOOS=linux GOARCH=arm64, run on the device with the compositor stopped so it can take DRM master.