Nonary / ResolutionAutomation

Automates changing the host resolution to match the client resolution of Moonlight, with capabilities of supersampling if required
The Unlicense
692 stars 19 forks source link

Overrides are broken. #51

Closed OMGrant closed 9 months ago

OMGrant commented 9 months ago

Hi, I'm new to your app and installed 2.3.0 last night. I'm using a Steam Deck OLED at 1280x800x90 resolution and want to set an override to change the resolution but readjust the refresh rate to one compatible with my monitor, so:

1280x800x90=1280x800x144

Unfortunately in my testing this seems to cause the override functionality to fail in reporting the client resolution. Here is the log file for such event:

**********************
Windows PowerShell transcript start
Start time: 20240117114829
Username: IRE\me
RunAs User: IRE\me
Configuration Name: 
Machine: IRE (Microsoft Windows NT 10.0.22631.0)
Host Application: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\Utilities\Sunshine\ResolutionMatcher\ResolutionMatcher.ps1 -async True
Process ID: 39148
PSVersion: 5.1.22621.2506
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506
BuildVersion: 10.0.22621.2506
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is .\log.txt

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command
--     ----            -------------   -----         -----------     --------             -------
1      ResolutionMa... BackgroundJob   Running       True            localhost            ...
3      ResolutionMa... BackgroundJob   Running       True            localhost            ...
Waiting for the next event to be called... (for starting/ending stream)
Processing event: Start
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 3440 x 1440 x 144
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x

It appears any trigger that is activated in the overrides.txt file will cause this to happen. Reverting to the original overrides.txt contents and setting the refresh rate to 60 also results in the above log file showing no resolution being passed to the computer:

Jaredmf commented 9 months ago

Having the same issue - 90hz isn't supported on my monitor so I tried an override to 100hz 1280x800x90=1280x800x100 Using CRU to add a custom resolution of 12800x800 at 90hz works, but the host monitor remains black screened until I close the stream and it reverts.

Downgrading to v2.2.0 fixes the issue and overrides work properly.

**********************
Windows PowerShell transcript start
Start time: 20240119162232
Username: JAREDS-PC\jared
RunAs User: JAREDS-PC\jared
Configuration Name: 
Machine: JAREDS-PC (Microsoft Windows NT 10.0.22631.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\Users\jared\Desktop\ResolutionMatcher\ResolutionMatcher.ps1 -async True
Process ID: 15916
PSVersion: 5.1.22621.2506
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2506
BuildVersion: 10.0.22621.2506
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcript started, output file is .\log.txt

Id     Name            PSJobTypeName   State         HasMoreData     Location             Command
--     ----            -------------   -----         -----------     --------             -------
1      ResolutionMa... BackgroundJob   Running       True            localhost            ...
3      ResolutionMa... BackgroundJob   Running       True            localhost            ...
Waiting for the next event to be called... (for starting/ending stream)
Processing event: Start
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Current Resolution: 2560 x 1440 x 165
Expected Requested Resolution:  x  x
Setting screen resolution to  x  x
Request to terminate has been processed, script will now revert resolution.
Setting screen resolution to 2560 x 1440 x 165
Resolution changed successfully.
**********************
Windows PowerShell transcript end
End time: 20240119162259
**********************
OMGrant commented 9 months ago

The error is not caused by being on an older version of Sunshine. Please reopen and address. image

Nonary commented 9 months ago

The error is not caused by being on an older version of Sunshine. Please reopen and address.

image

The issue has been fixed, please download latest release.

OMGrant commented 9 months ago

My bad, thank you!