-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Port is grayed out for initial 5-10 minutes after opening IDE #7575
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
Comments
Is there anything I can do to assist in getting verbose output on what triggers the Port to NOT be grayed out and then re-appear. NB: There are no additional message in dmesg or syslog. |
When the port menu is grayed out, are the |
The device files in /dev/ for ttyACM0 (genuine UNO) and ttyUSB3 (ftdi) are there before during and after the IDE launches. Its weird that it only after a period of time the Port menu can be accessed. francis@e3-1246 ~ $ ls -l /dev/ttyUSB3 /dev/ttyACM0 |
Sorry clicked wrong button.. ;-) |
Could it be that modemmanager is somehow keeping the ports busy? I know it sometimes does this (scanning when they are connected), though that usually only shows when opening the port, not when listing them AFAIK. Still, might be something to try, to disable/stop/uninstall modemmanager (check that it isn't autorestarted somehow) and see if the problem persists? |
I HAD removed modemmanager previously as part of my investigation to get this working.. ;-)
|
Is there a way to enable debuging of the IDE itself, to see it probe the TTYs? |
Oh, good idea! What you could try, is to use The actual probing happens by the serial library (JSSC IIRC, not sure where the source lives, seems there is no JSSC repo within the Arduino github organisation, so it probably is not a custom version), so the code is a bit hidden away (in case you wanted to look at that). |
Reading the commits, the serial probing code was rewritten for 1.6. |
Sorry no new messages referring to any device file in /dev after the initialisation. And the only references to /dev/tty* is After the period when Port is no longer grayed, there are no additional system call messages captured via strace. (which seem odd, since I did a BoardID to /dev/ttyACM0 ) |
Strace output. I cannot see anything relevant. |
@francisreader recent version of the IDE list ports via https://github.com/arduino/listSerialPortsC , which provides some richer information (VID, PID, serialnumber). The IDE requests information via a JNI call using a dynamically loaded library, so I think
|
Looking at the strace log, I suspect you need to run As for looking in the log, I would suspect it would do an opendir/readdir on |
listSerialC looks okay this was done before starting ./arduino. Also it was almost 10mins when the Port became un-grayed.
attached is gzip'ed strace with timestamps, From my |
Just an idea: is the port greyed out if you remove all the FTDI converters? |
Yes.
|
I'm still seeing a greyed-out port (USB) in Lubuntu, with a SparkFun Pro Micro. Tried different cables, ports, with external power to the board and without, rebooting the PC, restarting the IDE, downgrading the SparkFun AVR Boards library, etc. My Lubuntu version is 21.10. |
The weird thing is: It was working earlier today. |
...gives me this relevant output...
|
Well, shoot... I tried another SparkFun Pro Micro and it worked. Guess mine just died randomly. Any way to fix this, or should I just write it off? Sorry for the trouble. |
Hi @gregkrsak. Thanks for the update.
There is a chance it could be fixed easily. Please post over on the Arduino forum and we'll provide instructions: https://forum.arduino.cc/c/using-arduino/avrdude-stk500-bootloader-issues/81 |
Tested on 1.6.x -> 1.9.0-beta. Linux Mint 18.3 x86_64.
Upon starting IDE, Port is greyed out for up to 10minutes, after which Port is not grayed and all ACMs/ttyUSB connections are shown.
NB: I have no issues uploading scripts manually from commandline OR using eclipse-arduino plugin at anytime including during the time Arduino-IDE has port grayed.
If after Port is no longer greyed, ie: I can select port and get board-id or upload scripts, If I close the IDE, and restart it, Port is now grayed out for up to 5-10mins.
The text was updated successfully, but these errors were encountered: