Black (Xbox, 2006) — Native Linux Port

Black is a native Linux port of the Xbox game Black, built using static recompilation with Vulkan graphics and SDL3.

README

Black (Xbox, 2006) — Native Linux Port

Listed on PlayPorted

English | Bahasa Indonesia

A native Linux x86_64 port of the original Xbox version of Black, built using static recompilation: the game's x86 code is translated into C++ and compiled into a native Linux executable (ELF).

This is not an emulator, Wine/Proton, Electron, or a web engine. Graphics use Vulkan, while SDL3 handles the window, audio, keyboard, mouse, and controllers.

⚠️ This package contains NO game code or game assets. You must provide your own copy of the game (USA or Europe), either as an .iso or an extracted folder containing default.xbe. Black is © Criterion Games / Electronic Arts. This is an unofficial project.

Download: get black-linux_<version>_amd64.deb from Releases.

Target platforms: Ubuntu 24.04+ / Debian 13+ and derivatives, x86_64 (requires glibc 2.38+). See Supported distros.

Benchmark

Reported by the tester on their own hardware; performance may vary. The sustained range below is an observation, not a frame-time capture or a measured average.

ItemDetails
LaptopLenovo ThinkPad X270
CPU / GPUIntel Core i7-7600U / Intel HD Graphics 620
RAM8 GB, single-channel
OSLinux Mint 22.3 XFCE, X11
Kernel / Mesa7.0.0-38-generic / 25.2.8
Resolution1280×720, 100% render scale
SettingsV-Sync off; maximum FPS: Unlimited; FXAA; bloom, fog, and HDR on; anisotropic filtering and draw distance at game defaults; reload blur off
Test sceneMission 1; the most demanding area reported was the sunlit brick room with large windows
Observed performanceStable 80–100 FPS during the first three missions
Instantaneous readings98.1 FPS facing the bright windows; 139.0 FPS facing the door
Gameplay on Linux Mint XFCE

Mission 1 sunlit brick room at 1280×720, showing 98.1 FPS on Intel HD 620

Mission 1, facing the sunlit windows: 98.1 FPS at the moment of capture.

Second gameplay screenshot: facing the door, 139.0 FPS. These are instantaneous readings, not average FPS or minimum/maximum results for a full run.

Test system and graphics settings

ThinkPad X270 system information on Linux Mint 22.3 XFCE

Display settings: 1280×720 at 100% render scale, V-Sync off

Quality settings: FXAA, bloom, fog and HDR on; reload blur off; default anisotropic filtering and draw distance

The system and settings screenshots document the visible configuration. Single-channel RAM, Mesa version, Unlimited FPS, and performance across three missions were reported by the tester. FPS shown in the settings menu is not gameplay performance.


Supported distros

The .deb needs glibc 2.38 or newer, so what matters is the distro's base version, not just its name. Check yours with ldd --version.

DistroBaseStatus
Linux Mint 22.xUbuntu 24.04✅ Tested (22.3)
Ubuntu 24.04 or newer—✅ Should work
Pop!_OS 24.04Ubuntu 24.04✅ Should work
Zorin OS 18Ubuntu 24.04✅ Should work
Debian 13 (Trixie) / MX Linux 25Debian 13⚠️ Should work, not tested yet
Ubuntu 22.04, Pop!_OS 22.04, Zorin OS 17Ubuntu 22.04❌ glibc 2.35 is too old
Debian 12, MX Linux 23Debian 12❌ glibc 2.36 is too old

Test reports from other distros are welcome: please open an issue.

1. Install

⚠️ You need your own original copy of the game. The .deb only contains the recompiler, runtime and launcher. It includes no game code or data, and nothing can be played without your own .iso or default.xbe (see step 2).

Download the .deb from Releases, then run:

sudo apt install ./black-linux_0.1.3_amd64.deb

apt automatically installs the required dependencies, including clang, lld, libvulkan1, mesa-vulkan-drivers, python3, and zenity. Expect approximately 150–250 MB of dependencies.

Before starting, check that Vulkan works:

sudo apt install vulkan-tools
vulkaninfo --summary | grep -i "deviceName\|apiVersion"
# On an Intel HD 620, expect Intel(R) HD Graphics 620 (KBL GT2) and apiVersion 1.3.x.

2. Add your game files

Place your own copy in:

~/.local/share/black-linux/game/
    Black.iso                    # Disc image (USA or Europe), OR
    default.xbe + its folders     # Extracted game files

If this directory is empty, the launcher opens a dialog to select your .iso file.

3. First launch

Open Games → Black (Linux Native) from your application menu, or use a terminal to see progress:

black-linux-build      # Build only, with progress output
black-linux            # Play

The first launch compiles the game for your PC:

  1. default.xbe is recompiled into C++ (64 parts).
  2. The generated code is compiled with clang. On an X270, this is estimated to take 30–90 minutes, once.
  3. Everything is linked into ~/.local/share/black-linux/bin/BLACK.

Subsequent launches start the game directly.

4. Controls and settings

Key / commandAction
F11 or Alt+EnterToggle fullscreen / windowed mode
In-game Options menuGraphics, Controller (stick deadzone/sensitivity), General, Mouse and Keyboard (rebindable), Cheats
F10Settings overlay
BLACK_TOUCH=1 black-linuxForce touch controls to appear (for touchscreen laptops)
BLACK_GPU=nvidia black-linuxSelect a GPU by name
black-linux --windowedStart in a window
black-linux --rebuildRebuild the game

Recommended settings for Intel HD 620:

  • Render Resolution: 100% on a 1366×768 display, or approximately 67% at 1080p. This is set automatically on first launch.
  • MSAA/SMAA: off.
  • Ambient Occlusion: off.
  • Draw Distance: 1x.
  • V-Sync: on (default).

5. File locations

PathContents
~/.local/share/black-linux/black.tomlSettings
~/.local/share/black-linux/hdd/Saved games
~/.local/share/black-linux/logs/Logs for troubleshooting
~/.local/share/black-linux/bin/BLACKCompiled game executable
~/.cache/black-linux/build.logBuild log

6. Troubleshooting

ProblemSuggested solution
compiling failedYou may have run out of memory. Run black-linux-build --jobs 1 (slower, but uses less RAM).
the recompiler stoppedThe game may not be a USA/Europe release, or the ISO may be damaged. Check build.log.
Black screen or crash at startupTry sudo apt install --reinstall mesa-vulkan-drivers, then include the contents of logs/ when reporting the issue.
Android touch controls appear on screenFixed in 0.1.2. Update the .deb, then run black-linux-build (only relinks, approximately one minute).
error: quit: ConfirmWarning, FEAudio failed in the logHarmless: the quit confirmation dialog could not borrow the title menu's click sounds. The game is unaffected; Exit (0) means a normal exit.
A "different release" warning appearsYour game copy is a different version and will likely crash.

How it works

 .deb PACKAGE (no game code)                    ON YOUR PC (once)
 ┌──────────────────────────────┐  default.xbe  ┌────────────────────────────────┐
 │ xbe_recomp (recompiler)      │ ─────────────▶ │ 64 generated C++ files         │
 │ libblack_host.a:             │               │        │ clang -O2              │
 │  - XboxXBE-Recomp runtime    │               │        ▼                        │
 │    (Xbox kernel, D3D8, DSnd) │   link        │ game objects + host = BLACK    │
 │  - game hooks/sound/D3D8     │ ─────────────▶ │ (native x86_64 ELF, Vulkan)     │
 │  - SDL3+Vulkan desktop host  │               └────────────────────────────────┘
 │ libSDL3.a, libglslang.a      │
 └──────────────────────────────┘

This project builds on:

  • XboxXBE-Recomp SDK by TGP482 (MIT): portable recompiler and runtime, pinned to commit 99078b1.
  • Black for Android by RanggaCasper (MIT): src/ (hooks, sound, D3D8) and the Vulkan renderer. The desktop/ directory adapts the Android host for Linux desktop use.
Desktop Linux changes
  • desktop/main.cpp: desktop window (fullscreen/windowed, F11), XDG data directories, system information from /proc, and laptop-friendly defaults.
  • desktop/game_files.cpp: finds the game in ~/.local/share/black-linux/game, ~/Games/Black, or $BLACK_GAME_DIR. JNI/Android code removed.
  • desktop/input.cpp, update.cpp, touch.cpp: JNI code removed; skin paths point to /usr/share.
  • desktop/vulkan.cpp: Vulkan surfaces no longer require an Android window (the cause of the renderer init failed crash in 0.1.0). Automatic GPU selection prefers discrete, then integrated GPUs.
  • desktop/touch.cpp: touch controls are hidden by default; keyboard/mouse is the initial input mode. The overlay appears when the touchscreen is actually used.
  • src/common/menu.cpp: Touch/Gyro pages replaced with Controller; Android-only "Check for updates" menu removed. Credits list the Linux port and link to this project (YouTube, GitHub, Saweria, Ko-fi).
  • src/game/fps_counter.cpp: the title menu watermark reads "Black Linux".
  • src/d3d/render_thread.cpp: SSE2 implementation for x86_64 added for state comparisons previously using ARM NEON.
  • sdk/tools/recomp/main.cpp: XBE_HEADER_ONLY mode allows building the host without game files.
Build the .deb from source (no game files required)

On Ubuntu 24.04 / Linux Mint 22.x (x86_64):

./build-from-source.sh
sudo apt install ./release/black-linux_*.deb

Test status (version 0.1.3)

The following results are recorded for the project; they do not imply testing on all hardware.

ComponentStatus
Recompilation from an original USA ISO (SHA-1 82d05881…) on ThinkPad X270✅
Vulkan renderer on Intel HD 620✅ Running smoothly since 0.1.1
Android touch controls hidden on laptops✅ 0.1.2
Host updates without a full recompile (object cache)✅ Since 0.1.1
"Black Linux" title watermark, Linux port credit and project links✅ 0.1.3

Credits

  • XboxXBE-Recomp SDK by TGP482 (MIT): sdk/.
  • Black for Android by Rangga Casper (MIT): src/, desktop/, config/, data/.
  • Third-party libraries (SDL3, Dear ImGui, glslang, Zydis, toml++) are downloaded during the build. See sdk/THIRD_PARTY.txt.
  • Linux desktop port and .deb packaging: Katon Bagaskoro (Katon17).

License: MIT (see LICENSE).

Support the project