Skip to content

Arduino IDE on Secondary monitor issue #5581

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
mefi01 opened this issue Nov 8, 2016 · 12 comments · Fixed by #6589
Closed

Arduino IDE on Secondary monitor issue #5581

mefi01 opened this issue Nov 8, 2016 · 12 comments · Fixed by #6589
Labels
Component: IDE Serial monitor Tools > Serial Monitor Component: IDE user interface The Arduino IDE's user interface Type: Bug

Comments

@mefi01
Copy link

mefi01 commented Nov 8, 2016

Hello.

I experience a bug if I use the Arduino IDE with multiple screens.
I use Arduino 1.6.8 on Windows 10 Pro.

First, drop the IDE window on the secondary Screen and close it. After unplug the screen and try to reopen the program. The loading window shows on the main screen, but when it finish, you can't see.
The program will be on the secondary monitor , but it doesn't connected!

The Serial Monitor is affected too.

It's very annoying, mostly when i forgot to close the IDE or the Serial Monitor on the laptop's screen and I don't have any monitors with me.

Do you also have such an error?

@facchinm facchinm added Component: IDE user interface The Arduino IDE's user interface Type: Bug labels Nov 9, 2016
@septillion-git
Copy link

septillion-git commented Feb 1, 2017

Argg, hitting the same wall. Apparently the last time I used the Serial Monitor I didn't do that on my primary screen. And now I'm connected via remote desktop (so only one screen as far as Windows is concerned) and I can't get the Serial Monitor to show :/

Arduino IDE 1.8.1 on Windows 10

@PaulStoffregen
Copy link
Contributor

To recover, you're probably going to have to edit your preferences.txt file. It's in a hidden folder. Quit Arduino, so your changes don't get overwritten. Then in Windows Explorer, type %LocalAppData% in the location, then look for the preferences.txt file in the Arduino15 folder. Simply deleting the lines about the serial monitor position should be enough.

@septillion-git
Copy link

septillion-git commented Feb 1, 2017

Thanks for the tip! I used the work around of starting a portable version of the IDE 0:-) When I'm back home it's not a problem anymore when it pops to the second or third monitor.

But it does show the bug and the need for the IDE to check if the screen location still exists. Probably the same for the height and width...

@twanek
Copy link

twanek commented Aug 5, 2017

hello!

i see this bug was first reported back in 2016. but in 2017, with latest ide (1.8.3) it is still the same (tested on windows 7 and windows 10)!
please resolve this issue, it is VERY annoying! lots of times i simply can't "access" my serial monitor...

thanks!

@facchinm
Copy link
Member

facchinm commented Aug 7, 2017

Digging a bit in this problem, it looks like:

So on IDE startup if ((screen.width == screenW) && (screen.height == screenH)) is always true because the value is getting overridden by any sketch being reopened.

I'm preparing a PR to always avoid the screen size check and only trust the dimensions (if it fits restore the location, otherwise start as default). Can anyone spot any problem in this approach?

@twanek
Copy link

twanek commented Aug 7, 2017

what is the difference between screen size and dimension?

@facchinm
Copy link
Member

facchinm commented Aug 7, 2017

@twanek I was referring about the serial monitor dimensions 🙂 Could you test #6589 (comment) and report if the problem is solved (no more disappearing serial monitor)? Thanks!

@twanek
Copy link

twanek commented Aug 7, 2017

yes, it is working now, in my setup they are different, the laptop is 17.5" and the external is 22".
but what if the 2 displays have the same resolution / dimension?

@facchinm
Copy link
Member

facchinm commented Aug 7, 2017

It shouldn't matter, since the "virtual screen" when they are both connected will be (roughly) (screen1.width + screen2.width) x (max(screen1.height,screen2.height)) (if they are arranged side by side). This is the best case and the serial monitor will always fit in these dimensions. If you move anything and the window doesn't fit anymore if should be repainted to 0,0 with safe dimensions.

@twanek
Copy link

twanek commented Aug 7, 2017

ah, ok, i understand now. didn't know how the "virtual screen" works in the background.
i hope this solution for the bug will be implemented in the official ide version soon.

thank you for the help!
have a nice day,

@camilov87
Copy link

Going to C:\Users\user\AppData\Local\ and deleting the Arduino15 folder solved the problem for me.

I was using dual monitor

@celiagarridoh
Copy link

Hi, on Windows 10 this worked for me: pressing Windows+Shift+up or Windows+Shift+down.

Regards,
Celia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE Serial monitor Tools > Serial Monitor Component: IDE user interface The Arduino IDE's user interface Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants