Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to start display driver not working #25

Open
Peabuttt opened this issue Oct 27, 2024 · 2 comments
Open

Script to start display driver not working #25

Peabuttt opened this issue Oct 27, 2024 · 2 comments

Comments

@Peabuttt
Copy link

Peabuttt commented Oct 27, 2024

Hey.

Im getting an error when connecting moonlight because it cannot initialize the VDD.

Failed to load "nvapi64.dll". Error: The specified module could not be found.
Failed to load "nvapi64.dll". Error: The specified module could not be found.
Cannot index into a null array.
At D:\Programs\Sunshine\tools\sunshine-virtual-monitor-main\setup_sunvdm.ps1:36 char:1
+ $vdd_name = (
+ ~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray
 
Setting up a moonlight monitor with 2560x1600@72 with hdr off
Enabling the virtual display.
Get-PnpDevice : Cannot validate argument on parameter 'FriendlyName'. The argument is null. Provide a valid value for 
the argument, and then try running the command again.
At D:\Programs\Sunshine\tools\sunshine-virtual-monitor-main\setup_sunvdm.ps1:76 char:29
+ Get-PnpDevice -FriendlyName $vdd_name | Enable-PnpDevice -Confirm:$fa ...
+                             ~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-PnpDevice], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Get-PnpDevice
 
Setting up the virtual display and disabling other displays.
Disabling all other displays.
Failed to disable all other displays.
At D:\Programs\Sunshine\tools\sunshine-virtual-monitor-main\setup_sunvdm.ps1:112 char:9
+         Throw "Failed to disable all other displays."
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Failed to disable all other displays.:String) [], RuntimeException
    + FullyQualifiedErrorId : Failed to disable all other displays.

I dont have nvidia so the missing dll is fine.

{54C63B93-2D33-46BE-A89A-FBD1B6FCCA85}

Can some1 help?

EDIT: looks like VDD was not correctly installed and the virtual display had no name. I fixed that but I still have errors.

Failed to load "nvapi64.dll". Error: The specified module could not be found.
Failed to load "nvapi64.dll". Error: The specified module could not be found.
Setting up a moonlight monitor with 2560x1600@72 with hdr off
Enabling the virtual display.
Setting up the virtual display and disabling other displays.
Disabling all other displays.
Failed to disable all other displays.
At D:\Programs\Sunshine\tools\sunshine-virtual-monitor-main\setup_sunvdm.ps1:112 char:9
+         Throw "Failed to disable all other displays."
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Failed to disable all other displays.:String) [], RuntimeException
    + FullyQualifiedErrorId : Failed to disable all other displays.
@LeGeRyChEeSe
Copy link
Owner

Hello, which version of VDD did you install ?

@framosk
Copy link

framosk commented Nov 22, 2024

I changed the setup_sunvdm.ps1 a little bit in order to make it work properly, I will attach it if you want to try it out.
setup_sunvdm.zip

Let me know if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants