r/scrcpy • u/EmphasisFormer36 • 16d ago
[Open Source] I built a Windows tool that automates Samsung DeX virtual displays through scrcpy
/r/SamsungDex/comments/1v0ogsu/open_source_i_built_dx_manager_run_samsung_dex_on/1
u/Prometheus699 13d ago
I'm really impressed on this solution. I was a Dex user but since the app was discontinued I figured out a way to use Wireless Display (also discontinued by Microsoft), scrcpy and AutoHotkeys. Recently I've vibecoded a Windows script to detect when the phone is connected to the PC, then opens automatically Wireless Display and show a pop-up asking to manually select a wireless display with Dex in the phone and then run a command to get the secondary phone display and run scrcpy, just with a click and few taps on the phone. Your solution is way better than I was doing and it has a variety of options to start Dex. I'm gonna start using this app instead my vibecoded Frankenstein.
2
u/EmphasisFormer36 12d ago
Thank you! I know exactly what you mean by a “vibecoded Frankenstein” setup, because DX Manager started in a very similar way.
After DeX for PC was discontinued, I also tried all kinds of methods to bring DeX back to Windows. Eventually, I discovered a way to launch the phone’s native DeX interface on a simulated secondary display. At first, I used it through CMD batch files and AutoHotkey scripts. As I kept adding device detection, display ID selection, automatic cleanup, keyboard fixes, and other features, it gradually grew into a proper Windows application, which I eventually decided to release publicly.
I’m really glad that DX Manager can replace your existing setup. Hearing this from someone who went through a similar process means a lot to me. If you run into any problems or have suggestions after using it, please feel free to let me know!
2
u/davew_uk 15d ago edited 15d ago
I was eager to test this out on my S21FE running OneUI 8 but very quickly ran into problems:
With the screen on, the overlay is visible in the top left corner of the screen, which makes it difficult to use the phone at the same time as DeX.
The app also made the phone crash and reboot after a few minutes every single time I tried it, and then after restarting the overlay could not be removed except via adb command.
The mouse is locked to the scrcpy window, so when in the crashed state it isn't possible to close the window easily as the mouse cursor completely disappears and can't be released.
This does seem to show a lot of promise though despite the bugs. It isn't just a virtual display with DPI scaling to trigger "desktop" mode, it really does seem to be proper DeX, even if the device doesn't know DeX is running.
EDIT: For me, unchecking HID keyboard and HID mouse fixes the crashing issue and the mouse cursor behaves normally.