-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggle HDR off #20
Comments
unless you rely on other functionality if you just stream games without the launcher or using something like steam or playnite it will turn HDR off when you stream them. The default with gamestream is hdr off which is why hdr_launcher is needed for games that aren't specifically supported in hdr mode. |
Thank you very much for your reply. |
Can you confirm which operating system you're using? Also can you confirm you're using GeForce Experience on the host machine and moonlight on the devices you're streaming to and you aren't using moonlight_hdr_launcher but HDR still remains on? For your other question, you're using moonlight_hdr_launcher and running playnite through the launcher? What have you tried that didn't work? The intended approach is that you quit playnite which will cause hdr_launcher to quit and the stream to end. |
Hey, If I turn off HDR in the host's system and use moonlight HDR Launcher, Win11's settings automatically turn HDR on when the stream starts (and my TV also gets a signal to switch to HDR) and turn it off automatically when the stream ends . That's why I thought you could do it the other way around and turn HDR off automatically when the stream starts in the win11 system and turn it back on automatically after the stream ends. The other Question, Normally the stream should end automatically as soon as I close Playnite. This works on all clients (I streamed to non-HDR capable devices with moonlight HDR launcher for test purposes). Only when I stream to the shield (shield sends a signal to the audio receiver and this sends a signal to the TV) does it not work. When I exit Playnite, the stream persists and I see the desktop on my TV. In the taskbar, the window (tooltip is "do not close this window" or something) is minimized. I need to turn on mouse support in moonlight. and then click on the minimized window in the taskbar. This is then opened and the stream is ended immediately without the "Connection terminated" message after quitting. On the other clients it works automatically with the same host and the same configuration without having to click on the window. It's hair-pulling :) |
I'll take a look at your first issue when I get a chance (will likely be a few days at least,) I've never seen this before it might be related to a change in the latest versions of either windows 11 or geforce experience. For your second issue unfortunately it is likely a steam deck thing and I don't have one to test with. gamestream detects the window created by a program and shuts down the stream gracefully once the window closes. moonlight_hdr creates such a window and then waits for the program you open with it to close at which point it closes its window and the stream ends. I really have no idea why this would be different on a steam deck. It might be something related to the moonlight client on steam deck for all I know. It might also be fixable from within moonlight_hdr but it would be a nightmare to figure out without having my hands on one of them for a while. I added the patch to shut the stream down gracefully but maybe the maintainer has a steam deck or there is another out there who could do it. |
Before it comes to useless work. It's not the Steam Deck that's my problem. The stream does not end when I stream from Host PC to TV via Shield. When I stream to the Steam Deck it works great. Don't put too much energy into it now. In the end your tool works. |
sorry I don't know why I misread the part about the shield. I was close to the wire on leaving for work and had just done a heavy upper body workout so probably that :P I actually use shields at home the auto disconnection was built and tested initially with both an original and the new shield tv (not the pro the tube one.) I just confirmed and it works correctly for me. My moonlight_hdr_launcher.ini file is:
Unless you're running other custom programs I'd just remove gamestream_launchpad. I actually added a bunch of functionality to it and then just ported it to moonlight_hdr_launcher because I couldn't deal with the slow startup times. I'm guessing it has something to do with your issue, it might just be taking a really long time to quit and if you just leave things and sit and wait they might work eventually. As for detecting and switching off HDR that's not what I was getting at. moonlight_hdr_launcher tricks gamestream into going into HDR mode even if the game you want to play isn't supported. So the other side of that is that if you play a non-hdr supported game (which is almost all of them and includes playnite,) HDR will not be on when you establish a gamestream connection. So when you want to play in HDR use moonlight_hdr_launcher, when you want SDR just pick the game directly in gamestream or add playnite manually and choose playnite directly (ie without the launcher in between). This should solve the problem for games that actually do support gamestream hdr but you want to play in SDR. With some modern games you might find they toggle hdr on themselves and you might have to tweak their settings. |
There is the option "toggle HDR = 1" which will turn the HDR mode on the host Monitor to "on" when the stream starts and switches it back to "off" when the stream ends.
In my case the host monitor is set to HDR "on" all the time and I want to stream to non HDR clients.
Is there i comand like "toggle HDR off = 1" or similar, which disable HDR on the host system when the stream starts and enables it again when the stream ends.
By now I use a solution via powershell script which sends the keys "win" + "alt" + "b" when the stream starts and sends it again when i close playnite. this works.
But maybe it would be more confortable with an option within your litte tool.
The text was updated successfully, but these errors were encountered: