DeXtop Mode: Samsung DeX & Android Desktop Mode on Linux & macOS
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 distributions (Ubuntu, Debian, Linux Mint, Zorin OS, Pop!_OS) and macOS.
It utilizes the powerful engine of scrcpy in the background to handle control and high-performance video/audio streaming.
🚀 Key Features
- Modern Control Center (GUI): A beautiful CustomTkinter desktop interface in dark mode. No terminal commands required!
- 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).
- Smart Audio Redirection: Select your preferred output device (e.g. Bluetooth headphones, HDMI, internal PC speakers) dynamically from a dropdown menu using WirePlumber/PipeWire.
- 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. - Keeps your computer from sleeping during usage via
systemd-inhibit. - Turns off the physical smartphone screen to save battery and avoid screen burn-in.
- Temporarily disables the smartphone's screen timeout (
- 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.
- Automatically refreshes and restarts the One UI Home launcher (
- Mouse & Keyboard Lock (UHID):
- Optional relative mouse capturing (UHID) for high precision control, customizable directly in the Settings tab (press
LAltorSuperto release).
- Optional relative mouse capturing (UHID) for high precision control, customizable directly in the Settings tab (press
- Cross-Platform Support (Linux & macOS):
- Native Debian package (
.deb), macOS installer (.dmg), PyPI package (pip install dextop-mode), andpipxlauncher. - Automatic 1-click dependency installer (Homebrew) on macOS.
- Includes
StartupWMClassmatching so the custom icon appears natively in your taskbar / dock while running.
- Native Debian package (
🛠️ Prerequisites
- 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).
- On your Phone:
- Enable Developer Options (Settings > About Phone, tap Build Number 7 times).
- Turn on USB Debugging and Wireless Debugging in Developer Options.
- 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).
📥 Installation
Choose your preferred installation method:
📦 Option 1: Debian / Ubuntu Package (.deb) — Linux Recommended
Download the latest .deb package from GitHub Releases and install it:
sudo apt install ./dextop-mode_1.0.10_all.deb
🍏 Option 2: macOS Installer (.dmg) — macOS Recommended
- Download
dextop-mode_macOS.dmgfrom GitHub Releases. - Double-click the
.dmgimage and open dextop-mode.app! - If
scrcpyoradbare missing, DeXtop Mode will offer a 1-click prompt to automatically install dependencies via Homebrew.
⚡ Option 3: One-Line Terminal Installer (Linux)
Run this single command in your terminal to automatically build & install the native .deb package:
curl -fsSL https://raw.githubusercontent.com/super-magistro/DeXtop-mode/main/install_dex.sh | bash
🐍 Option 4: PyPI / Pip / Pipx (Universal)
pip install dextop-mode
# or via pipx
pipx install dextop-mode
🛠️ Option 5: Build from Source
# 1. Clone this repository
git clone https://github.com/super-magistro/DeXtop-mode.git
cd DeXtop-mode
# 2. Build the .deb package (Linux)
chmod +x build_deb.sh
./build_deb.sh
# 3. Install the generated package
sudo apt install ./dextop-mode_1.0.10_all.deb
💡 How to Use
- Ensure your phone and PC are on the same Wi-Fi network (or connected via USB).
- Open your system's application menu and search for DeXtop Mode.
- 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.
- In the main window, type the connection port shown on the phone (or plug in USB).
- Select your preferred Audio output in the Audio tab.
- 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, desktop menu entries, and configuration:
# On Linux (.deb)
sudo apt remove dextop-mode
# On Pip / Pipx
dextop --uninstall
pipx uninstall dextop-mode
💳 Credits
- Engine: scrcpy by Genymobile.
- Wrapper & Configurator: super-magistro.
Licensed under the MIT License. See LICENSE for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dextop_mode-1.0.11.tar.gz.
File metadata
- Download URL: dextop_mode-1.0.11.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf70e01aa2a25937d981f1c4eac5d10cc14828ec59c0459480747e7b7e728c2
|
|
| MD5 |
1a270310ba0777a9175c3d14ed556da7
|
|
| BLAKE2b-256 |
99c55339767c43d3389d533a1e6235a56b4718aaf42c75f6116af36d3af1ef95
|
Provenance
The following attestation bundles were made for dextop_mode-1.0.11.tar.gz:
Publisher:
release.yml on super-magistro/DeXtop-mode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dextop_mode-1.0.11.tar.gz -
Subject digest:
fbf70e01aa2a25937d981f1c4eac5d10cc14828ec59c0459480747e7b7e728c2 - Sigstore transparency entry: 2406391362
- Sigstore integration time:
-
Permalink:
super-magistro/DeXtop-mode@f732051081d64df10e34d652c06bf67ec21e4f0a -
Branch / Tag:
refs/tags/v1.0.11 - Owner: https://github.com/super-magistro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f732051081d64df10e34d652c06bf67ec21e4f0a -
Trigger Event:
push
-
Statement type:
File details
Details for the file dextop_mode-1.0.11-py3-none-any.whl.
File metadata
- Download URL: dextop_mode-1.0.11-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1545a533fc4c33cd0a7fb04f540aa747fd72306d31a2b364c4af994acfdae8f3
|
|
| MD5 |
9a4fcb640b247f39124026b75bb6db44
|
|
| BLAKE2b-256 |
278bfe434b95720d3b088e9f3f5ec62a4714fac1807afceb74fe6e34f5da77c4
|
Provenance
The following attestation bundles were made for dextop_mode-1.0.11-py3-none-any.whl:
Publisher:
release.yml on super-magistro/DeXtop-mode
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dextop_mode-1.0.11-py3-none-any.whl -
Subject digest:
1545a533fc4c33cd0a7fb04f540aa747fd72306d31a2b364c4af994acfdae8f3 - Sigstore transparency entry: 2406391383
- Sigstore integration time:
-
Permalink:
super-magistro/DeXtop-mode@f732051081d64df10e34d652c06bf67ec21e4f0a -
Branch / Tag:
refs/tags/v1.0.11 - Owner: https://github.com/super-magistro
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f732051081d64df10e34d652c06bf67ec21e4f0a -
Trigger Event:
push
-
Statement type: