Turns your Boox Tab X (or any Boox/Tablet+Stylus) into a graphics tablet for your PC over USB.
Two things happen simultaneously:
Screen → Tablet
The PC captures its primary monitor and streams it as MJPEG over an ADB USB tunnel. The Tab X browser opens http://localhost:8765 and displays the stream fullscreen. No Wi-Fi needed — all traffic goes through the USB cable.
Stylus → PC
Instead of relying on the browser to capture input (which Boox intercepts at the OS level), the server reads raw events directly from the Wacom digitizer on the tablet using adb shell getevent /dev/input/event3. Every stylus position and button press is streamed over USB to Python, which injects it into Windows as mouse input using SendInput.
Wacom digitizer → /dev/input/event3 → adb getevent → Python → Windows SendInput
PC monitor → mss capture → JPEG → ADB USB tunnel → Tab X browser
- Windows 10/11
- Boox Tab X connected via USB
- USB Debugging enabled on the Tab X
- Python 3.9+
- ADB installed (comes with Android Studio or Platform Tools)
1. Enable USB Debugging on the Tab X
- Settings → About tablet → tap Build number 7 times
- Settings → Developer options → enable USB debugging
- When prompted on the tablet, tap Allow
2. Install Python dependencies
pip install -r requirements.txt
python server.py
On the Tab X, open the browser and go to:
http://localhost:8765
Tap ⛶ in the bottom-right corner to go fullscreen.
| Input | Action |
|---|---|
| Stylus touch & drag | Moves cursor / draws |
| Stylus lift | Mouse up |
| Barrel button (side) | Right-click |
| ⛶ button | Toggle fullscreen |
Edit the settings at the top of server.py:
STREAM_FPS = 15 # Frames per second (increase for smoother display)
STREAM_QUALITY = 65 # JPEG quality 1–100 (lower = faster, less detail)
STREAM_SCALE = 0.75 # Resize factor before streaming (lower = faster)- The stream fills the full tablet screen (
object-fit: fill) so stylus position corresponds exactly to cursor position on the PC. There is slight aspect ratio distortion if your monitor isn't 4:3. - Hover tracking works — the cursor follows the pen before it touches the screen.
- E-ink refresh rate limits how smooth the display looks, but input latency to the PC is unaffected since input bypasses the display entirely.