[SOLVED] Laptop with docking station: wrong monitor detection

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

[SOLVED] Laptop with docking station: wrong monitor detection

Post 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.
Last edited by Leito on 28 Jan 2019 08:02, edited 1 time in total.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Laptop with docking station: wrong monitor detection

Post by admin »

Okay, should be fixed in next beta.

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Laptop with docking station: wrong monitor detection

Post 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)

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Laptop with docking station: wrong monitor detection

Post by admin »

So, it's the same as before?

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

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Laptop with docking station: wrong monitor detection

Post 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:

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Laptop with docking station: wrong monitor detection

Post by admin »

1) What would be the correct state after "3. Unplug laptop"?

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

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Laptop with docking station: wrong monitor detection

Post 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)

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Laptop with docking station: wrong monitor detection

Post 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

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Laptop with docking station: wrong monitor detection

Post by admin »

Interesting, thanks! The next version (v19.50.0242) might fix it...

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Laptop with docking station: wrong monitor detection

Post 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:

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Laptop with docking station: wrong monitor detection

Post 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.

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Laptop with docking station: wrong monitor detection

Post 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.

Leito
Posts: 562
Joined: 26 Sep 2016 15:37
Location: Windows 10 1809 x64

Re: Laptop with docking station: wrong monitor detection

Post 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:

admin
Site Admin
Posts: 67271
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Yeah! :beer:

Post Reply