hdr-switch icon indicating copy to clipboard operation
hdr-switch copied to clipboard

NVAPI_ERROR with multiple screens

Open antych opened this issue 5 years ago • 7 comments

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

antych avatar Nov 01 '19 23:11 antych

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

LordShadowen avatar Jan 26 '20 10:01 LordShadowen

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?

zbreilly avatar May 11 '20 17:05 zbreilly

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

ryan-haver avatar Sep 07 '20 21:09 ryan-haver

Have the same issue, dual monitor setup

apan65 avatar Nov 15 '20 13:11 apan65

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.

floooflooo avatar Feb 10 '21 11:02 floooflooo

@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

kiryl85 avatar Feb 15 '21 22:02 kiryl85

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

floooflooo avatar Feb 20 '21 09:02 floooflooo