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

[FancyZones] Two Ultrawide Monitors are Sharing Zone Layouts #1777

Closed
shampoolegs opened this issue Mar 29, 2020 · 32 comments
Closed

[FancyZones] Two Ultrawide Monitors are Sharing Zone Layouts #1777

shampoolegs opened this issue Mar 29, 2020 · 32 comments
Labels
Cost-Large Large work item - 3+ days worth of work (chances are needs to be broken down) Issue-Bug Something isn't working Planning-Consideration Consideration for 2021 stability release Product-FancyZones Refers to the FancyZones PowerToy Resolution-Already Fixed/Doesn't Apply A change in the product has made the issue obsolete.

Comments

@shampoolegs
Copy link

I have a 3 monitor setup, two ultrawides (UW#1, UW#2) and one portrait. The portrait is able to get it's own custom Layout but the ultrawides share whatever Layout I setup on either of them. So if I setup Layout #1 on UW#1 it also applies Layout #1 on UW#2 and vice a versa.

Windows build number:  10.0.18362.720
PowerToys version: v0.15.2
PowerToy module for which you are reporting the bug (if applicable): FancyZones

Edit the layout zones on one ultrawide then check the second ultrawide to see if those zones have been applied on that monitor as well.

Afaik the layout zones are suppose to be monitor specific so each ultrawide should be able to utilize its own custom zone layout.

Both ultrawide monitors are sharing a layout of zones regardless of which one was used to edit zones.

Screenshots

@enricogior enricogior added Issue-Bug Something isn't working Product-FancyZones Refers to the FancyZones PowerToy labels Mar 30, 2020
@enricogior
Copy link
Contributor

Hi @shampoolegs
I guess the two ultrawide monitor are the same brand and model, correct?
Can you please zip and upload "C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\FancyZones\zones-settings.json"
Be aware that the file contains the app history, so feel free to edit the file and delete the app-zone-history section.
There are online tools to edit/format the file in a more readable way.
Thanks.

@shampoolegs
Copy link
Author

shampoolegs commented Mar 30, 2020

Hi @enricogior, thank you for your reply. The two ultrawides are actually different brands and models. Attaching the requested json file as a text file here unedited.
zones-settings-json.txt

Monitor 1) Samsung 34" SJ55W (LS34J550WQNXZA)
Monitor 2) (Main Display) Dell Alienware 34" AW3418DW
Monitor 3) (Portrait) Asus VG236HE 23"

image

@enricogior
Copy link
Contributor

Thanks for sending the settings.
FZ fails to properly identify the two monitors, and uses the same id:

LOCALDISPLAY_3440_1440_{00000000-0000-0000-0000-000000000000}

A proper id should look like this:

DELA0A6#5&2cf76c78&0&UID8721_3440_1440_{00000000-0000-0000-0000-000000000000}

This may be caused by a Windows bug.

The only suggestion to workaround this bug until we find a fix, is to disconnect and reconnect the monitors, try to update the device driver of the GPU, try to install the monitors' drivers if they are available.
Basically, try anything that can trigger Windows to recognize the monitor with a proper id.

@enricogior
Copy link
Contributor

This issue is similar to #611
Even if it's not the same cause, it will have the same fix.

@shampoolegs
Copy link
Author

shampoolegs commented Mar 31, 2020

Hi @enricogior, I read through thread #611 and decided to start with monitor drivers as all three of my monitors showed up as "PnP-Monitor".

I unplugged two of the three monitors and installed drivers for the remaining Dell/Alienware then did the same for the Samsung. I could not find a driver for the Asus monitor but since it was working correctly I moved on. I then plugged all monitors back into the GPU and restarted the system. On reboot I was able to set custom zones for all three monitors but did notice some buggy behavior when trying to shift+snap windows into the zones the zones would not highlight and accept the window. I unchecked and rechecked the first option in FZ and it seems to have fixed it allowing me to use shift to snap windows into zones on all three monitors.

I also tried to find FancyZones in the registry as you had instructed in #611 but couldn't find it under ...Current_User\Software. Using the search function provided one or two entries but it wasn't the same as the image example that was attached in the thread.

Attaching the json as a zip here, please let me know if you want me to reinstall power toys or do anything else.

zones-settings.zip

@enricogior
Copy link
Contributor

@shampoolegs
nice work! You actually managed to fix it since now at least one of the two wide monitors is recognized correctly, the other two as still not recognized but since they have a different resolution, FancyZones manages to treat them as two different devices, these are the current IDs from the settings file.

