JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
8.66k stars 482 forks source link

Enable HDR doesnt work with two monitors connected to different GPUs #3754

Open journeym opened 1 month ago

journeym commented 1 month ago

Bug Description

I have two monitors, one is connectied to Nvidia card, supports HDR and is set as primary display. Second is connected to the integrated GPU doesnt support HDR and is configured as secondary. When i enable HDR checkbox in a game while second monitor is connected it notifies me that my primary monitor doesnt support HDR, and does not enable it on the game start. When i disconnect second monitor everything working as intended

To Reproduce

see bug description

Diagnostics ID

a46a58e4-fcc4-4673-944e-4fddcd3d7a4f

Screenshots

image

journeym commented 1 month ago

The reason second monitor is connected to the integrated GPU is to get RTX HDR working with more then one monitor

lscholte commented 1 month ago

I was curious about this, so I reconfigured my monitors on my setup to try to reproduce this but I could not. The way this bug is described, it seems to me that there may be an error in detecting the display's HDR capabilities in this multi-GPU configuration, and so Playnite defaults to assuming your primary display doesn't support HDR. If that is the case, I expect there should be some logs in Playnite that would corroborate this.

journeym commented 1 month ago

I was curious about this, so I reconfigured my monitors on my setup to try to reproduce this but I could not. The way this bug is described, it seems to me that there may be an error in detecting the display's HDR capabilities in this multi-GPU configuration, and so Playnite defaults to assuming your primary display doesn't support HDR. If that is the case, I expect there should be some logs in Playnite that would corroborate this.

What GPUs you have? I also tried WindowsDisplayManager and got incorrect data from it. https://github.com/patrick-theprogrammer/WindowsDisplayManager/issues/1 Currently only way for me to enable HDR with second monitor connected is using Windows GUI or win+alt+b shortcut, so i ended up using this vbs script (https://superuser.com/questions/1777667/is-there-a-way-to-set-hdr-mode-by-command) in global scripts

lscholte commented 1 month ago

I was curious about this, so I reconfigured my monitors on my setup to try to reproduce this but I could not. The way this bug is described, it seems to me that there may be an error in detecting the display's HDR capabilities in this multi-GPU configuration, and so Playnite defaults to assuming your primary display doesn't support HDR. If that is the case, I expect there should be some logs in Playnite that would corroborate this.

What GPUs you have? I also tried WindowsDisplayManager and got incorrect data from it. patrick-theprogrammer/WindowsDisplayManager#1 Currently only way for me to enable HDR with second monitor connected is using Windows GUI or win+alt+b shortcut, so i ended up using this vbs script (https://superuser.com/questions/1777667/is-there-a-way-to-set-hdr-mode-by-command) in global scripts

I was testing with Intel i7-13700k graphics connected to 1 non-HDR monitor and then NVIDIA RTX 4090 connected to my other 2 monitors.

Given that you have tested with an independent tool which is also reporting some incorrect data, I get the impression that this might potentially be out of Playnite's control and could be an issue at the Windows or driver level. In any case though, I am curious to learn any information that comes out of this bug. This is some interesting behaviour.

lscholte commented 1 month ago

Also as a side note, if your only motivation for connecting one display to integrated graphics and the other to NVIDIA GPU was for RTX HDR, hopefully eventually the RTX HDR will support multiple monitors in the near future. Because if that were to happen, it sounds like it would eliminate this issue for you. So on your end, it is probably worth keeping tabs on any updates for RTX HDR if you are not already doing so.

journeym commented 1 month ago

Well, windows is reporting everything correctly as far as i can tell, as you can see on my first screenshot, it detects two monitors correctly with supported resolutions and hdr support. Seems to be something outdated on api side, or possibly, something AMD igpu related.