microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.39k stars 6.56k forks source link

Multiple monitors using FancyZones doesn't recognize the laptop hood closed! #14857

Open ghost opened 2 years ago

ghost commented 2 years ago

Microsoft PowerToys version

0.51.0

Running as admin

Area(s) with issue?

FancyZones Editor

Steps to reproduce

have a laptop setup with two monitors.

✔️ Expected Behavior

Unpo laptopnhood closed or open adapt the maximum screen resolution or manualaly override the multiple monitors to be used for FancyZones .

❌ Actual Behavior

The FancyZone editor seems to calculate the full maximum resolution based upon the three monitors it has detected, which is incorrect, because the laptop hood is closed! Hence the total resolution is too large and i can manually override it. Therefore there is always a unreachable zone on the laptop screen

Other Software

UMLStudio Segger J-Link STM32 ST-Link Untility nRFStudio ProcessExplorer LockHunter Github TortoiseGit MSVisual Code MS VisualStudio Communicty 2022 Docker DisplayFusion Slack WinSCP

franky920920 commented 2 years ago

Could you attach a full bug report file? Right-click on the tray icon and click Report Bug. Then drag-and-drop the generated file into the GitHub comment to upload it. Thanks! image

cc: @SeraphimaZ

ghost commented 2 years ago

Hello Franky,

Unfortunately I can not because I removed the software for my windows installation.

Regards, Hugo

On Mon, Dec 6, 2021 at 8:39 AM Franky Chen @.***> wrote:

Could you attach a full bug report file? Right-click on the tray icon and click Report Bug. Then drag-and-drop the generated file into the GitHub comment to upload it. Thanks! [image: image] https://user-images.githubusercontent.com/11349917/133042052-4975be21-4699-4363-83c9-a8e1869d079d.png

cc: @SeraphimaZ https://github.com/SeraphimaZ

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/PowerToys/issues/14857#issuecomment-986513502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK6OZWJB3S5IEVY2LEODGRDUPRSB7ANCNFSM5JN5U4UA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

Kind regards,

Hugo Willeboordse

sr. Software Engineer

+31 (0) 499 79 65 12 | www.sensorfy.ai

Connect with me on LinkedIn https://www.linkedin.com/company/sensorfy

-- Download The Essential Guide to Predictive Maintenance for OEMs https://offers.sensorfy.ai/ebook-the-essential-guide-to-predictive-maintenance-for-oems?utm_campaign=Ebooks&utm_source=email_footer&utm_medium=gmail  📘

nitinkumar-c commented 2 years ago

I think its a bug

crutkas commented 2 years ago

Can you update to 0.51.1? That fixed a big issue with layouts resetting

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

ghost commented 2 years ago

Reinstall powertoys 0.51.1? -> unfortunately the issue is the same.

crutkas commented 2 years ago

/bugreport

ghost commented 2 years ago

Hi there!

We need a bit more information to really debug this issue. Can you add a "Report Bug" zip file here? You right click on our system tray icon and just go to report bug. Then drag the zipfile from your desktop onto the GitHub comment box in this issue. Thanks!
Report Bug

ghost commented 2 years ago

PowerToysReport_2021-12-23-13-09-42.zip

SeraphimaZykova commented 2 years ago

As I can see in the settings, you use the Allow zones to span across monitors option. And when the laptop hood is closed or the monitor is turned off, the layout size isn't changed, that's true. Can you please verify one thing for me? If you open the FancyZones Editor after closing the laptop hood, is the layout displayed correctly there?

Note: The same thing can happen after turning off the monitor. However, even after turning it off, it's still present in the Display settings. I need to find out how we can determine whether the monitor is currently on or off.

ghost commented 2 years ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 5 days. It will be closed if no further activity occurs within 5 days of this comment.

ghost commented 2 years ago

@SeraphimaZ

Can you please verify one thing for me? If you open the FancyZones Editor after closing the laptop hood, is the layout displayed correctly there? -> True, the layout displayed size is correctly. Thanks, this is a workable solution for me now!

I do wish: It would be awesome if FancyZone can detect the hood is closing (or closed) and switch to another zone profile.

crutkas commented 2 years ago

@SeraphimaZ if the laptop gets closed, wouldn't that trigger a resolution changed event?

SeraphimaZykova commented 2 years ago

@SeraphimaZ if the laptop gets closed, wouldn't that trigger a resolution changed event?

It doesn't trigger. I can reproduce the same behavior by turning off one display. There is no message from the system when a laptop is closed or a monitor is turned off. I mean, literally, nothing happens until I open Settings->Display and click Detect. After that yes, FZ receives a message so the work area can be recalculated.

You can test it with the next steps, if you have a secondary monitor:

If you disconnect the cable, the system detects it, so everything works as expected.