DELA0FA#5&7f2df8a&1&UID4357_3440_1440_{00000000-0000-0000-0000-000000000000}
LOCALDISPLAY_3440_1440_{00000000-0000-0000-0000-000000000000}
LOCALDISPLAY_1080_1920_{00000000-0000-0000-0000-000000000000}

Regarding the registry: FancyZones doesn't use it anymore, now it only uses settings in json files.

@enricogior
Copy link
Contributor

Let's keep the issue open since we still want to implement a workaround to handle this problem when it happens.

@shampoolegs
Copy link
Author

@enricogio I appreciate your time and help! Will be here if you need any additional testing etc.

@enricogior enricogior added the Cost-Large Large work item - 3+ days worth of work (chances are needs to be broken down) label Apr 27, 2020
@enricogior
Copy link
Contributor

We can't fit this in 0.18, moving it to 0.19.

@enricogior enricogior changed the title Two Ultrawide Monitors are Sharing Zone Layouts [FancyZones] Two Ultrawide Monitors are Sharing Zone Layouts May 1, 2020
@enricogior
Copy link
Contributor

@Mercerudy (from #195 (comment))
can you please upload

"C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\FancyZones\zones-settings.json"

You will have to change the file extension to .txt or zip the file, otherwise GitHub will not accept the file.
Thanks.

@Mercerudy
Copy link

@enricogior Thanks for looking into this!

Looking at comments above, my issue may be a little different. There are unique IDs for my monitors according to the JSON:
zones-settings.zip

Settings:
Clipboard11

@enricogior
Copy link
Contributor

@Mercerudy
those two device IDs may be referring to two virtual desktops for the same monitor.
Also, the LOCALDISPLAY prefix indicates Windows 10 is not providing to FancyZones proper IDs for the monitors.
One workaround is to search for the monitor drivers and install them (if they are available).

@Mercerudy
Copy link

Mercerudy commented Aug 1, 2020

@enricogior
Thanks for the tip. Generic Windows drivers were installed, so I installed Samsung's drivers, and now I have the following in Device Manager:
image

I still have the same issue after a restart and remaking the layouts in the zones editor. Also still see the LOCALDISPLAY prefix in the JSON:
zones-settings.zip

I'll try again with another driver, unless there's another workaround.

@Mercerudy
Copy link

Rolling back the monitor drivers from those provided by Samsung revealed that the TeamViewer monitor driver had been installed over the Microsoft Generic driver. The monitors were still named "Generic PnP Monitor," but the driver properties showed the Driver Provider as "TeamViewer GmbH," even though TeamViewer was no longer installed on the system. Downloading and running the TeamViewer portable executable (no install required), and navigating to "Extras," "Settings," "Advanced," and finally "Uninstall" monitor driver reverted the monitors back to the Microsoft provided Generic PnP.

I then uninstalled PowerToys 0.25.0, deleted the local PowerToys appdata, reinstalled PowerToys and set up FancyZones again via the editor. FancyZones is now working as intended, and I finally have separate zones for each monitor with no need to switch them ten times a day.

Thanks to the team for helping to diagnose and for such great apps built into PowerToys.

@SeraphimaZykova
Copy link
Collaborator

Hi everyone. It's been a while since this issue was opened and FancyZones got a lot of changes and improvements. Could you please verify if the issue is still relevant?
/needinfo

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jun 20, 2023
@shampoolegs
Copy link
Author

Hi everyone. It's been a while since this issue was opened and FancyZones got a lot of changes and improvements. Could you please verify if the issue is still relevant? /needinfo

This issue was resolved a while back, however, I do occasionally have an issue where I have re-apply each monitor's layout. Maybe due to graphics driver updates but I usually run into after computer restarts.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jun 20, 2023
@SeraphimaZykova
Copy link
Collaborator

This issue was resolved a while back, however, I do occasionally have an issue where I have re-apply each monitor's layout. Maybe due to graphics driver updates but I usually run into after computer restarts.

Thank you for your reply! I can now close the issue as it has been resolved.
Layout reset is a known issue and you can track it here if you'd like to keep up to date: #16370

@SeraphimaZykova SeraphimaZykova added Resolution-Already Fixed/Doesn't Apply A change in the product has made the issue obsolete. and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up labels Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cost-Large Large work item - 3+ days worth of work (chances are needs to be broken down) Issue-Bug Something isn't working Planning-Consideration Consideration for 2021 stability release Product-FancyZones Refers to the FancyZones PowerToy Resolution-Already Fixed/Doesn't Apply A change in the product has made the issue obsolete.
Projects
None yet
Development

No branches or pull requests

6 participants