"Setting screen resolution to x x"
Closed this issue · 2 comments
Using sunshine 2.0, installed as a service; seems like ResolutionAutomation is attempting to find the resolution but is unable to do so?
log.txt
**********************
Windows PowerShell transcript start
Start time: 20230914232616
Username: REST\ogi
RunAs User: REST\ogi
Configuration Name:
Machine: REST (Microsoft Windows NT 10.0.22621.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File D:\SunshineTools\ResolutionMatcher\ResolutionMatcher.ps1 -async True
Process ID: 32932
PSVersion: 5.1.22621.1778
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.1778
BuildVersion: 10.0.22621.1778
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
Request to terminate has been processed, script will now revert resolution.
Setting screen resolution to 3840 x 1600 x 60
Resolution changed successfully.
**********************
Windows PowerShell transcript end
End time: 20230914232624
**********************
I do have log level set to debug
And the default terminal set to Windows Console Host:
In my case, I'm setting the resolution to 2304x1440 which is available in the nvidia control panel
I do have access to sunshine.log, and it even recognizes the resolution from the moonlight client?
[2023:09:14:23:39:05]: Debug: mode -- 2304x1440x60
I'm not sure what else to try, any suggestions would be greatly appreciated.
I copied the repo on your main
branch, and that works as intended 👍🏻
Taking a look at log.txt, something doesn't quite look right tho:
**********************
Windows PowerShell transcript start
Start time: 20230914234831
Username: REST\ogi
RunAs User: REST\ogi
Configuration Name:
Machine: REST (Microsoft Windows NT 10.0.22621.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File D:\SunshineTools\ResolutionAutomation-main\ResolutionMatcher.ps1 -async True
Process ID: 36088
PSVersion: 5.1.22621.1778
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.1778
BuildVersion: 10.0.22621.1778
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 2304 x 1440 x 60
Resolution changed successfully.
The client resolution changed within the past 6 seconds, this implies the first time the resolution was changed may have been incorrect due to stale data
Original Requested Resolution: 2304 x 1440 x 60
Expected Requested Resolution: 2304 x 0 x 60
Setting screen resolution to 2304 x 0 x 60
Request to terminate has been processed, script will now revert resolution.
Setting screen resolution to 3840 x 1600 x 60
Resolution changed successfully.
**********************
Windows PowerShell transcript end
End time: 20230914234849
**********************
Here is my sunshine.log in case it helps:
https://gist.github.com/j9ac9k/c0173403ac3e7ed44f3f0568ee2b3220
Since the release of Sunshine 0.21.0 the resolution values are sent from Sunshine itself, it is now just double click and install. Additionally, it should always select the correct resolution. Because of that, I am closing out this issue as it only applies to older versions of the script.