bradgearon / hdr-switch

turns hdr on while running for windows 10
MIT License
188 stars 16 forks source link

NVAPI_ERROR with multiple screens #2

Open antych opened 4 years ago

antych commented 4 years ago

Hey, I could really use this tool, but I can't run it when all my displays are connected. It works when I unplug the VR headset and HDR TV, keeping the monitor in. Otherwise, it comes up with this error.

C:\>C:\Games\HDRSwitch.exe
 NVAPI error: NVAPI_ERROR

Thanks

LordShadowen commented 4 years ago

Same here. Second (non-HDR capable) monitor connected, NVAPI_ERROR. If I unplug it, works great.

zbreilly commented 4 years ago

I wanted to mention this as well. I'm seeing the same error - multi-monitor setup, one HDR, one not.

I've seen multiple games automatically toggle HDR control on the monitor they exist on - would that same functionality be available here?

ryan-haver commented 3 years ago

Other variants of HDR switch/toggle scripts or apps have the same issues. The issue is that they target the display with identity 1. If your HDR capable display is identified as display 2 then it won't work. You can change the monitor identity pretty easily by moving monitors to other ports on your GPU. Here is a quick explanation of how it works: https://www.reddit.com/r/techsupport/comments/8ccp4c/how_to_change_monitor_identities/dxdxuvp/?utm_source=reddit&utm_medium=web2x&context=3

apan65 commented 3 years ago

Have the same issue, dual monitor setup

floooflooo commented 3 years ago

same problem, i already have HMD and second monitor turned off/disabled, and still the problem persist. Also the error code only shown if you use cmd to launch it, if double click on the app icon, it will be zero response, not even error given

The above instruction on moving to other ports on GPU is not a solution, my gpu only have one HDMI port.

kiryl85 commented 3 years ago

@floooflooo In my case that actually works. Monitor with HDR is plugged into HDMI port, and it's recognized as screen no. 2. The second one (without HDR) is plugged into DisplayPort. After replugging it to the opposite port, this tool has started to work again. Despite the fact that no hdr monitor is still recognized as first screen.

so, something like that ports DP DP HDMI DP
before plugged plugged
now plugged plugged
floooflooo commented 3 years ago

Thanks @kiryl85 i double checked and my port is already showing the monitor with HDR (DP port) as desktop 1, and non-HDR monitor (HDMI) as desktop 2,

So the sequence is fine, But the tool just won't work. NVAPI_ERROR