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

TV's 4k Resolution broken when using override to set Steam Deck resolution #73

Closed Funk3 closed 1 month ago

Funk3 commented 2 months ago

Hi!

I have put into override this:

2560x1600x60=3840x2400x60 as per your tip in the IDD issue that I posted.

This works flawlessly when I go to play games on my steam deck!

However I also play on my apple tv, and when I go on moonlight and start a game (Yakuza Kiwami in this case), the resolution is 4k, then it swaps over to 1280x800.

I am able to change the settings to 3840x2160 in the game itself, however I still get black bars on either side.

What should I do?

Windows 11 2h32 Ryzen 5700x RTX 3080 IDD HDR Virtual Display Sunshine v0.23.1

Nonary commented 2 months ago

Does the log show it swapping back to 1280x800?

Funk3 commented 2 months ago

Where can I see the log?

Funk3 commented 1 month ago

The log only states that the resolution is 1200x800


Windows PowerShell transcript start Start time: 20240904160901 Configuration Name: Machine: OLYMPICPC (Microsoft Windows NT 10.0.22631.0) Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\Sunshine\ResolutionMatcher\ResolutionMatcher.ps1 -async True Process ID: 9096 PSVersion: 5.1.22621.3958 PSEdition: Desktop PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.3958 BuildVersion: 10.0.22621.3958 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 Before Override: 3840 x 2160 x 60 After Override: 3840 x 2160 x 60 Setting screen resolution to 3840 x 2160 x 60 Resolution changed successfully. Current Resolution: 1280 x 800 x 60 Expected Requested Resolution: 3840 x 2160 x 60 Setting screen resolution to 3840 x 2160 x 60 Resolution changed successfully. Still waiting for the next event to fire... Request to terminate has been processed, script will now revert resolution. Setting screen resolution to 1280 x 800 x 60 Resolution changed successfully.


Windows PowerShell transcript end End time: 20240904161101


Funk3 commented 1 month ago

Sorry for the blast of information here but I believe I have figured out the source of the problem, but am still unsure on how to fix it.

I am using all of your scripts except for the frame rate one. I notice that I have the monitor swapper script working and have the dummy at 1280x800 and it seems to always be going to that resolution because of the script. Is there any way to have multiple resolutions in that script?

Nonary commented 1 month ago

Sorry for the blast of information here but I believe I have figured out the source of the problem, but am still unsure on how to fix it.

I am using all of your scripts except for the frame rate one. I notice that I have the monitor swapper script working and have the dummy at 1280x800 and it seems to always be going to that resolution because of the script. Is there any way to have multiple resolutions in that script?

Follow these two troubleshooting hints:

https://github.com/Nonary/MonitorSwapAutomation?tab=readme-ov-file#resolutionautomation-script-isnt-changing-my-resolution-after-connecting-and-or-is-intermittently-working

https://github.com/Nonary/MonitorSwapAutomation?tab=readme-ov-file#resolution-change-when-resuming-or-starting-a-new-stream

Basically, make sure you installed it in the proper order, adjust the sleep delay and ensure dummy plug ID is correct in settings.

That makes sure that the resolution swap happens after the monitor is swapped. If you don’t have a valid dummy ID in the settings, it will revert resolution often.

Funk3 commented 1 month ago

Thank you very much for your time and patience.

it now portrays 4K on my tv flawlessly, and I can choose 2560x1600 on my steam deck in the options! Thank you very much!