Page 1 of 1

[SOLVED] Laptop with docking station: wrong monitor detection

Posted: 23 Jan 2019 16:14
by Leito
Configuration
  • Laptop with docking station.
  • Dual screen connected to docking station.
  • Monitor #2 to the left of monitor #1 (main monitor).
  • XYplorer located on monitor #2.
Steps to reproduce
  1. Plug laptop on the docking station.
  2. Start XYplorer.
  3. Unplug laptop from docking station.
  4. Plug laptop on the docking station.
  5. Run Help | Various Information
Actual results
Various Information shows that only one monitor is connected:

Code: Select all

Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
Hence dialogs, HoverBox... are shown on the wrong monitor.

Expected results
Various Information should show that two monitors are connected:

Code: Select all

Screen: 1920x1080, 2/2 (Secondary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
Dialogs, HoverBox... should be shown on the correct monitor.

Additional notes
Minimizing XYplorer window, moving it to the other monitor, resizing it... doesn't solve the issue. I have to restart XYplorer.

Re: Laptop with docking station: wrong monitor detection

Posted: 24 Jan 2019 09:07
by admin
Okay, should be fixed in next beta.

Re: Laptop with docking station: wrong monitor detection

Posted: 24 Jan 2019 16:25
by Leito

Code: Select all

v19.50.0241 - 2019-01-24 15:27
    ! Monitors: Did not catch adding or removing of monitors while running. 
      Fixed.
Thanks. But it seems there's still some issue:

Configuration
  • Laptop (screen 1366x768) with docking station.
  • Dual screen (1920x1080) connected to docking station.
  • Monitor #2 to the left of monitor #1 (main monitor).
  • XYplorer located on monitor #2.
Steps to reproduce
  1. Plug laptop on the docking station.
  2. Start XYplorer.
  3. Unplug laptop from docking station.
  4. Run Help | Various Information
Actual results
Various Information shows that only one monitor is connected, but with the wrong resolution:

Code: Select all

Screen: 1080x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
Hence dialogs, HoverBox... are shown at the wrong position.

Expected results
Various Information should show that one monitor with this resolution:

Code: Select all

Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)

Re: Laptop with docking station: wrong monitor detection

Posted: 24 Jan 2019 16:45
by admin
So, it's the same as before?

Does it help if you open and close (Cancel) the Configuration dialog?

Re: Laptop with docking station: wrong monitor detection

Posted: 24 Jan 2019 17:15
by Leito
admin wrote: ↑24 Jan 2019 16:45 So, it's the same as before?
Not really.
admin wrote: ↑24 Jan 2019 16:45 Does it help if you open and close (Cancel) the Configuration dialog?
Kinda, but not in all cases:

Steps
  1. Plug laptop
  2. Start XYplorer, then Various Information shows:

    Code: Select all

    Screen: 1920x1080, 2/2 (Secondary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK
  3. Unplug laptop, then Various Information shows:

    Code: Select all

    Screen: 1080x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ KO :(
  4. Open configuration, then Various Information shows:

    Code: Select all

    Screen: 768x1080, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ KO :(
  5. Restart XYplorer, then Various Information shows:

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ OK
  6. Plug laptop, then Various Information shows:

    Code: Select all

    Screen: 1080x768, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ KO :(
  7. Open configuration, then Various Information shows:

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK :tup:
  8. Move to monitor #2, then Various Information shows:

    Code: Select all

    Screen: 1920x1080, 2/2 (Secondary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK :tup:

Re: Laptop with docking station: wrong monitor detection

Posted: 24 Jan 2019 17:40
by admin
1) What would be the correct state after "3. Unplug laptop"?

2) After un/plugging does
dlog;
say anything like "monitor change"?

Re: Laptop with docking station: wrong monitor detection

Posted: 24 Jan 2019 22:07
by Leito
admin wrote: ↑24 Jan 2019 17:40 1) What would be the correct state after "3. Unplug laptop"?
What's shown after 5:

Code: Select all

Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)

Re: Laptop with docking station: wrong monitor detection

Posted: 25 Jan 2019 08:33
by Leito
admin wrote: ↑24 Jan 2019 17:40 2) After un/plugging does
dlog;
say anything like "monitor change"?
Yes, new tests:

