HeliosVirtualCockpit / Helios

Helios Distribution
https://github.com/HeliosVirtualCockpit/Helios/wiki
GNU General Public License v3.0
205 stars 35 forks source link

Multimonitor setup conflict #416

Closed Clyberic closed 3 years ago

Clyberic commented 3 years ago

Hello Guys, After the computer is rebooted my multi montor setup does not settle properly as expected when firing up DCS. The viewports are projected on the DCS main screen and everytime i need to setup DCS to update the Export Script to support the profile in DCS. As a side effect i need to reinstall or update other apps like SRS as well...very annoying. Also , the DCS Welcome screen isnt neatly arranged in the middle of the mainscreen which isnt really important but it might help figure out what the problem is, I have read some of the multi monitor issues but non of those solutions really worked for me like changing DPi for all screens to 100% ,Changed some settings like scaling off via Graphicscards.

Welcom1 profile int 2 Welcom2 Inkedmultiphel_LI export screen

Export_luafile..txt Export.lua.backup.20210504.txt Helios.lua.txt options_lua.txt

Regards, B.H

derammo commented 3 years ago

There are a few separate things going on here.

1) the Export.lua file: This file has nothing to do with monitors or exported views. It only calls scripts that "export" the gauge values, switches, etc. and handle any input coming back from external programs such as Helios or SRS. The "always overwrite" mode for writing the Export.lua file is for people who have configured Helios to actually call the other modules (such as SRS.) However, you have apparently edited this file yourself, so you need to use a different mode (which is the default mode):

image

2) After you fix that and realize that Export.lua does not affect monitors, we can figure out the multi monitor setup issue. Please provide your interface status report https://github.com/HeliosVirtualCockpit/Helios/wiki/Status-Report-Sharing. You can copy and paste it here or attach as a file.

Clyberic commented 3 years ago
  1. you have apparently edited this file yourself, so you need to use a different mode

iam confused... what file would i have edited ? If you mean the Export.lua file, i have not. I clicked on the box " setup dcs " but i havnt manually messed with the export file in DCS.

I have changed the export output option to '' update if possible " but the problem still excist.

can you check if the module format is ok pls exp setup

derammo commented 3 years ago

let's take one problem at a time:

1) the fact that you keep having to rewrite the Export.lua file:

With "update the file if possible" it should just find that its HeliosExport16 is already called and do nothing. It will say so in the details section on the DCS Blackshark interface

If you still get "an updated DCS export..." message after that, then you have something else also changing the file and removing our changes, such as OVGME or some installer trying to manage the SRS entry? If you didn't change the file yourself, how did it end up calling SRS?

2) monitors afterwards...

Clyberic commented 3 years ago

I have rebooted the computer and it seems that export file is fixed and stable even SrS works. At first i tought the screen behavior and SrS issues were related but it was the export file. The Monitor mismatch problem is next.

derammo commented 3 years ago

Like I said, these are separate issues. Now let's look at your monitors problems. Please share the report I asked for above

Clyberic commented 3 years ago

Interface Status Report

int_stat_rep.txt

derammo commented 3 years ago

excellent, thank you. This all looks correct. It is configured to do the following, please tell me which ones do not happen:

1) the DCS UI starts up on the main monitor, which is 5760x1080. The menus should be covering the entire monitor.

2) the viewports are on the second monitor, just to the right of the main monitor

3) before Helios is started, nothing in rendered on the other two monitors (no DCS, no viewports)

4) Helios draws controls over the viewports on the second monitor and on the other two monitors

derammo commented 3 years ago

is the red arrow in your screen shot above still on the main screen, i.e. the DCS view doesn't cover the entire screen?

derammo commented 3 years ago

also: did you mistakenly set DCS to run in fullscreen? it looks like it is squishing all the content (the main view and one monitor's worth of viewports) into the main display, which I guess is what you are reporting?

derammo commented 3 years ago

reopen: hit wrong button, sorry :)

Clyberic commented 3 years ago

excellent, thank you. This all looks correct. It is configured to do the following, please tell me which ones do not happen:

  1. the DCS UI starts up on the main monitor, which is 5760x1080. The menus should be covering the entire monitor.
  2. the viewports are on the second monitor, just to the right of the main monitor
  3. before Helios is started, nothing in rendered on the other two monitors (no DCS, no viewports)
  4. Helios draws controls over the viewports on the second monitor and on the other two monitors

