OpenDuo for the Microsoft Surface Duo 1 (Snapdragon 855, SM8150, codename epsilon).
This repository is a Duo 1 port of OpenDuo / arqueiro/OpenDuo (upstream targets Surface Duo 2 only).
It keeps the OpenDuo dual-panel Wayland compositor (duo-wc) and shell (duo-shell), adapted to Duo 1 hardware and an ABL tethered Debian bring-up — without flashing Duo 2 images onto a Duo 1.
OpenDuo1 is not affiliated with Microsoft. “Surface” and “Surface Duo” are Microsoft trademarks, used only to name the device.
Userspace bring-up (usable preview) on Duo 1:
| Area | Status |
|---|---|
| Boot | ABL fastboot boot into Debian on win (PARTLABEL); cold boot returns to Android |
| Both panels | 1350×1800, scale 2.55, hinge gap 84 px |
| Touch | iptsd 045E:0C01 / 0C02 → DSI-1 / DSI-2 |
| OpenDuo session | duo-wc + duo-shell + squeekboard (openduo-start) |
| Power key | Blank/unblank only (logind does not power off) |
| Apps | Chromium (no-sandbox wrapper), Weather, Discover/Software, Konsole, Dolphin |
| Gamepad | On-screen pad (hingeboard-derived); opens on the panel you tap; follows rotation |
| Auto-rotate | Partial (gravity bridge) |
| Camera | Opens; image pipeline incomplete |
| Full Duo2-style image/installer | Not for this phone — do not run Duo 2 install-openduo.sh here |
See docs/PORT-DUO1.md and devices/surface-duo/README.md.
- Never flash Duo 2 ESP/rootfs images onto Duo 1
- Never
fastboot flashing lock/ enroll custom AVB keys / flashboot_*casually - Prefer tethered
fastboot bootuntil you knowingly choose another path - Address disks by PARTLABEL / by-name, never by raw
sdXletter alone - Backup Android userdata / games before any partition work
Assumes you already have a Duo 1 Debian-on-win image from the linuxduobench/sam1am-style stack and USB NCM networking.
fastboot --set-active=a
fastboot boot path\to\duo-debian.img
ssh -i path\to\key root@169.254.66.1
REM from a Windows host with this repo:
devices\surface-duo\host-duo-wc.bat start-shell
devices\surface-duo\host-duo-wc.bat restoreOn device after deploy:
/opt/duo/bin/openduo-start # OpenDuo shell
/opt/duo/bin/openduo-stop # back toward Plasma/SDDM
openduo-gamepad # on-screen gamepad (toggle off by running again)Prefer SSH 169.254.66.1 on Windows UsbNcm (not only 10.66.0.1).
| Path | Role |
|---|---|
devices/surface-duo/ |
Duo 1 conf, host scripts, deploy, gamepad, shell launch patches |
docs/PORT-DUO1.md |
Port plan, safety, milestones |
compositor/duo-wc/ |
Wayland compositor (includes Duo1 edge-touch fix) |
shell/duo-shell/ |
Touch shell (phone may also carry shell-patches/) |
| Rest of tree | Upstream OpenDuo Duo 2 stack — reference only on Duo 1 until ported |
devices/surface-duo/
duo-wc.conf # scale 2.55, edge_swipe off, power_key_suspend off
host-duo-wc.bat # start-shell | restore | status | deploy
scripts/openduo-start.sh
scripts/run-{weather,discover,software}
shell-patches/launchenv.py # D-Bus/Wayland env + panel-bound gamepad
gamepad/ # hingeboard pad-only overlay + install script
logind-power-key.conf
Build compositor (WSL aarch64 example):
./devices/surface-duo/build-duo-wc-wsl.sh
./devices/surface-duo/deploy-duo-wc.shHinge override: DUO_HINGE_GAP_PX=84.
Derived from brysonwf/hingeboard (GPL-2.0), pad mode only (no Phosh laptop session switch):
- Opens on the panel you launched from (home / dock / drawer)
- X / Gamepad Off / toggle launcher to close
- Stick axes follow panel rotation (
HINGEBOARD_ROTATE_AUTO) - Needs
duoctl exec-trustedfor layer-shell under duo-wc
Upstream OpenDuo is a full dual-screen Debian system for Duo 2 (SM8350): WOA UEFI, mainline 7.x, its own installer and apt stream.
OpenDuo1 reuses compositor/shell ideas and code on Duo 1 with:
- SM8150 kernel / iptsd touch (not duo2-touchd)
- ABL + existing
winroot as the bring-up host - Duo1 panel geometry and hinge gap
- Explicit refusal of Duo 2 flash packages on this device
If you own a Duo 2, use upstream OpenDuo releases — not this port’s Duo 1 notes.
- OpenDuo / OpenDuo1 tree: GPL-3.0 (see upstream license files)
- Hingeboard-derived gamepad under
devices/surface-duo/gamepad/: GPL-2.0-or-later (compatible)
- OpenDuo / community Duo 2 Linux work
- linuxduobench / sam1am Duo 1 kernel & Debian bring-up
- hingeboard on-screen gamepad/keyboard
- linux-surface / iptsd ecosystem
Maintainer packaging for this Duo 1 track: Arqueiro (arqueiro@gmx.net).