itsmikethetech / Virtual-Display-Driver

Add virtual monitors to your windows 10/11 device! Works with VR, OBS, Sunshine, and/or any desktop sharing software.
2.76k stars 119 forks source link

HDR color is saturated at first run #116

Open rairulyle opened 2 months ago

rairulyle commented 2 months ago

So I have my setup to run a display profile using MonitorSwitcher depending on use:

Non streaming 1 and 2 is my physical monitors that are enabled 3 is the virtual display that is disabled

image

Streaming: 1 and 2 is my physical monitors that are disabled 3 is the virtual display that is enabled

image

PROBLEM Swapping display profile works but when the virtual display runs at first (from disabled to enabled) the HDR color is saturated. I have to turn off and on HDR to fix this.

smokybroom commented 1 month ago

Also have this issue.

matheusfaustino commented 1 month ago

Not the ideal scenario, but I found a workaround, and it is working pretty well for me.

I created an automation that triggers the Win+Alt+B shortcut from w11 (maybe 10 as well) that turns the hdr on and off (you need to have the Game Bar - from xbox - installed and working in order to have this shortcut) triggering the shortcut twice, and it solves the issue. Then, add the shortcut in sunshine pre-command-script, and it will trigger it every time that you start sunshine.

To Sum up:

  1. Install Autohotkey (v2)
  2. create an automation that trigger Win+Alt+B
    ; I added the sleep just to give some time for sunshine set up everything that it needs 
    Sleep 2000 ; Wait for 5000 milliseconds (5 seconds)
    Loop 2 {        
    Send("{LWin down}{Alt down}b{Alt up}{LWin up}")
    Sleep 1000
    }
    Exit
  3. Make it an exe
  4. Add to sunshine and have gaming.

ps: to make sure if that will work, log in using the Desktop option from sunshine (see saturated colors) and try the shortcut by yourself, using the keyboard. It solved for me and I just automated.

Shortcut: disable-enable-hdr.ahk.txt