nomi-san / parsec-vdd

✨ Perfect 4K@240Hz Virtual Display
MIT License
1.78k stars 89 forks source link

Virtual display gets deleted after closing and reopening laptop flap for 5 minutes #40

Open prakyath-07 opened 2 months ago

prakyath-07 commented 2 months ago

When the laptop flap is closed and then reopened after more than 5 minutes, the virtual display is deleted and needs to be reconfigured.

Im using ParsecVDisplay-v0.45-setup.exe

Repro Steps:

System Info

nomi-san commented 2 months ago

Have you disabled the "fast startup" options?

Never saw this case before but seems the app is stopped for a second before your laptop goes sleep, then all displays should be removed even the app is still opening. The next patch will restore your displays.

prakyath-07 commented 2 months ago

Yes , "fast startup" was enabled, I tried disabling it still facing the same issue

prakyath-07 commented 2 months ago

Do you have any immediate solution that I can try at my end?

nomi-san commented 2 months ago

I have just tested 2 app versions. Sure the current implementation in WPF will stop all thread before sleeping. The old app in Winforms works properly, all displays are reserved. I will fix that soon.

Here is the old impl (no GUI, only has the context menu), lets try it. SimpleVDD.zip

prakyath-07 commented 1 month ago

Could you please provide the driver files for the same?

nomi-san commented 1 month ago

I used the latest v0.45, it works with any version.

prakyath-07 commented 1 month ago

I tried with SimpleVDD its still same. Virtual display is getting deleted

Devices Tested On :

Edit : I resolved the issue by recreating the deleted virtual displays after fetching the list of available displays.

prakyath-07 commented 1 month ago

Any updates?

nomi-san commented 1 month ago

Im not sure your laptop was going sleep (suspended) or hibernated when closing lid. But sure that the app suspended a few seconds after getting up. I have tested on many latop devices with both Sleep mode and Hibernate mode, that give the same behaviours. And the SimpleVDD works as well, so the next patch I will apply these fixes from the old approach.