Skip to content
This repository has been archived by the owner on May 28, 2023. It is now read-only.

Initial refactor and support for multiple-monitors #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ventorvar
Copy link

This is intended more to start a discussion than to be a straight merge (but you're welcome to).

I have a triple monitor setup like so:

image

... where the primary monitor is a 34" ultrawide. To make things cleaner and more repeatable I'd like to use one of the 16:9 monitors as the gamestream display, and then use DSR to enable things like 4K.

Note the monitor you want to be primary apparently needs to be plugged into the first port on the GPU, otherwise gamestream will use that monitor no matter which your primary monitor is set to

This branch is a general refactor pass to make the tool a bit more robust, as well as adding additional functionality where it will set the target display (defaults to the current primary display) to be the primary display while changing resolutions, and will restore the layout after the application has run.

Interested in others' thoughts, and happy to help improve/make changes if desired, or not - I may be a unique use case.

@cgarst
Copy link
Owner

cgarst commented Sep 21, 2021

Really cool ideas! I'll test this out soon.

@cgarst
Copy link
Owner

cgarst commented Nov 2, 2021

Hey @ventorvar, giving this some testing and I'm running into an issue with how win32api.EnumDisplayDevices is being passed None as the display adapter. When the displays span multiple adapters, not all are found within the while loop. This ends up causing a StopIteration exception while iterating for self.primary_display.

In the setup below, display 1 is a laptop screen displayed with integrated GPU and display 2 is a monitor connected to the discrete GPU.

Screenshot 2021-11-01 215424

We'll need to look into how we can iterate through multiple display adapters and adapt that to this logic.

@ventorvar
Copy link
Author

Interesting! I also have a spare machine with dual adapters and will try to dig into this as well.

@ghost
Copy link

ghost commented Apr 28, 2023

Any updates on this ? Multimonitor setup would be really usefull

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

Successfully merging this pull request may close these issues.

2 participants