Skip to content

Problems with 2nd monitor using Arduino IDE #9781

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

Closed
Kauzge opened this issue Feb 18, 2020 · 6 comments · Fixed by #9814
Closed

Problems with 2nd monitor using Arduino IDE #9781

Kauzge opened this issue Feb 18, 2020 · 6 comments · Fixed by #9814
Labels

Comments

@Kauzge
Copy link

Kauzge commented Feb 18, 2020

I experienced a bug with the Arduino IDE when using a second monitor:

  1. I plugged in my 2nd monitor
  2. opened the Arduino IDE
  3. moved the Adruino IDE window to my 2nd screen
  4. (after work on sketch was finished) closed the window on 2nd screen

A few days later I tried to open the same sketch, but this time with no 2nd monitor connected.
The Arduino IDE would only show an icon in the taskbar. The program would not open, and just show a blank preview if I hover over the taskbar-icon.

My solution for the problem was to plug in the 2nd screen. The IDE window showed up there. I had to move it to the main screen and close it there to prevent the bug from appearing again.
I'm not used to this behaviour, so it took quite a long time to figure out what could be the cause of the problem. Other programs usually open on the first monitor if no 2nd monitor is connected, even if they got closed on the 2nd screen.

My system:
Microsoft Surface Pro
Windows 10
Arduino IDE 1.8.12 (Installer)

@facchinm
Copy link
Member

Hi @Kauzge ,
the issue is probably related with #5581 and should be solved by #6589 (maybe only for the serial monitor, not the IDE itself, taking a closer look later today)

@Kauzge
Copy link
Author

Kauzge commented Feb 19, 2020

Hello @facchinm ,
this is exactly my problem. I'm sorry that I opened another issue on an existing topic. Before I opened the issue, I searched for existing reports, but couldn't find any.
Should I close this issue?

@sushantag9
Copy link

Should I close this issue?

yes it would be great if your problem is resolved

@facchinm facchinm added this to the Release 1.8.13 milestone Feb 27, 2020
@Kauzge Kauzge closed this as completed Feb 27, 2020
@facchinm facchinm reopened this Feb 28, 2020
facchinm added a commit to facchinm/Arduino that referenced this issue Feb 28, 2020
`if ((screen.width != screenW) || (screen.height != screenH))` was making sure to reset every preference in case the display geometry changed.
Unfortunately, on Windows 10, `Toolkit.getDefaultToolkit().getScreenSize()` reports only the primary monitor either if external display is connected or not.

Fixes arduino#9781
@facchinm
Copy link
Member

Hi @Kauzge ,
I submitted #9814 to resolve your problem. In a bit a build should be produced; if you could test it and report the results it would be great.

cmaglie pushed a commit that referenced this issue Mar 23, 2020
`if ((screen.width != screenW) || (screen.height != screenH))` was making sure to reset every preference in case the display geometry changed.
Unfortunately, on Windows 10, `Toolkit.getDefaultToolkit().getScreenSize()` reports only the primary monitor either if external display is connected or not.

Fixes #9781
@catalinroweb
Copy link

The problem is still here on MacOS Catalina 10.15.4 (also on older versions of Catalina).

@ondr3j
Copy link

ondr3j commented Jul 13, 2020

Still happening on Windows 10 as well. Closed IDE and disconnected secondary monitor. If I reopen IDE, the loading screen shows up and that's that. IDE window for last sketch is "invisible". Shows up in taskbar with the name of the last sketch, but cannot be brought up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants