- Streamline README, INSTALL, MANUAL, ARCHITECTURE, and POWER-OPTIMIZATION docs - Add release ZIP packager (package-image.sh, scripts/package-release-zip.py, rebuild-image.sh --package) with sanitized rootfs, SHA256SUMS, and FLASH-INSTRUCTIONS.txt - Add automatic offline MT6797 firmware ext4 injection in flash-mtk.py and scripts/extract-vendor-fw.py - Backport X11 DPMS wake + XResetScreenSaver in geminux-powerd and _GEMINUX_LOCK_READY + grab-first sync in geminux-lock, rebuild aarch64 prebuilts, and expand tests
9.7 KiB
Architecture
Geminux pairs a custom-patched Linux 7.3.5 kernel with XLibre X11, a hardened suckless desktop, unified .Xresources + native wallpaper rendering, zero-poll C11 daemons, pure-Linux MTK flashing/packaging tooling, and signed local APK pinning.
Kernel and MediaTek MT6797X support
Vanilla Linux 7.3.5 builds from patches/kernel/ with CONFIG_XFRM_USER=y and IPsec modules (esp4, esp6, af_key, xfrm_interface) for 3GPP IMS:
| Patch | Summary |
|---|---|
0001-ixoo-gemini-pda-mainline-7.3.5.patch |
Core MT6797X / Gemini PDA 7.3.5 platform, DRM, keypad, PMIC, and fuel-gauge base |
0002-mt6797-ccci-cldma-and-md1-domain.patch |
Staged mt6797-ccci-cldma baseband transport and MD1 power domains |
0003-arm64-dts-mediatek-geminux-gemini-pda.patch |
Device Tree pinmux, regulators, and peripheral bindings |
0004-gemini-ssd2092-display-and-touch.patch |
Solomon Systech SSD2092 DSI FHD+ panel and multi-touch controller fixes |
0005-mt6797-consys-wifi-factory-firmware.patch |
CONSYS Wi-Fi/BT drivers and NVRAM/factory firmware loading |
0006-mt6797-boot-cleanups.patch |
Early boot and console cleanups |
0007-mt6797-wlan-peer-deauth-and-rekey.patch |
WLAN peer deauth recovery and GTK rekey stability |
0008-gemini-resume-wake-and-spm-standby.patch |
S3 resume wakes, mt6797-spm-sleep standby, mtk-eint debounce clear, mtk-pmic-keys |
0009-mt6797-wlan-drop-free-stability.patch |
CONSYS WLAN RX/TX buffer drop-free handling under load |
0010-mt6797-ccci-md1-boot-hs-v2-and-rpc.patch |
MD1 boot handshake v2 and CCCI RPC stabilization |
0011-gemini-lid-sync-filter-and-debounce.patch |
Hall GPIO66 synchronous lid filtering, 1 ms Hall / 10 ms keypad debounce, touch inhibit |
0012-gemini-lid-wake-and-fg-taper-fix.patch |
PM_POST_SUSPEND + raw-GPIO lid reconciliation and mt6351+bq25890 zero-current OCV/taper fuel gauge |
0013-gemini-pmic-wake-and-spm-safety.patch |
Moves mt6397_irq_suspend/resume to LATE_SYSTEM_SLEEP_PM_OPS and adds SPM WAKE_PCM_WDT + 5000 ms cntp backstop |
- Graphics & Radios:
mediatek-drm+SSD2092DSI/touch, earlysimpledrm(DRM_SIMPLEDRM=y+ rotatedTER16x32console), Mali-T880panfrost,sii902xHDMI bridge, andmt6797_wlan_core/btmt6797CONSYS. - Modem / eSIM / IMS:
mt6797-ccci-cldmaexposes/dev/ccci_*,/dev/ttyC0..3, andccmni*viastruct mt6797_ccci_header(mt6797_ccci.h). geminux-ccci-fs.c serves MD1 boot HS v2 / NVRAM / RPC; geminux-cellctl.c manages SIM/ST33 eUICC (lpac) &ccmni*PDNs; geminux-imsd.c implements VoLTE/VoWiFi (strongswanSWu), MILENAGE AKA, XFRMipsec-3gpp, SIP,RP-DATASMS, and 20 ms RTP. - Boot, LUKS2 FDE & Recovery:
mkbootimg-osm0sispacks LK images (<= 16 MiBboot/recovery,<= 512 KiBDTB). Built-inBLK_DEV_DM=y,DM_CRYPT=y, and ARMv8 AES-CE (CRYPTO_AES_ARM64_CE_BLK=y) power LUKS2 unlock in src/initramfs/init (cryptsetup+/etc/gemini-us.kmap,DM_DISABLE_UDEV=1,e2fsck -p,resize2fs -f). src/initramfs/init-recovery provides a USB NCM shell (172.16.42.1/24) with LUKS2-aware helpers. See POWER-OPTIMIZATION.md for suspend and CPU/power architecture.
Graphics, window management, and stability
- XLibre (
25.x): Cross-compiled against pure Alpine Edgeaarch64sysroots (scripts/build-xlibre.sh). 10-geminux-gpu.conf usesAccelMethod "none",ShadowFB "true",TearFree "true",PageFlip "false",SWcursor "true", andRotate "left"to avoid rotated DSI tearing while keeping Panfrost EGL/OpenGL 3D enabled. Zero Wayland compositors are installed. dwm: 32-bit ARGB XEmbed systray (_NET_SYSTEM_TRAY_S0, reparent/input race fixes, restacked under fullscreen lockscreen); EWMH/ICCCM/NETWM (_NET_WORKAREAstruts,_NET_WM_STATE_{FOCUSED,STICKY,ABOVE,HIDDEN},WM_CHANGE_STATE,nofocuswin, Wine/DXVK focus recovery);in_xerrorrecursion & non-fatalRENDERerror guards, bounded200 msgetservertime(), async pointer/button grabs; PangoPANGO_ELLIPSIZE_END,FC_COLOR=FcFalse, and UTF-8 sanitization indrw.c;>= 78 pxbar,Mod4tap-latch,Fn+F,Mod4+Shift+r/SIGUSR1.Xresourcesreload, andSIGHUPself-reexec.dmenu&st&dunst:dmenuuses Pango/HarfBuzz82 pxrows,dmenu_xerror/RENDERguards,FC_COLOR=FcFalse, UTF-8 sanitization, and pairs withgeminux-launcher.stadds HarfBuzz Fira Code ligatures (hb.c), wheel scrollback,FocusIn/FocusOutcursor sync + unfocused blink gating, andXA_RESOURCE_MANAGER+SIGUSR1reloads.dunst v1.12.2(src/dunst-notify/) runs pure-X11 withoutgdk-pixbuf.
Unified theming, wallpaper engine, and media
- Unified Theming: Defaults to Anodized (
192 DPI,baseFontSize: 32,Xcursor.size: 64).geminux-sessionmerges new/etc/skel/.xthemes/*.xthfiles into~/.xthemes/, seeds/etc/skel/.config/geminux/wallpaper.confon first boot, and loads~/.Xresourcesviaxrdb -nocpp -load. geminux-xth.h powersgeminux-themesinteractive Editor &.xthImporter (~/.config/geminux/themes/).geminux-apply-themesyncs Dunst, GTK2/GTK3/GTK4/libadwaita(ADW_DISABLE_PORTAL=1+dconfin 10-geminux-env.sh),xsettingsd, Qt5/Qt6 (qt6ctQT_QPA_PLATFORMTHEME=qt6ct:gtk3+ Kvantum), Tk/Ttk (gtkTtk 0.9in src/gtkTtk/), live X11 clients, and wallpaper mattes (USE_THEME_BG=1). - Native X11 Wallpaper Engine: geminux-wallpaper.h + geminux-wallpaper-x11.h decode images in pure C via
dlopen("libgdk_pixbuf-2.0.so.0")(geminux-gdk-pixbuf, EXIF orientation), Cairo PNG,libjpeg-turbo,libwebp, andmagick/convertfallback; draw to a retained rootPixmap(_XROOTPMAP_ID,ESETROOT_PMAP_ID,RetainPermanent,XKillClient, XRandR/Xinerama multi-monitor); and bundleartwork/wallpapers/into/usr/share/geminux/wallpapers/. - Webarchy & Media: webarchy.cpp (
GTK3+WebKit2GTK-4.1, software crash fallback), pure-Cgdk-pixbuf 2.42.12+ GSettings schemas (scripts/build-webarchy.sh, scripts/compile-gsettings-schemas.sh), nativempv(mpv.conf),ffmpeg/gst-libav, andyt-dlp(quickjs).
Custom UI toolkit and zero-poll C11 daemons
libgemui.so(src/libgemui/): Double-buffered Cairo + Pango/HarfBuzz X11 toolkit withXA_RESOURCE_MANAGER+SIGUSR1live reloads, lockscreen restacking, contrast guards, clipboard paste, and socket IPC.- 11 HiDPI apps (src/geminux-apps/):
geminux-control,geminux-audio,geminux-datetime,geminux-net,geminux-dialer,geminux-callscreen,geminux-sms,geminux-contacts,geminux-camera,geminux-themes, andgeminux-lock. - Zero-poll daemons (src/geminux-daemons/):
geminux-powerd,geminux-statusd,geminux-touchd,geminux-leds,geminux-ccci-daemon,geminux-cellctl,geminux-imsd,geminux-modem-ctl,geminux-bt-obex,geminux-dnsctl,geminux-power-ctl,geminux-power-audit,geminux-tzctl,geminux-wifi-nvram, andgeminux-checkpw(detailed in POWER-OPTIMIZATION.md).
APK package policy
Target $ROOTFS installs only pure Alpine Edge (main, community, testing) plus 11 RSA-4096 signed @geminux APKs built by scripts/package-local-apks.sh: geminux-kernel-modules, geminux-xlibre, geminux-suckless, geminux-dunst, geminux-ui, geminux-bantam (build-bantam.sh), geminux-gsocket (build-gsocket.sh), geminux-gdk-pixbuf, geminux-webarchy, geminux-gtkttk (build-gtkttk.sh), and geminux-config (including bundled wallpapers, /etc/mpv/mpv.conf, geminux-sdcard udev/OpenRC units). /etc/apk/world pins all 11 with name@geminux=version and blocks disallowed Rust/Wayland overrides via scripts/rootfs-prune-packages.txt, enforced by scripts/check-rebuild.sh. /etc/apk/protected_paths.d/geminux.list shields configs across upgrades.
Flasher, offline provisioning, and release ZIP packager
- BROM/DA Flasher: flash-mtk.py uses vendored
mtkclient+MTK_DA_V5_MT6797.bin, write-blocking protected factory partitions (LBA 0..0x6FFFF/0x0E000000, verified in scripts/test-flash-mtk-gpt.py). - Staged ext4 Customization: On temporary ext4 copies, scripts/extract-vendor-fw.py injects MT6797 firmware blobs via
debugfs/e2fsck, scripts/geminux_accounts.py provisions SHA-512/etc/{passwd,group,shadow}+/home/<user>, and scripts/geminux_luks.py optionally applies offline LUKS2 encryption (cryptsetup reencrypt). - Release ZIP Packager: package-image.sh (scripts/package-release-zip.py) clones and sanitizes
geminux-rootfs.img(stripping SSH keys and proprietary MT6797 blobs by default), runse2fsck -fn, generatesSHA256SUMS.txt+FLASH-INSTRUCTIONS.txt, and writes a verified ZIP64 release archive +.sha256.