Skip to content
xXJSONDeruloXxPublic

About

SteamOS-style Linux for the Anbernic XX line of handhelds

Resources

Stars

27 stars

Watchers

1 watching

Forks

Repository files navigation

MicroDeck

Steam on cheap handhelds. MicroDeck is a flashable SD-card OS that boots straight into Steam's Big Picture mode, SteamOS-style, on Anbernic's Allwinner H700 handhelds, and early on Rockchip RK3566 handhelds (tested on the RG ARC-S). It runs Valve's native arm64 Steam client, and plays Windows games through Proton and Linux x86 games through FEX.

There is one image per chip. On the H700 one image runs on every Anbernic model; you name yours in model.txt on the card. Most units have DDR4 memory and use microdeck-h700-ddr4.img.xz. A few (some RG35XX 2024 and Plus units) have DDR3: if the DDR4 card leaves the screen dark, use microdeck-h700-ddr3.img.xz. A wrong choice gives a black screen and no harm, so keep your stock card. RK3566 handhelds use microdeck-rk3566.img.xz, which finds the model by itself (ROCKNIX's boot loader); only the RG ARC-S has been tried so far.

Handheld model= Wi-Fi
RG40XX H, V rg40xx-h, rg40xx-v (or rg40xx-h-v2-panel, rg40xx-v-v2-panel) yes
RG35XX 2024, Plus, H, Pro rg35xx-2024, rg35xx-plus, rg35xx-h, rg35xx-pro (or the -rev6-panel names) yes, except the RG35XX 2024
RG35XX SP rg35xx-sp (or rg35xx-sp-v2-panel) yes
RG34XX, RG34XX SP rg34xx, rg34xx-sp (or rg34xx-sp-v2-panel) yes
RG CubeXX rgcubexx yes
RG28XX rg28xx no, USB network only
RG SP rg-sp yes

Tested on the RG40XX-H and RG35XX SP (MicroDeck was first developed on the RG40XX-H and RG28XX). The others run the same kernel and drivers with their own device trees and screen setup (from ROCKNIX); reports are welcome. Some came with a second kind of screen that nothing outside tells apart: if the screen stays black or shows garbage, hold power for 10 seconds and try the -rev6-panel or -v2-panel name.

Early but working. Expect it to be slow: Steam's interface is Chromium on four Cortex-A53 cores with 1 GB of RAM, and games run through translation layers. Simple and older games are playable; most modern ones are not.

Install

  1. Download your chip's image (above) and its .sha256 from the latest release and check the hash.
  2. Write it to a microSD card of 16 GB or more (balenaEtcher, or xzcat microdeck-h700-ddr4.img.xz | sudo dd of=/dev/sdX bs=4M conv=fsync).
  3. Model (H700): on the card's small MICRODECK partition open model.txt and set the model= line to your handheld (table above). The RG40XX-H is the default.
  4. Wi-Fi: on the first start the handheld's own menu offers Wi-Fi: pick your network and type the password on the on-screen keyboard with the d-pad and A. Or, before the first start, on the same partition copy wifi.txt.example to wifi.txt and fill in ssid= and psk= (add band=a for 5 GHz only, usually much faster). Without Wi-Fi (RG28XX, RG35XX 2024): plug it into a PC, which sees a USB network adapter, and share the PC's internet with it. On Windows run tools/win-share-usb.ps1 from an elevated PowerShell.
  5. Put the card in slot 1 (TF1, the boot slot) and power on. The first start sets up the card and downloads about 1 GB (Valve's Steam client and Proton). Allow up to an hour.
  6. Sign in to Steam with the QR code.

If the card does not boot, hold the power button for 10-15 seconds to force an off. Optional SSH: copy authorized_keys.example to authorized_keys on the MICRODECK partition and paste your public key (ssh root@microdeck-<model>.local, for example microdeck-rg40xx-h.local; the panel-revision suffix is left out).

Updating

In Steam: Settings > System > Check For Updates. It downloads the newest release (about 340 MB) and installs it at the next restart, which takes a few minutes: do not power off. Games, Steam login, settings and model.txt are kept, and a release that fails to start three times is replaced by the previous one automatically. Every model and both memory types update from the same download.

You can also write the new image to the same card. The data partition (Steam, games, login) starts after the system partitions, so flashing with Etcher or dd keeps it. A tool that erases the whole card does not. Releases that change U-Boot need a reflash.

Installed v0.7.x updaters cannot see v0.8.0 or later (the project moved): write that release to the card once.

What to expect

  • Works: Big Picture, the built-in pad as a Steam Deck controller, Wi-Fi, Bluetooth, audio, brightness and volume, games in front with the Steam button menu over them, in-place updates with rollback.
  • Desktop mode: in Steam, Power > Switch to Desktop gives a small desktop with Firefox, AbiWord, Gnumeric, a text editor, files and a terminal, all driven from the pad (the d-pad or sticks move the pointer, A and B click, Start opens the menu, X opens an on-screen keyboard). The Steam button on the panel, or holding Start, returns to Steam. One browser tab at a time fits in 1 GB.
  • Sleep is on: a short press of the power button sleeps (so does closing the lid of an RG35XX SP, RG34XX SP or RG SP), a long press powers off, and the next press (or opening the lid) wakes. If a unit does not wake from it, hold the power button 10-15 seconds, then turn sleep off with an empty file named nosleep on the MICRODECK partition (or mdeck-sleep off).
  • Quick Access: tap the menu button twice. One tap opens Steam's menu, and holding it works as the Steam button for chords.
  • gamescope, as on SteamOS. Steam runs inside Valve's gamescope on the GPU, with patches for this GPU from DuoDeck by Producdevity. The previous Xorg session is one switch away in the boot menu (Session), and uses about 60 MB less memory.
  • Games fill the screen. A game window that does not match the panel (a Windows game's small windowed mode, an old game with a big window) is scaled to fit by the display hardware (by the GPU in the Xorg session), with Steam's menu on top. Steam's own UI runs without its blur effects, which a handheld this size cannot draw quickly (UI_BLUR=1 in /etc/steam-session.conf brings them back).
  • Boot menu: every boot starts with a short menu on the panel, about 10 s after power-on and before Steam or anything heavy loads (a 10 second countdown, then Steam starts by itself). Press any button to stay in it: Steam or desktop mode, Wi-Fi (scan and join, with an on-screen keyboard: A types, B deletes, Y space, X capitals, L1/R1 symbols, Start done), gamescope or Xorg, FEX settings for all games, sleep, GPU Direct3D and its ARM64EC build, USB debugging, SSH, network info, update check, restart and power off, all with the d-pad and A. Until Steam is installed and while there is no network, the menu stays open on Wi-Fi instead of counting down. PREFLIGHT=0 in /etc/steam-session.conf turns it off.
  • Games: Direct3D 9, 10 and 11 run on the GPU (a Vulkan driver and DXVK download on the first start), so many titles are playable. Memory is the limit for big ones. See docs/games.md for what runs.
  • FEX per game: x86 code runs through FEX. On a game's page in Steam (or while it runs), press Select and Start together for its FEX setting: the global one, FEX's own defaults, or a preset from Stability (safest) to Extreme (fastest, breaks some games). It applies from the game's next start. The boot menu sets the global one.

More

Credits and licenses

  • Kernel, DTBs, modules and firmware: ROCKNIX H700 builds (GPL-2.0).
  • U-Boot defconfigs and DRAM patch derived from ROCKNIX's H700 U-Boot package; U-Boot and TF-A upstream.
  • rootfs/src/lse_emu.c: SildurFX/LSE-Emu (GPL-3.0).
  • DuoDeck by Producdevity (GPL-3.0), whose research on the same Mali GPU family made these possible: the InputPlumber patches (rootfs/patches/inputplumber), Panfrost keeping cached buffers mapped (tools/mesa/patches), DXVK-Sarek's geometry-shader fallback (tools/dxvk/sarek-patches), and stopping Steam's long UI animations (mdeck ui-fixes, after DuoDeck's steam-effects). Each patch names its origin in its header.
  • Steam is Valve's; this project downloads the client from Valve's CDN and ships none of it.

Everything else is GPL-3.0-or-later (see LICENSE).

About

SteamOS-style Linux for the Anbernic XX line of handhelds

Resources

Stars

27 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages