Nonary / ResolutionAutomation

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

[Windows 11] Resolution not changing #36

Closed kevin-germain closed 10 months ago

kevin-germain commented 10 months ago

Hello,

First, thank you for this excellent tool.

On my side, I did a first test, and everything was working correctly. Then I closed the session, and I relaunched a new one, and the resolution is not changed anymore.

Here is the log file:

**********************
Début de la transcription Windows PowerShell
Heure de début : 20231106201956
Nom d'utilisateur : GOODADVISEMAIN\Heiwa
Utilisateur runAs :  GOODADVISEMAIN\Heiwa
Nom de la configuration : 
Ordinateur : GOODADVISEMAIN (Microsoft Windows NT 10.0.22621.0)
Application hôte : C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File D:\Jeux\ResolutionAutomation\staging\ResolutionMatcher.ps1 -async True
ID de processus : 14436
PSVersion: 5.1.22621.2428
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.22621.2428
BuildVersion: 10.0.22621.2428
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
Transcription démarrée, le fichier de sortie est .\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 3840 x 2160 x 60
Request to terminate has been processed, script will now revert resolution.
Setting screen resolution to 5120 x 1440 x 120
Resolution changed successfully.
**********************
Fin de la transcription Windows PowerShell
Heure de fin : 20231106202023
**********************

If I understand well my TV corresponds to 3840 x 2160 x 60. My PC monitor resolution is correct, which is 5120 x 1440 x 120

What action can I try? I really appreciate any help you can provide.

Thank you

Nonary commented 10 months ago

Did you add 3850x2160x60 as a custom resolution? It's required in order for it to work, the script simply swaps resolution, if you don't have it available, it won't work.

kevin-germain commented 10 months ago

Indeed that's my bad. I'm not sure why the first time it works;, maybe another resolution has been detected.

After check I've added this custom resolution and now everything works well.

I don't see a donation link or the ability to offer a coffee but I would love to if it's possible.

Thank you