Widecar is a tiny helper designed to enhance your streaming experience with Sunshine by automatically managing virtual screens. This app seamlessly integrates with ParsecVDD to create and destroy virtual screens based on your connection status, and it ensures your virtual display matches the Moonlight device resolution settings.
Widecar
is basically Sidecar for Windows
, it is especially useful when you have an Android tablet with high refresh rate and a stylus. If you connect a keyboard and mouse to the tablet, it's no different from a Windows tablet but with much powerful CPU/GPU power when streaming.
[!WARNING]
This project is sunsetting as Apollo is in development.
You can find a preview release of Apollo here. Apollo works best in conjunction with Artemis, providing loads of optimizations and feature improvements.
Also checkout https://github.com/ClassicOldSong/moonlight-android/releases for a much improved Moonlight Android client with much better touch pad support and several other improvements, since the official one hasn't been updated for months...
Output Name
configuration blank, or the newly added virtual display won't be picked up.You have to ping to the driver periodically to keep added displays alive, otherwise all of them will be unplugged after a second.
To use Widecar, simply configure it to run upon connection and exit in your desired app. Elevated must be checked. Below is an example configuration screenshot:
You can find a pre-built version in the release page.
You can copy the sunshine.conf
in your Sunshine installation, name it like sunshine_widecar.conf
, and start a second Sunshine instance with it by executing sunshine.exe path\to\sunshine_widecar.conf
with SYSTEM privilege.
The start-widecar.ps1 should help you with that.
You can then create a shortcut to that script, setting target to powershell -ExecutionPolicy Bypass -File "path\to\start-widecar.ps1"
You need to execute the script with Administrator privilege. Starting the instance with only Administrator privilege is fine, but you won't be able to access UAC dialog or enter lock screen password through streaming.
Add/change the following parts to sunshine_widecar.conf
in order to run parallel with the original instance:
# Change the port according to your situation
port = 48989
# You can change the name as you wish
sunshine_name = Widecar
# A separate state file must be created in order to distinguish between the original Sunshine instance
file_state = sunshine_state_widecar.json
# Change to a different log path to prevent conflicts
log_path = sunshine_widecar.log
# Change the path to where you actually put the widecar.exe
global_prep_cmd = [{"do":"D:\\Tools\\widecar.exe","undo":"D:\\Tools\\widecar.exe","elevated":"true"}]
Then you need to ensure Global Prep Commands
is enabled for all of your apps. In this configuration, the Widecar
instance share all apps from the main instance, but all apps started here are in a separated virtual screen.
You can start even more Sunshine instances by doing the above steps multiple times, then you'll be able to connect multiple Moonlight clients at the same time for even more virtual mointors.
Primary display changed to the virtual display after connection. I don't want that.
https://www.nirsoft.net/utils/multi_monitor_tool.html
Add to the Detatched Command
like this with the proper display name to your "Desktop" app:
You can change the timeout accordingly. If changing the primary display back to the built-in display too quickly, Sunshine might still capture the built-in display.
Resolution can't match client side anymore
regedit
, hit enterHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configuration
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Connectivity
HKEY_LOCAL_MACHINE\SOFTWARE\Widecar\sessions
This will clear your monitor configuration cache and Widecar connection cache.
Then you're good to go!
Stream failed to start with 2 or more graphics card
Follow the Select Parent GPU
section of this instruction to manually set your desired GPU to use with the virtual display.
Visit the following Registry path on your system and add the specified key and value.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WUDF\Services\ParsecVDA\Parameters
Insert new
DWORD
with namePreferredRenderAdapterVendorId
, then depending on your system hardware enter the following Vendor ID as hexadecimal in the Registry key value field.
Vendor ID NVIDIA 10DE AMD 1002 To apply this change to the Parsec Virtual Display Adapter, either reboot the host or disable and enable the Virtual Display Adapter inside device manager.
You might also want to set DisablePreferredRenderAdapterChange
to 0
if it exists in the registry path. [Source]
If you have done the above steps and still got no image, try set Adapter Name
in your Sunshine's Audio/Video
config to the same video card's name of which you're using with the VDA driver.
I got kicked from Moonlight and Sunshine's Discord server and banned from Sunshine's GitHub repo literally for helping people out.
This is what I got for finding a bug, opened an issue, getting no response, troubleshoot myself, fixed the issue myself, shared it by PR to the main repo hoping my efforts can help someone else during the maintainance gap.
Yes, I'm going away. I have started a fork of Sunshine called Apollo and will add useful features that will never get merged by the main repo shortly. Apollo and Artemis will no longer be compatible with OG Sunshine and OG Moonlight eventually, but they'll work even better with much more carefully designed features.
The Moonlight repo had stayed silent for 5 months, with nobody actually responding to issues, and people are getting totally no help besides the limited FAQ in their Discord server. I tried to answer issues and questions, solve problems within my ablilty but I got kicked out just for helping others. The funniest thing is, the repo starts updating after they got me banned!
PRs for feature improvements are welcomed here unlike the main repo, your ideas are more likely to be appreciated and your efforts are actually being respected. We welcome people who can and willing to share their efforts, helping yourselves and other people in need.
This project is licensed under the MIT License.