How maizeshark/mcu2-desktop works
mcu2-desktop runs Tesla QtCar firmware in a Linux chroot, exposing the UI through VNC or a native touchscreen and optionally simulating vehicle peripherals. The main workflow is: use the tesla command to prepare a firmware image with the patch kit, start QtCar, then interact with it while optional vehicle, GPS, audio, connectivity, and media features supply data or devices. The README documents these capabilities; several feature implementations were not sampled, so their internal links are shown only where documented, not inferred from directory names.
Main entry points: tesla tesla CLI · main.rs Touch input · touch.rs Virtual touchscreen · mcu2_patch.py Firmware patcher
Components 25
Image preparation
- Firmware patcher
mcu2-patchkit/mcu2_patch.py - Firmware profiles
mcu2-patchkit/profiles
QtCar runtime
- tesla CLI
tesla - QtCar chroot
- Touch input
tesla-touch/src/main.rs - X pointer capture
tesla-touch/src/record.rs - Gesture mapping
tesla-touch/src/main.rs - Virtual touchscreen
tesla-touch/src/touch.rs - Touch passthrough
tesla-touch/src/passthrough.rs - Visible cursor
tesla-touch/src/cursor.rs
Vehicle simulation
- Vehicle state
vehicle/tesla-can.py - Vehicle web panel
vehicle - BeamNG bridge
beamng/beamng-bridge.py
Peripheral features
- GPS source
vehicle/tesla-gps.py - Offline navigation
navigation - Audio support
tools - Bluetooth bridge
bluetooth/hci-bridge.py - Local speech
voice/voice-server.py - USB music and camera
tools - Wi-Fi and cellular
tools
Host tools
- Bootable USB
stick - Run log summary
tools/logsummary.py
Other components
- Desktop user
- VNC viewer
- Native display
Connections 27
- Desktop user → tesla CLI: runs commands
README.md - tesla CLI → Firmware patcher: builds image
README.md - Firmware patcher → Firmware profiles: uses profile
mcu2-patchkit/mcu2_patch.py - tesla CLI → QtCar chroot: starts chroot
README.md - Desktop user → VNC viewer: views UI
README.md - VNC viewer → QtCar chroot: displays screen
README.md - Desktop user → Touch input: provides input
README.md - Touch input → X pointer capture: captures events
tesla-touch/src/main.rs - Touch input → Gesture mapping: maps gestures
tesla-touch/src/main.rs - Gesture mapping → Virtual touchscreen: emits touch frames
tesla-touch/src/main.rs - Virtual touchscreen → QtCar chroot: supplies touch
README.md - Desktop user → Native display: uses display
README.md - Native display → Touch passthrough: passes touches
README.md - Touch passthrough → Virtual touchscreen: emits touch frames
tesla-touch/src/passthrough.rs - Visible cursor → VNC viewer: shows cursor
- Vehicle state → QtCar chroot: supplies vehicle data
README.md - Desktop user → Vehicle web panel: changes vehicle state
README.md - BeamNG bridge → Vehicle state: drives vehicle state
README.md - GPS source → QtCar chroot: supplies position
README.md - Offline navigation → QtCar chroot: provides navigation
README.md - Audio support → QtCar chroot: provides sound
README.md - Bluetooth bridge → QtCar chroot: bridges Bluetooth
README.md - Local speech → QtCar chroot: recognizes commands
README.md - USB music and camera → QtCar chroot: provides media
README.md - Wi-Fi and cellular → QtCar chroot: provides connectivity
README.md - tesla CLI → Bootable USB: builds boot media
README.md - tesla CLI → Run log summary: summarizes runs
README.md