Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution not taking #64

Open
jriker1 opened this issue Apr 24, 2024 · 1 comment
Open

Resolution not taking #64

jriker1 opened this issue Apr 24, 2024 · 1 comment

Comments

@jriker1
Copy link

jriker1 commented Apr 24, 2024

I seem to keep writing you and then it resolves after some time and then let it go. Basically everything was working great and then after a reboot the resolution is not auto setting to my screen size. The logs show it's setting it just doesn't take. What happens with Moonlight on Windows connecting to the sunshine server desktop.

  1. Connects and shows a resolution similar to the device but small bars on the left and right.
  2. Screen flickers after a few seconds and sets to 4k 3840x2160 resolution.
  3. Logs show this:

Windows PowerShell transcript start
Start time: 20240424121333
Configuration Name:
Machine: RENDER (Microsoft Windows NT 10.0.22631.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File C:\ResolutionAutomation\ResolutionMatcher.ps1 -async True
Process ID: 4232
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 1600 x 1200 x 60

However it's not 1600 x 1200. It's 3840x2160. I have tried updating to the latest nightly of Sunshine and this script to no joy. Tried instlaling the latest NVidia drivers but that didn't help. Rebooted and one time it came up as expected. Second time I connected went back to this again.

@jriker1
Copy link
Author

jriker1 commented Apr 29, 2024

Side note after a reboot again it worked one time then went back to this. One additional thing I can share. If I leave the display manager open in Windows after disconnecting and then connect again, I connect with the black bars on either side and it shows it's on display 1 which is the main display. Then the screen refreshes and is in 4k (not resolution of my screen) and shows it's on display 2 now. So not sure if something is delayed and the resolution change even though second, is firing before the display switch happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant