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

[Question] How does this deactivate the HyperV Monitor? #419

Open
Tobi-La opened this issue Jan 9, 2025 · 1 comment
Open

[Question] How does this deactivate the HyperV Monitor? #419

Tobi-La opened this issue Jan 9, 2025 · 1 comment

Comments

@Tobi-La
Copy link

Tobi-La commented Jan 9, 2025

Hi,
this is no issue with Easy-GPU-PV, there just seems to be no discussion forum for this project.

Sadly I discovered this too late and setup a few VMs myself. I am using Sunshine and VirtualDisplayDriver, which are much better for my usecases anyway. I realized that performance is very bad when having hyperv + vdd active and after a lot of trial and error with deinstalling and activating / deactivating hyperv display adapter and monitor drivers I managed to deactivate the HyperV Monitor. It came back on restart, so I wrote a script which deinstalls the driver of the hyperv display adapter, searches for new connected hardware and deactivates the display adapter, which deactivates the monitor so windows only displays my own virtual display driver. However, I tried this vulkan workaround (#342) and played around some more with it, now I can't get the hyperv monitor to be deactivated again.

Since from what I read the monitor simply deactivates when you deactivate the hyperv display adapter, what does Easy-GPU-PV do to achieve that?

Thanks for your help!

@Tobi-La
Copy link
Author

Tobi-La commented Jan 9, 2025

The only line I found when going through the project is
"Get-PnpDevice | Where-Object {$.friendlyname -like "Microsoft Hyper-V Video" -and $.status -eq "OK"} | Disable-PnpDevice -confirm:$false"
This simply disables the adapter i think. Is that enough for you for windows to only recognise 1 display? If I just deactivate Microsoft Hyper-V Video there is still a second monitor displays in the device manager and in the display configuration. Weirdly after reenabling it again I can't get back to the state where I had it disabled without the monitor popping back up .

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

1 participant