Serial port grayed out on Fedora 21

Hi,

I installed Arduino on Fedora 21 with 'yum instll arduino'
When I run it the 'Tools -> Serial Port' menu option is grayed-out and can not be set.
And when I try to open the serial monitor window I get this messages on the terminal:

Jar version = RXTX-2.2
native lib Version = RXTX-2.2pre2
processing.app.SerialNotFoundException: Serial port '/dev/ttyS1' not found. Did you select the right one from the Tools > Serial Port menu?
at processing.app.Serial.(Serial.java:192)
at processing.app.Serial.(Serial.java:92)
at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:207)
at processing.app.Editor.handleSerial(Editor.java:2508)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:353)
at java.awt.Component.processMouseEvent(Component.java:6522)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4530)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2739)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:719)
at java.awt.EventQueue$4.run(EventQueue.java:717)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:716)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I added the user to the dialout group, and I changed COM1 to ttyS0 in .arduino/preferences.txt
And this happens even when I run it as a root.
I wonder if anyone could suggest a solution?

Andrei

What is the output of dmesg when you plug an Arduino in?

I also hit this problem on an older Fedora. It appeared to be permissions related in my case, as a lock file could not be created.

In any case, I worked around the issue by running the arduino program as super-user:

$ sudo ./arduino

and the grayed out Serial Port then appeared as /dev/ttyS0

Ah in which case for Arch I had to make my user a member of group lock. That may also help.

I did run Arduino a s a super user (root), and the "Tools -> Serial Port" is still gray.

I also tried to use ino to compile a simple Serial Communication test example (http://inotool.org/quickstart).
In that case I just wanted to do an example communicating to the serial port, as described in "Serial Communication" section of that link.
In this cas 'ino build' completed successfully, but 'ino upload' did not work with the serial ports I used for testing:

[root@localhost beep]# ino upload -p /dev/ttyS0
/bin/stty: /dev/ttyS0: Input/output error
stty failed
[root@localhost beep]# ino upload -p /dev/ttyS1
/bin/stty: /dev/ttyS1: Input/output error
stty failed

This problem may be related to the problem with arduino, where serial port is blocked for editing.
So, regarding this I have two questions:

  • How to fix the stty error?
  • How to get more debugging output from ino?

Thanks,

Andrei

You still have not answered this question:

What is the output of dmesg when you plug an Arduino in?

You can run dmesg from a terminal window.

Also what devices get added to your dev tree when you plug it in? (If in doubt run:

ls -l /dev/ > test1.txt

Then plug it in and run:

ls -l /dev/ > test2.txt

followed by:

diff test1.txt test2.txt

And post the output.

Are you certain the board has power?
I had the same problem and spent hours reading forums only to discover that the on board voltage switch on my Sainsmart Uno has a faulty connection and I have to wiggle it every time I want to use it.

Did you add your username in dialout and lock? You have then to logout and login.
I use adrduino on fedora 20 out of the box.
By the way, which arduino board do you use?
When I plug in my arduino Uno, I have this port automatically selected
/dev/ttyACM0 (Arduino Uno).

Sometimes,it happens that it takes a while to see it appearing.