Hi everyone! I've been working on getting postmarketOS / Alpine Linux with Phosh running on my original Surface Duo, and it's starting to feel like a real phone OS.
Current state:
Boots from RAM for now (fastboot boot, nothing flashed: the rootfs is unpacked into RAM, Android stays untouched)
Kernel: Microsoft's downstream msm-4.14 (4.14.190) with my patches
Userspace: Alpine 3.22 + Phosh 0.47 (patched phoc for dual screen)
A lot of driver work and configs reused from the Matrix project (audio, sensors, camera, touch). Huge thanks to them!
What works:
Both screens. Move apps between screens with a 3-finger swipe (animated)
Hinge sensors and postures: closed = screens off, folded = single screen, auto-rotation in all 4 orientations
"Laptop mode": open in an L shape and you get the app on the top screen, a taskbar and a full keyboard on the bottom one
Calls, SMS and 4G mobile data (custom QMI/IPA data path, since ModemManager can't drive the downstream IPA)
Wi-Fi, Bluetooth, speaker and mic, vibration, torch
Camera (preview + photos)
Deep sleep, even while charging, with wake on the power button
Android-like edge swipe for Back, volume buttons with on-screen indicator, Firefox
Still work in progress:
In-call audio and volume during calls (just fixed volume, testing)
Camera preview orientation in portrait
Some touch edge cases near the screen borders
Installing to storage (later, once it's stable)
Benchmarks for anyone curious: sysbench CPU 1134 events/s single-thread, 5354 multi; ~1.2 W idle with both screens on.