Test starting with laptop plugged to dual screen (monitors = 2x 1920x1080):
  1. Start XYplorer

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK
  2. Unplug laptop

    Code: Select all

    2019-01-25 08:20:02.579 >> monitors changed

    Code: Select all

    Screen: 1080x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ KO :( , should be:

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
  3. Open configuration

    Code: Select all

    Screen: 768x1080, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ KO :( , should be:

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
Test starting with laptop not plugged to any screen (laptop screen = 1366x768):
  1. Start XYplorer

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ OK
  2. Plug laptop to dual screen

    Code: Select all

    2019-01-25 08:23:27.147 >> monitors changed

    Code: Select all

    Screen: 1080x768, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ KO :( , should be:

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
  3. Open configuration

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK

Re: Laptop with docking station: wrong monitor detection

Posted: 25 Jan 2019 09:55
by admin
Interesting, thanks! The next version (v19.50.0242) might fix it...

Re: Laptop with docking station: wrong monitor detection

Posted: 25 Jan 2019 11:30
by Leito

Code: Select all

v19.50.0242 - 2019-01-25 11:08
    ! Monitors: Did not catch adding or removing of monitors while running. 
      Fix #2.
It's a bit better (test #2 is OK now), but there's still some issue (test #1 is still KO, but differently):

Test #1: starting with laptop plugged to dual screen (monitors = 2x 1920x1080): KO :(
  1. Start XYplorer

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK
  2. Unplug laptop

    Code: Select all

    2019-01-25 11:22:20.856 >> monitors changed

    Code: Select all

    Screen: 1920x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ KO :( , should be:

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
  3. Open configuration

    Code: Select all

    Screen: 1920x1080, 1/1 (Primary), Virtual: (0, 0) - (1920, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ KO :( , should be:

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
Test #2: starting with laptop not plugged to any screen (laptop screen = 1366x768): OK :tup:
  1. Start XYplorer

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ OK
  2. Plug laptop to dual screen

    Code: Select all

    2019-01-25 11:25:14.464 >> monitors changed

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK :tup:

Re: Laptop with docking station: wrong monitor detection

Posted: 25 Jan 2019 11:35
by admin
OK, I'll meditate on this. Might just need a little wait loop...

Sorry, forgot to tell you that "Open configuration" will not make a difference anymore since v19.50.0242. You can just skip that.

Re: Laptop with docking station: wrong monitor detection

Posted: 25 Jan 2019 18:14
by admin
Lack of documentation forces us to proceed empirically. I'll add another event in v19.50.0243.

1. Test whether it works now, please.
2. Let's see what's in dlog now.

Re: Laptop with docking station: wrong monitor detection

Posted: 28 Jan 2019 08:02
by Leito

Code: Select all

v19.50.0243 - 2019-01-25 19:09
    ! Monitors: Did not catch adding or removing of monitors while running. 
      Fix #3.
I believe all seems OK now, from the return of the Various Information command.

Test #1: starting with laptop plugged to dual screen (monitors = 2x 1920x1080): OK :tup:
  1. Start XYplorer

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK
  2. Unplug laptop

    Code: Select all

    2019-01-28 07:41:41.771 >> WM_DISPLAYCHANGE: monitors changed, 32, 70780800
    2019-01-28 07:41:42.351 >> WM_SETTINGCHANGE: monitors changed, 47, 0
    2019-01-28 07:41:47.855 >> WM_DISPLAYCHANGE: monitors changed, 32, 50333014

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ OK :tup:
Test #2: starting with laptop not plugged to any screen (laptop screen = 1366x768): OK :tup:
  1. Start XYplorer

    Code: Select all

    Screen: 1366x768, 1/1 (Primary), Virtual: (0, 0) - (1366, 768), Work: (0, 0) - (1366, 728)
    ⇒ OK
  2. Plug laptop to dual screen

    Code: Select all

    2019-01-28 07:40:24.559 >> WM_DISPLAYCHANGE: monitors changed, 32, 70780800
    2019-01-28 07:40:25.437 >> WM_SETTINGCHANGE: monitors changed, 47, 0

    Code: Select all

    Screen: 1920x1080, 1/2 (Primary), Virtual: (-1920, 0) - (3840, 1080), Work: (0, 0) - (1920, 1040)
    ⇒ OK :tup:

Re: [SOLVED] Laptop with docking station: wrong monitor detection

Posted: 28 Jan 2019 08:31
by admin
Yeah! :beer: