yserver: A modern X11 server written from scratch in Rust
Summary
yserver is a modern X11 server written from scratch in Rust, capable of running full desktop environments like MATE, XFCE, and Cinnamon while dropping legacy baggage. It supports many X extensions and has been tested on various hardware.
View Cached Full Text
Cached at: 06/12/26, 04:49 AM
joske/yserver
Source: https://github.com/joske/yserver
yserver
A modern X11 server written from scratch in Rust.
The goal is not to clone Xorg. It is to provide a practical X11 server that runs real desktop environments, window managers, and applications on modern Linux while dropping legacy baggage (multiple screens, non-TrueColor visuals, indirect GLX, the DDX driver ABI, endian-swapped clients, and so on).
See docs/high-level-design.md for the full design and scope.
Name
The yserver name is the ‘working’ name as it was the first idea that popped into my head when
starting the project. But there are multiple projects on GitHub with this name (but none for X11 servers),
the name is subject to change. Not a priority now.
Status
yserver (standalone DRM/KMS) can now run full MATE/XFCE/Cinnamon desktops.
Other tested window managers include FVWM3, e16 and wmaker.
We support the following extensions:
- BIG-REQUESTS
- Composite
- DAMAGE
- DPMS
- DRI3
- GLX
- Generic Event Extension
- MIT-SCREEN-SAVER
- MIT-SHM
- Present
- RANDR
- RENDER
- SHAPE
- SYNC
- X-Resource
- XFIXES
- XInputExtension
- XKEYBOARD
- XTEST
GLX_EXT_texture_from_pixmap
Implemented and tested on AMD, intel, Asahi and Qualcomm. It can NOT (read: NEVER) work on nvidia proprietary driver, and on the only nvidia card I have (GTX 1050), the nouveau driver can not even bring up Xorg. Nouveau may work on other cards, but untested.
Demo
With TFP implemented, we now support compiz, demo here:
https://github.com/user-attachments/assets/dc266c55-e9ee-4649-a0c4-be3db2526713
Hardware tested
yserver (standalone DRM/KMS) has been tested end-to-end against a
MATE / xfce4 / Cinnamon desktop on:
- AMD — Ryzen 9 6900HX (Rembrandt, RDNA2, RADV); i9 13900k + RX580 (Polaris/GCN4, RADV).
- Intel — i5-7200U (Kaby Lake, ANV) iGPU.
- NVIDIA — i5 6500 with GTX 1050 (proprietary driver).
- Snapdragon X1 X1E80100 (Adreno X1, Turnip).
- Apple M1 MBA, M2 MBP on Asahi Linux (apple-drm KMS + asahi GPU, Mesa AGX-V).
- Virtual — virtio-gpu inside
virtme-ng(Venus passthrough).
Running the standalone DRM/KMS server
yserver uses libseat for seat management if available.
It can also drive atomic KMS directly, but then your user needs access to /dev/dri/ and to /dev/input/.
It requires a recent stable Rust toolchain and the following dependencies:
Arch
sudo pacman -S just gcc libseat libxshmfence libxkbcommon libinput glslc systemd-libs fontconfig
Ubuntu
sudo apt install just gcc libseat-dev libxshmfence-dev libxkbcommon-dev libinput-dev glslc libudev-dev libfontconfig-dev
The Justfile wraps the recipes:
## switch to a free TTY, then run:
just startx
which will start yserver and then execute your ~/.xinitrc (or fall back to /etc/X11/xinit/xinitrc)
If you are using libseat, you can switch VT, but if you use direct, you CAN NOT switch VT when yserver is running. Zap the server, or log out of your session otherwise.
Some convenience keybinds are available:
- Ctrl-Alt-Backspace: zap the server, return to console
- Ctrl-Alt-Enter: create a screenshot/scanout of the framebuffer in CWD
- Ctrl-Alt-F12: dump all drawables as PPM files to CWD
Regression coverage with xts5 and rendercheck
We run the X.Org X Test Suite (xts5) against yserver to gauge protocol completeness.
Latest pass numbers per scenario live in docs/test-status.md.
License
This project is licensed under the MIT license. Please check LICENSE.
Similar Articles
zinnia: a modular 64-bit Unix-like kernel written in Rust
Zinnia is a modular 64-bit Unix-like kernel written in Rust, designed to boot on UEFI systems and run a modern desktop with Wayland or X11. It implements POSIX APIs and common Linux/BSD extensions.
Show HN: Building a web server in assembly to give my life (a lack of) meaning
ymawky is a web server written entirely in ARM64 assembly for macOS, featuring syscall-only operations without libc and basic HTTP capabilities.
XS: A programming language. Anywhere, anytime, by anyone
XS is a new programming language distributed as a single statically-linked binary containing the compiler, language server, debugger, formatter, linter, test runner, profiler, and package manager. It runs unchanged on multiple platforms including Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi, and offers multiple backends including a JIT, VM, and transpilers to C and JavaScript.
building a web server in aarch64 assembly to give my life (a lack of) meaning
The article introduces 'ymawky', a minimal HTTP web server written entirely in aarch64 assembly for macOS, using raw syscalls without libc wrappers to explore low-level system mechanics.
Xs of Y – roguelike that names itself every run. Written in 4kLoC
Xs of Y is a roguelike game written in a custom Lisp dialect called let-go, where each run generates a new title, quest, and rune mappings. The game features a unique magic system based on s-expressions and runs natively or in the browser via WASM.