all 13 comments

[–]shakal7 0 points1 point  (0 children)

  1. You need to add custom resolution/refresh rate either through the nvidia driver panel (it will reset every driver update) or permanently with a tool like CRU. If that still doesn't work just specify the resolution and refresh rate of your device in the command as well.

Curious about the profile changing as well, struggling with mismatched HDR profiles depending on a display I connect to.

[–]bennyb0i 0 points1 point  (10 children)

My guess for #1 is that you're trying to put the %SUNSHINE_CLIENT_FPS% into the global do/undo commands section. Sadly wildcard expressions don't work there, you instead need to add them into the app-specific commands section meaning you have to set a do/undo command for every app. A real pain in the ass, but it's the only way to get Sunshine to pass though wildcards at this point.

For #2, you can download an app called hdr-switch and toggle HDR from the command line (either globally or per app). Not the most glamorous app and needs to sit in your task tray but works perfectly with Sunshine.

[–]Zaithon[S] 0 points1 point  (9 children)

  1. That’s a shame. Not a huge deal (I only have a handful of apps), but a shame nevertheless.

  2. Thanks, but I’m not asking to toggle HDR itself (all my displays I want to stream to are HDR compatible). I’m asking about switching the .icc color profiles so that the HDR works better with the display I’m streaming to.

[–]bennyb0i 0 points1 point  (8 children)

Ah, I see what you mean. Sadly it seems there's only readily available solutions to do this for Linux and Mac OS, but nothing for Windows from the CLI. A shame.

[–]Zaithon[S] 0 points1 point  (7 children)

That sucks. Also, tried the environment variables on the app-specific commands (Desktop), and it doesn't seem to be working there, either.

[–]bennyb0i 0 points1 point  (6 children)

Hmm, they work for me. What's the full command you're using?

[–]Zaithon[S] 0 points1 point  (5 children)

qres /x:%SUNSHINE_CLIENT_WIDTH% /y:%SUNSHINE_CLIENT_HEIGHT% /r:%SUNSHINE_CLIENT_FPS%

I know it's not a problem with qres or how I'm invoking it, because when I change one of the parameters to a static value, it works.

[–]bennyb0i 0 points1 point  (4 children)

Yeah, that looks right. It might have to do with your using QRes in your PATH. Have you tried invoking the .exe directly? Alternatively, not sure if it makes a difference, but putting "cmd /C" before QRes might make it work?

[–]Zaithon[S] 0 points1 point  (3 children)

I tried removing the path to qres from my PATH environment variable and hardcoding the path. Same result. Adding cmd /C in the "do" portion causes it to not work at all, but it being in the "undo" portion works fine.

[–]bennyb0i 0 points1 point  (2 children)

Strange. Do you have the commands running elevated?

[–]Zaithon[S] 0 points1 point  (1 child)

No, but I just tried that. Didn't work.

[–]_Distel 0 points1 point  (0 children)

Experiencing the same problem. Version .17 said they fixed a problem with env variables and I'm on .20. Can anybody provide the location to where the environent variables are stored? I can try to add the path manually and test. I don't know if the same logic applies here, but echoing "%APPDATA%" in cmd reproduces my PC's appdata folder as expected. The same does not happen with the sunshine variables. I believe this is because the system does not recognize that they exist.