Pocket Cyberdeck — Pi Zero 2 W Overview Phone-class Linux cyberdeck built around a Raspberry Pi Zero 2 W (already owned). Target form factor: ~80–130 mm wide, ~15 mm thick — pocket-sized, not a full cyberdeck or laptop. Feasible and proven: this exact combination (Zero 2 W + 5" 800×480 HDMI touch panel) has been built before as a pocket cyberdeck. The Zero 2 W's only display output is mini-HDMI — so the screen is a plug-and-play HDMI LCD with capacitive touch (touch reports over USB as a HID device, works out of the box in Linux). The one real constraint is 512 MB RAM. It rules out Chromium and heavy desktops; everything else (terminals, TUIs, media, 8–16-bit emulation, light browsing via Lynx) works fine. Case layout options Three orientations considered (dimensions ≈, scale in the diagram: 2 px/mm): A — 5" PORTRAIT (HDMI 800x480) 82 x 122 x 15 mm ┌──────────────────┐ │ 3.5mm LED │ <- top edge │ ┌──────────────┐ │ │ │ 5" TOUCH │ │ │ │ 480 x 800 │ P│ <- power │ │ (portrait) │ V│ <- volume │ │ │ │ │ └──────────────┘ │ │ speaker grille │ └────────┬─────────┘ USB-C touch-only + 2 side buttons; closest to a real phone B — 3.5" + KEYS (HDMI 640x480) 92 x 80 x 15 mm ┌────────────────────────┐ │ [power] │ │ ┌────────────────────┐ │ │ │ 3.5" 640 x 480 │ │ │ │ touch (HDMI) │ │ │ └────────────────────┘ │ │ [ESC][TAB][SPC][ENT][M]│ └──────┬───────────┬─────┘ USB-C 3.5mm most compact; plug-and-play HDMI + 5-key GPIO matrix C — 4" + KEYS (SPI 480x320) 108 x 78 x 15 mm ┌────────────────────────────┐ │ [power] │ │ ┌────────────────────────┐ │ │ │ 4" 480 x 320 (SPI) │ │ │ └────────────────────────┘ │ │ [ESC] [SPACE] [ENT] [M] │ └───────┬──────────────┬─────┘ USB-C 3.5mm biggest display; needs SPI + ~6 GPIO (less plug-and-play) Internal stack (back → front, ~15 mm total): back plate (3D printed) -> LiPo 1S 2500-4000 mAh + IP5310 USB-C charge/boost module -> Pi Zero 2 W + GPIO expansion + keys -> display panel (HDMI/FPC + touch over USB) -> front plate + bezel (3D printed) Recommendation: A (5" portrait) for phone feel, or B (3.5" + keys) if you want the keyboard and the smallest footprint. C is only worth it if you specifically want 480×320 and accept SPI wiring. Parts list (BOM) Prices approximate, checked Dec 2026 (UK). "Have" = already owned. Part Spec Price Raspberry Pi Zero 2 W quad A53 1 GHz, 512 MB, Wi-Fi/BT have 5" display (option A) 800×480 IPS, HDMI in, 5-pt capacitive touch (USB HID), e.g. Waveshare 5" HDMI LCD (H) / ELECROW 5" £45–65 (Amazon UK); ~$33–45 AliExpress 3.5" display (option B) 640×480 IPS, HDMI, capacitive touch (Waveshare 3.5" HDMI touch) ~£45 (Pi Hut) 4" display (option C) 480×320, SPI + resistive/cap touch (Waveshare 4" C) ~£30 microSD card 32 GB, A2 rated £8–12 LiPo battery 3.7 V 1S, 2500–4000 mAh pouch (fits phone size) £5–10 Charge + boost module IP5310 USB-C in, 5 V 3 A out, switch + LED (one chip does charge + boost) £4–6 GPIO expansion 1-to-3 header breakout for Pi Zero £3–5 Mini-HDMI → micro-HDMI adapter or short right-angle cable £3–5 Keys 5× 12 mm tactile switches (options B/C) £2–5 Audio 3.5 mm TRRS plug + 28 mm 8 Ω speaker £3–5 Misc wiring FPC cable for panel, dupont wires, USB-C right-angle plug £5–8 3D print ~100 g PLA/PETG (front + back plates, bezel) £1–3 filament Total (new, option A) ~£90–130 Power & battery Pi Zero 2 W: ~0.5–1 W idle, ~2 W under load (Wi-Fi on). Panel: ~1–1.5 W (backlight dominates). 3000 mAh @ 3.7 V = 11.1 Wh; at ~2.5–4 W system draw with boost losses → ~2–4 h mixed use. Runtime tips: disable Bluetooth when unused, CPU governor powersave for standby, screen blanking after 60 s. Safety: proper 1S charge IC (IP5310 handles this), don't run the cell below 3.3 V, keep the LiPo away from the Pi's heat (it's in the middle of the stack, so a thin insulating pad on its back is wise). No fan needed; optional heatsink on the SoC + thermal pad to the back plate. Software OS: Raspberry Pi OS 64-bit (Bookworm), Lite base. SD boot. (The Zero 2 W can also boot from USB 2.0, but SD is simpler.) UI — pick one: Framebuffer launcher (lightest, recommended first): Python + Pillow app drawing a touch launcher grid on /dev/fb0, with an on-screen keyboard. Lowest RAM, most "terminal device" feel. Apps launch as processes; terminal is drawn in-UI (pty + Pillow) or via chtybar/ fbterm. Minimal X11: LightDM/Openbox + a touch-friendly launcher (e.g. a small Python grid or cage). Touch panel is a USB HID device — calibrate with xinput. Runs kitty/ alacritty + tmux comfortably at 512 MB. Light Wayland (labwc/wayfire): works but tight at 512 MB. Only if you need it. Apps that work well: terminal + tmux, neovim, htop, ranger, Lynx/Lincurse (web), mpv (audio; simple 720p video OK), retroarch (8–16-bit great, PS1 borderline). Avoid: full Chromium (OOMs), heavy compositors, full GNOME/KDE sessions. Audio: 3.5 mm jack out → speaker; alsamixer to set levels. Keys on GPIO: 5 keys across 2 GPIO rows (matrix) + a Python reader thread or gpiozero; map to ESC/TAB/SHIFT/SPACE/ENTER via uinput or xdotool. Build order Breadboard test: panel + Zero 2 W + bench PSU; verify HDMI out, touch input ( xinput test / /dev/input/event*), audio. Flash Bookworm, install chosen UI stack, write launcher, profile power with powertop. Wire IP5310 + LiPo; verify 5 V under load; add power switch. Design case in Fusion360/Tinkercad from the panel datasheet dimensions (bezel, FPC bend radius, USB-C position); print. Final assembly: stack per diagram above; test battery runtime; add speaker + audio wiring. References Hackster.io: "Raspberry Pi Zero 2 W Cyberdeck" (Zero 2 W + generic 5" 800×480 HDMI touch, GPIO expansion board pattern) — https://www.hackster.io/techtalkies1/raspberry-pi-zero-2-w-cyberdeck-d18fc2 Waveshare 5" HDMI LCD (H), 800×480 — https://www.waveshare.com/5inch-hdmi-lcd-h.htm Waveshare 3.5" HDMI capacitive touch 640×480 (via Pi Hut) — https://thepihut.com/collections/touchscreen-displays-for-raspberry-pi bimbotech "how to build a cyberdeck" overview — https://bimbotech.co/cyberdeck/