All of these four mentioned above are as how it works here

Clyberic commented 3 years ago

also: did you mistakenly set DCS to run in fullscreen? it looks like it is squishing all the content (the main view and one monitor's worth of viewports) into the main display, which I guess is what you are reporting?

-Its not set to Fullscreen.

Clyberic commented 3 years ago

is the red arrow in your screen shot above still on the main screen, i.e. the DCS view doesn't cover the entire screen?

Yes... thats it... There is either a black window when Helios is not fired up or when it is on, the skval and abris appear in that main window

derammo commented 3 years ago

Which monitor is selected as the "Make this my main display" display in the Windows "Rearrange multiple monitors" ?

image

Clyberic commented 3 years ago

Which monitor is selected as the "Make this my main display" display in the Windows "Rearrange multiple monitors" ?

image

The Main ( DCS ) window is selected as primary window. btw... surround windows is ceated by G.card not by Windows.

derammo commented 3 years ago

ugh... you can't use surround

it makes multiple monitors into one monitor, which is exactly what you are seeing

Clyberic commented 3 years ago

ugh... you can't use surround

it makes multiple monitors into one monitor, which is exactly what you are seeing

How do you mean "cant" ? thats how i have done it always and there was nothing wrong with the setup before. the 3 main monitors are hooked together on a separate card ( Surrounded ) while the other 3 are at another G.card not surrounded.

derammo commented 3 years ago

oh I see.... the "main" 5760 is actually a triple via surround, but the 4th one is separate

understood, that should be ok except DCS is getting it wrong. So please try this for me:

set your monitors up like this in windows:

top row: main triple plus the one screen that gets viewports to its right second row: the other two screens that only get controls, but no view ports

now select "row" mode in DCS Monitor Setup interface: image

now your DCS resolution should be the same as before, except that the "extra" screens are separately below. This might help DCS correctly match your resolution to where it needs to go. DCS basically doesn't have a configuration for "put the main window at THIS position" so we have to tickle it into doing the right thing by matching the resolution to something that includes the main view and that it can figure out

as always, make sure 100% scaling is set on all the displays that DCS sees (the main one and the first Helios one with the viewports)

Clyberic commented 3 years ago

okey but what about that empty space under the second viewport monitor ? Will that also be rendered and isnt it useless load on the G.card which could result in less FPS ? And i must adjust the option file graphic settings to 7689x1080 monsup

derammo commented 3 years ago

it should be the same resolution. you must have nudged the screen by 9 pixels in the windows control panel. it should still be 7680 if you stick it on the right exactly

the dead space isn't even part of the DCS window, and does not get rendered. in fact, when we get this working we should move the viewports monitor to the first graphics card so that DCS doesn't use the extra graphics card at all (only Helios)

that's the optimal config for what you have there hard ware wise

Clyberic commented 3 years ago

it seems to work ... i will adjust it tomorrow but at least after reboot i didnt had monitor misconfiguration issues

derammo commented 3 years ago

7680x1080? seems like DCS' window placement algorithm freaked out with all those monitors before. weird.

if you have a fourth output on the first graphics card, try running the viewports monitor on there and compare FPS. spanning the DCS window (for viewports) across graphics cards destroys graphics performance in my experience

closing this as a DCS problem

Clyberic commented 3 years ago

Thank you very much for the support

Clyberic commented 3 years ago

Hello DERAMMO, Did you know that the discord Helios channel in Hotas is removed ? This topic was closed but sind its the same topic i hope you can reopen it. Anyway... the screen issue is not fixed and did not fit properly today again.

derammo commented 3 years ago

I still see the Helios channel in HOTAS.

I don't think I can spend any more time on this DCS issue that seems to be affecting only you. I assume there is something weird with how you combine the monitors or something like that is confusing DCS. But it really doesn't have anything to do with the Helios code. Maybe ask on the DCS discord.

Clyberic commented 3 years ago

No problem...thx anyway, at least i some ideas to work with. I have rearranged the monitors once again and it seems to work.