Hello everyone,
I wanted to share a project I have been working on: **rgslide-linux**, a standalone, pure mainline Linux distribution for the **Anbernic RG Slide** (Unisoc T820 / ums9620_2h10).
It replaces Android with **Linux 6.18 LTS**, **Debian 13 (Trixie) arm64**, **Mesa 25.0.7 Panfrost** (open-source GPU driver), and native **DRM/KMS**. There is no libhybris, no Android userspace services, and no proprietary GLES blobs.
Disclaimer: how this project was built
This project was developed with heavy use of AI coding agents (LLM-based assistants) working under the direction of a single human developer. The agents wrote and modified much of the code, scripts, kernel patches, and documentation, and the git history reflects that. The human developer set the goals, ran everything on real hardware, and reviewed the results.
It is experimental software. Expect rough edges, and do not assume that every feature has been verified in every scenario.
Flashing is destructive. It replaces Android and overwrites userdata. Make a full BROM backup of your stock partitions first, and understand that you are using this at your own risk. There is no warranty.
What is running
- Kernel and base system: Mainline Linux 6.18.60 using the stock vendor_boot DTB, 8 CPU cores, 8 GB RAM, full 128 GB UFS storage (with automatic partition expansion on first boot), /dev/kvm, and pstore/ramoops.
- GPU and display: Open-source Mesa Panfrost driving the Mali-G57 (DVFS scaled to 680 MHz) and native DRM/KMS with refresh rate switching (120 Hz in ES-DE, 60 Hz in RetroArch).
- Emulation and frontends:
- ES-DE (EmulationStation Desktop Edition) preconfigured as the default launcher.
- RetroArch 1.20.0 with 147 official linux/aarch64 Libretro cores (melonDS DS reaches 60 FPS on my unit with touchscreen input).
- A built-in on-screen Control Panel (rgslide-ui) for quick tweaks without leaving games.
- PortMaster: Native KMS and Weston 14 + XWayland on Panfrost, FUSE/squashfuse support, and custom CFW detection hooks that keep the controller mappings intact for ports.
Controls and force feedback:
- Out-of-tree `rgslide_joypad` driver for the Hall-effect analog sticks and GPIO buttons.
- Linux `FF_RUMBLE` bridged to the PMIC vibrator, so rumble works in RetroArch, SDL2, and PortMaster without custom forks. The vibrator is a simple on/off motor, so there are no strength levels.
- External Bluetooth and USB gamepads (PlayStation, Xbox, Nintendo Switch, generic HID) with 440+ auto-config profiles.
- hotkeys: Select + Home opens the Control Panel (with auto-savestate in RetroArch); Start + Back returns to ES-DE.
Audio, power, and cooling:
- Internal stereo speakers through native ALSA drivers and a low-latency daemon.
- PWM fan control with a kick-start pulse and several presets in the Control Panel.
- Battery fuel gauge, charging, and fast standby.
- USB-C dual-role: toggle the port between USB device mode (SSH access) and USB host/OTG (wired gamepads, drives, hubs, keyboards) from the Control Panel.
Pending / roadmap
- USB-C DisplayPort Alt-Mode: porting Unisoc's 5.4 DPTX bridge driver and USB31-DP PHY stack to Linux 6.18 for external monitor output.
- PipeWire: testing PipeWire on top of native ALSA for better Bluetooth audio handling.
- Hardware video decode (VPU): currently software only, since there is no upstream V4L2 driver for Unisoc VSP.
- Hardening: stricter validation in the flashing tool, more robust joystick calibration, signed releases, and upstreaming the kernel patches that make sense for LKML.
Source code and downloads
The project is open source and builds from a fresh clone. BROM flashing packages write to Slot B and keep Slot A free for testing.
Feedback, testing, and contributions are very welcome.