Skip to main content

DeXtop Mode: Samsung DeX & Android Desktop Mode on Linux, macOS & Windows

PyPI version GitHub release License: MIT Platform Python

DeXtop Mode is a modern, cross-platform Python GUI wrapper that launches a virtual second screen displaying your Android smartphone's desktop mode (Samsung DeX, Motorola Ready For, native Android AOSP Desktop Mode, etc.) on Linux (Ubuntu, Debian, Mint, Pop!_OS, Zorin OS), macOS (Intel & Apple Silicon M1-M4), and Windows (10/11).

It utilizes the powerful engine of scrcpy in the background to handle control and high-performance video/audio streaming.


🚀 Key Features

  • Cross-Platform Support (Linux, macOS, Windows):
    • 🐧 Linux: Native Debian package (.deb), 1-line curl script, taskbar integration (StartupWMClass=dextop), and WirePlumber/PipeWire audio routing.
    • 🍏 macOS: Native Disk Image installer (.dmg), dextop-mode.app bundle, and 1-click Homebrew dependency installer.
    • 🪟 Windows: Standalone 64-bit executable (.exe) and 1-click Winget dependency installer.
    • 🐍 PyPI / Pip / Pipx: pip install dextop-mode / pipx install dextop-mode for all platforms.
  • Modern Control Center (GUI): A sleek CustomTkinter desktop interface in dark mode.
  • Automated Wireless Debugging (ADB Over Wi-Fi):
    • Integrated Wireless Pairing (Association) dialog with step-by-step guidance.
    • Direct one-click Wi-Fi connection with smart IP & Port auto-filling.
  • Display Modes & Custom DPI Scaling:
    • Easily toggle between Secondary Display (DeX Mode) and Main Display Mirroring.
    • Customizable desktop display density (160 DPI standard desktop, 200 DPI, 240 DPI).
  • Intelligent Power Management (Anti-Veille):
    • Temporarily disables the smartphone's screen timeout (screen_off_timeout) while DeXtop Mode is running, and restores it automatically when closed.
    • Prevents system sleep during usage (systemd-inhibit on Linux / continuous thread state on Windows).
    • Turns off the physical smartphone screen to save battery and avoid screen burn-in.
  • Automatic & Manual One UI Gesture Repair:
    • Automatically refreshes and restarts the One UI Home launcher (com.sec.android.app.launcher) upon disconnecting to prevent back gesture freezes on Samsung smartphones.
    • Prominent "Repair Phone Gestures (One UI)" button available on both the Connection and Settings tabs for 1-click manual repair anytime.
  • Mouse & Keyboard Lock (UHID):
    • Optional relative mouse capturing (UHID) for high precision control, customizable directly in the Settings tab (press LAlt or Super to release).

🛠️ Prerequisites

  1. Compatible Smartphone:
    • Samsung Galaxy S series (S8 to S26), Note series, or Z Fold.
    • Motorola Edge or Razr series.
    • Any smartphone running Android 11+ (for wireless debugging) or Android 15+ (for native desktop mode).
  2. On your Phone:
    • Enable Developer Options (Settings > About Phone, tap Build Number 7 times).
    • Turn on USB Debugging and Wireless Debugging in Developer Options.
  3. On your Computer:
    • Linux: Any Debian/Ubuntu-based distribution (Ubuntu, Mint, Debian, Pop!_OS, Zorin OS, etc.).
    • macOS: macOS 11+ (Intel or Apple Silicon M1/M2/M3/M4).
    • Windows: Windows 10 or Windows 11 (64-bit).

📥 Installation

Choose your platform below:

🐧 Linux (Debian / Ubuntu / Mint / Pop!_OS / Zorin OS)

Download the latest .deb package from GitHub Releases and install it:

sudo apt install ./dextop-mode_1.1.4_all.deb

Option B: One-Line Terminal Installer

curl -fsSL https://raw.githubusercontent.com/super-magistro/DeXtop-mode/main/install_dex.sh | bash

🍏 macOS (Apple Silicon & Intel)

  1. Download dextop-mode_macOS.dmg from GitHub Releases.
  2. Double-click the .dmg image and open dextop-mode.app!
  3. If scrcpy or adb are missing, DeXtop Mode will offer a 1-click prompt to automatically install dependencies via Homebrew.

Option B: One-Line Terminal Installer

Installs Homebrew (if needed), scrcpy, adb, Python-TK and DeXtop Mode, and adds DeXtop Mode to Launchpad:

curl -fsSL https://raw.githubusercontent.com/super-magistro/DeXtop-mode/main/install_dex.sh | bash

🪟 Windows (10 / 11)

  1. Download dextop-mode_windows_x64.exe from GitHub Releases.
  2. Double-click dextop-mode_windows_x64.exe to launch!
  3. If scrcpy or adb are missing, DeXtop Mode will offer a 1-click prompt to automatically install dependencies via Winget.

🐍 PyPI / Pip / Pipx (Universal for All OS)

pip install dextop-mode
# or via pipx
pipx install dextop-mode

macOS note: Homebrew's Python ships without tkinter. If DeXtop Mode reports No module named '_tkinter', run brew install python-tk@3.X (matching your Python version) — or simply use the one-line installer above, which handles it.


💡 How to Use

  1. Ensure your phone and PC are on the same Wi-Fi network (or connected via USB).
  2. Open DeXtop Mode.
  3. If using Wi-Fi for the first time:
    • Click Pair a New Device.
    • On your phone, inside Wireless Debugging, select Pair device with pairing code.
    • Enter the IP, the pairing port, and the 6-digit code shown, then click Start Pairing.
  4. In the main window, type the connection port shown on the phone (or plug in USB).
  5. Select your preferred Audio output in the Audio tab.
  6. Click Start DeX.
    • Your phone screen will turn off, the control GUI will hide itself, and your DeX window will pop up!
    • When you close the DeX window, the control GUI will reappear.

🗑️ Uninstallation

To remove DeXtop Mode and clean up configurations:

  • Linux (.deb):
    sudo apt remove dextop-mode
    
  • Pip / Pipx (All OS):
    dextop --uninstall
    pipx uninstall dextop-mode
    

💳 Credits

  • Engine: scrcpy by Genymobile.
  • Wrapper & Configurator: super-magistro.

Licensed under the MIT License. See LICENSE for details.

Metadata

Release files for dextop-mode 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dextop-mode 1.1.4
File Size Uploaded Provenance Actions
dextop_mode-1.1.4.tar.gz 23.2 kB With provenance Details for dextop_mode-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dextop-mode 1.1.4
File Interpreter ABI Platform Actions
dextop_mode-1.1.4-py3-none-any.whl Python 3 none any Details for dextop_mode-1.1.4-py3-none-any.whl

Total release size: 43.6 kB

Release files / dextop_mode-1.1.4.tar.gz

Download URL dextop_mode-1.1.4.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
effdad7b110c3642081f517203dd595d4a38fc7dd64200907949e78f1c141548
BLAKE2b-256 checksum
How to use checksums
cb3be2452a3098eb575148c7375d15e54f1d80a7027a9958846238f23048fe6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / dextop_mode-1.1.4-py3-none-any.whl

Download URL dextop_mode-1.1.4-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c0c343ff8bc083be59839628820fd2c358d0979fc8058eba594f0d8eaa4c9c5
BLAKE2b-256 checksum
How to use checksums
e73606ff3e5b77862ac9d399732045d7193cccbff260a2a10e7675afa7d33a57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for dextop-mode 1.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dextop_mode-1.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page