r/XiaomiPad6 • u/bioxvirizm • 15h ago
[Niri + Void Linux] My GitOps-managed Xiaomi Pad 6 (pipa) tablet/laptop hybrid setup
Running Void Linux + Wayland (Niri) as a daily-driver tablet setup on Xiaomi Pad 6 (pipa) — built for speed and managed via GitOps!
Main goal: maximum responsiveness & ultra-low resource/battery footprint
Instead of running heavy desktop environments (GNOME/KDE) or systemd bloat on a mobile SoC, this entire hybrid (touch-first + keyboard-dock) setup is built around instant wake/sleep, hardware acceleration, and minimal background overhead:
- Base OS & Init: Void Linux (
glibc) +runit— sub-second service supervision, tiny RAM footprint (~350–450 MB idle), and zero background bloat. - Lightweight Wayland Stack:
Niri(scrollable tiling with Adreno/Freedreno acceleration, 2.0x scaling, and dynamic 60/120 Hz switching) +Waybar+SwayNCcustom control center (Catppuccin Mocha theme). Hardware & Sensors (Native C Daemons):
- SDSP Auto-Rotation: Custom C daemon (
GIO/D-Bus) hooked up to Qualcomm SDSP (hexagonrpcd-sdsp+libssc+iio-sensor-proxy) withrunitwatchdog recovery and a quick rotation-lock toggle in SwayNC. - Cover & Dock Automation: Magnetic cover sleep/wake via Hall Effect sensor (
msmgpio) + automatic dock mode (270°landscape lock & OSK suppression) when theNanosic 803keyboard cover is attached.
- SDSP Auto-Rotation: Custom C daemon (
Touch & Input Ergonomics:
- Touch-Patched Launcher: Rust
Walker+ GoElephantpatched with native GTK4GestureClicktouch activation alongside inertial finger scrolling. - Virtual Keyboard & Gestures: C++
sysboardwith a custom dual-layout (EN/RU) XKB keymap and Niri layout sync,lisgdedge gestures, andkeyd+dotoolvirtual mouse layers. - Lockscreen: Native C/GTK3
gtk-layer-shellPIN lockscreen (pipa-lock) with a quick "No-PIN" toggle for indoor use.
- Touch-Patched Launcher: Rust
- Battery & Memory Tuning: On-demand Eco mode toggle in SwayNC (drops display to 60 Hz, enables
ath11kWi-Fi power-save &powersaveCPU governor),QCA6390Bluetooth stack, and4 GBzstdzramwith macOS-stylevm.swappinesstuning. - 100% GitOps Workflow: Every config, C binary (
pipa-lock,pipa-autorotate),runitservice, andudevrule is versioned inpipa-dotfilesand deployed automatically in ~5 seconds via Forgejo Actions with live smoke-tests (niri validate, daemon health checks, andsh -nsyntax verification).
Would anyone be interested if I clean up and publish the repo with all the configs, C sources, and build scripts?
