Skip to content

takeover: displayctl drm probe (stage 3a), double-buffered KMS page-flip, and KGSL ui-rb/off-level switches - #79

Merged
akshaynexus merged 3 commits into
mainfrom
feat/takeover-drm-gpu
Nov 25, 2026
Merged

akshaynexus merged 3 commits into
mainfrom
feat/takeover-drm-gpu

Conversation

@akshaynexus

Copy link
Copy Markdown
Owner

Implements Stage 3a + 3c display/GPU takeover improvements for Galaxy S24 Ultra:

  • Stage 3a (): read-only DRM/KMS probe beside One UI (no master, nothing set) reporting driver version, dumb buffer/atomic caps, connectors & modes (checking 1440x3120@120), CRTCs, planes (Primary/Overlay/Cursor, FourCC formats), and properties (runtime/display/src/drm_probe.rs).
  • Stage 3c (display=drm in runtime/xnuhost/src/display.rs): upgrades the KMS backend to double-buffered dumb buffers with PAGE_FLIP (falling back to DIRTYFB if refused) and highest-Hz mode selection.
  • G5 (gpu-kgsl-ui-rb=0|1, default 0): keeps render server and front app at KGSL priority 8, out of Android's 4-7 UI ringbuffer (drm2kgsl patch 0011, oneios_gpu_policy.h, policy.rs, switches.json).
  • T4 (gpu-off-level=0|1, default 1): holds KGSL at KGSL_CONSTRAINT_PWR_MIN while iOS's display is off (brightness::display_on() == false).
  • Docs: updated docs/switches.md, docs/plan-ios-first-session.md, runtime/display/README.md.
  • Companion OneOS PR: feat(OneiOS): stop surfaceflinger/composer for display=drm in takeover OneOS#13 (merged).

Verified on the build laptop (100.76.16.53): oneios-switches (3/3), oneios-display (25 unit + 24 displayctl + 1 java_modes), cargo fmt --all --check, cargo clippy --workspace --all-targets --locked -- -D warnings, lint-android, port (17/17), links (12/12), package (35/35). Not booted on the phone yet.

@akshaynexus
akshaynexus merged commit bdc28c7 into main Nov 25, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant