Arduino Forum

Forum 2005-2010 (read only) => Software => Troubleshooting => Topic started by: Blaise_Mibeck on May 23, 2010, 09:07 pm

Title: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 23, 2010, 09:07 pm
I posted this in hardware trouble shooting and have not gotten help.

I have removed brltty and made sure that jre, gcc-avr, etc... everything needed is on and of the correct versions.

This is ubuntu 10.04 -- I see ttyUSB0 when I look for it in the terminal (lsusb). But when I look for it in the arduino IDE all I see is ttyS0. And this of course leads to a "programmer not responding" message when I try to upload.

The arduino works on windowsXP.

The problem has something to do with USB and ubuntu. Please, someone help. I need steps for setting up this connection. I am not that good with linux.

I am doing this all logged in as root.

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Vambo on May 23, 2010, 10:06 pm
This might sound crude (actually it is crude), but have you tried simply
unplugging the USB cable then reconnecting with the IDE still
running
?
Always works for me. I've noticed that it has for others on these forums as well.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 23, 2010, 10:10 pm
Yes -- I tried this. I have unplugged the arduino, opened the ide ad then plugged in and waited for hour -- no sign of ttyUSB0.

Thanks for the suggestion though.

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 24, 2010, 12:34 pm
Hi,
try this:
Start up your computer
Open a console window
Run command "sudo dmesg -c" which prints and clears the kernel log messages since startup
Now plug the arduino board into an USB port
Run command "dmesg" in the console (no need to do this as root this time )
Post the output of the command it should look something like this
Code: [Select]

[ 1700.510090] usb 1-5.5: new full speed USB device using ehci_hcd and address 6
[ 1700.626476] usb 1-5.5: configuration #1 chosen from 1 choice
[ 1700.670375] usbcore: registered new interface driver usbserial
[ 1700.671013] USB Serial support registered for generic
[ 1700.671937] usbcore: registered new interface driver usbserial_generic
[ 1700.671941] usbserial: USB Serial Driver core
[ 1700.682074] USB Serial support registered for FTDI USB Serial Device
[ 1700.682788] ftdi_sio 1-5.5:1.0: FTDI USB Serial Device converter detected
[ 1700.682887] usb 1-5.5: Detected FT232RL
[ 1700.682891] usb 1-5.5: Number of endpoints 2
[ 1700.682894] usb 1-5.5: Endpoint 1 MaxPacketSize 64
[ 1700.682896] usb 1-5.5: Endpoint 2 MaxPacketSize 64
[ 1700.682899] usb 1-5.5: Setting MaxPacketSize 64
[ 1700.683228] usb 1-5.5: FTDI USB Serial Device converter now attached to ttyUSB0
[ 1700.683252] usbcore: registered new interface driver ftdi_sio
[ 1700.683255] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver


Eberhard
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 24, 2010, 02:47 pm
I did a complete reinstall of ubuntu 10.04,
I installed the arduino 0018 using the personal package thing. The IDE is installed and looks fine, but I still can't get ttyUSB0 to show up. I use lsusb in a terminal and I see the ftdi show up.

Eberhard, the output of the first command is:

Code: [Select]

[ 2760.520456] INFO: task lsusb:3021 blocked for more than 120 seconds.
[ 2760.520460] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 2760.520464] lsusb         D 0060f8c8     0  3021      1 0x00000004
[ 2760.520476]  cc58be68 00000086 cc58be24 0060f8c8 00000000 c08874a0 cc580f7c c08874a0
[ 2760.520488]  b491f863 0000022f c08874a0 c08874a0 cc580f7c c08874a0 c08874a0 f690d500
[ 2760.520504]  b459e622 0000022f cc580cd0 7fffffff f761f498 cc580cd0 cc58bec8 c05b012d
[ 2760.520518] Call Trace:
[ 2760.520530]  [<c05b012d>] schedule_timeout+0x1ad/0x280
[ 2760.520538]  [<c020fdef>] ? __dentry_open+0x1af/0x290
[ 2760.520549]  [<c02ff4bd>] ? security_inode_permission+0x1d/0x30
[ 2760.520558]  [<c021ac2e>] ? inode_permission+0x9e/0xb0
[ 2760.520565]  [<c020ffcd>] ? nameidata_to_filp+0x5d/0x70
[ 2760.520572]  [<c0215050>] ? chrdev_open+0x0/0x200
[ 2760.520582]  [<c021e5f2>] ? do_filp_open+0x4d2/0x990
[ 2760.520589]  [<c05b0e6f>] __down+0x5f/0x90
[ 2760.520596]  [<c0174a69>] down+0x39/0x40
[ 2760.520602]  [<c04710ae>] usbdev_read+0x3e/0x250
[ 2760.520609]  [<c02fe3b4>] ? security_file_permission+0x14/0x20
[ 2760.520615]  [<c05b1b77>] ? unlock_kernel+0x27/0x30
[ 2760.520621]  [<c021227f>] vfs_read+0x9f/0x1a0
[ 2760.520629]  [<c02203c9>] ? do_vfs_ioctl+0x79/0x310
[ 2760.520634]  [<c0471070>] ? usbdev_read+0x0/0x250
[ 2760.520644]  [<c0212432>] sys_read+0x42/0x70
[ 2760.520649]  [<c0109763>] sysenter_do_call+0x12/0x28



There was no output when I entered the code after plugging in the arduino.



Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 24, 2010, 03:55 pm
I apologize -- I failed to restart the computer as you asked in your instructions. I followed your instructions again and this is what I got after connecting the arduino.

Code: [Select]
blaise@king-desktop:~$ dmesg
[   77.408032] usb 4-1: new full speed USB device using ohci_hcd and address 3
[   77.635264] usb 4-1: configuration #1 chosen from 1 choice
[   77.686607] usbcore: registered new interface driver usbserial
[   77.686636] USB Serial support registered for generic
[   77.686687] usbcore: registered new interface driver usbserial_generic
[   77.686691] usbserial: USB Serial Driver core
[   77.699577] USB Serial support registered for FTDI USB Serial Device
[   77.699662] ftdi_sio 4-1:1.0: FTDI USB Serial Device converter detected
[   77.699710] usb 4-1: Detected FT232RL
[   77.699715] usb 4-1: Number of endpoints 2
[   77.699719] usb 4-1: Endpoint 1 MaxPacketSize 64
[   77.699724] usb 4-1: Endpoint 2 MaxPacketSize 64
[   77.699728] usb 4-1: Setting MaxPacketSize 64
[   77.701241] usb 4-1: FTDI USB Serial Device converter now attached to ttyUSB0
[   77.701285] usbcore: registered new interface driver ftdi_sio
[   77.701290] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver


After I did this, I opened the arduino IDE and did not see the USB connection under tools -> serial ports.

I left the ide running and disconnected, then reconnected the arduino -- still no change in the serial port options.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: udoklein on May 24, 2010, 10:16 pm
What do you get if you enter:

Code: [Select]

ls -l /dev/serial/by-*


Show us the results.

Udo
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 02:14 am
Here you go:

Code: [Select]
blaise@king-desktop:~$ ls -l /dev/serial/by-*
/dev/serial/by-id:
total 0
lrwxrwxrwx 1 root root 13 2010-05-24 08:51 usb-FTDI_FT232R_USB_UART_A9007CJU-if00-port0 -> ../../ttyUSB0

/dev/serial/by-path:
total 0
lrwxrwxrwx 1 root root 13 2010-05-24 08:51 pci-0000:00:04.0-usb-0:1:1.0-port0 -> ../../ttyUSB0


Does this help? What should I do to have access to ttyUSB0 in the ide?

I really appreciate the help!
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: fdufnews on May 25, 2010, 01:04 pm
Has the group you're attached to the rights to open serial communication?
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 25, 2010, 01:41 pm
Hi,
the output says the arduino is detected by the operating system so it should also be detected by the IDE.

Which java version is installed on your machine?
Code: [Select]

sudo update-alternatives --config java


Are there any error messages printed to the console window if you start up the IDE from the commandline.

Eberhard

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 03:16 pm
Eberhard,

This is what I got:

Code: [Select]
There is only one alternative in link group java: /usr/lib/jvm/java-6-openjdk/jre/bin/java
Nothing to configure.


fdufnews,

I think so -- how do I check?

Thanks!
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 25, 2010, 03:33 pm
Hi,
OpenJdk works fine for most arduino users. If there are problems with this version they are mostly related to graphics or window-menus not working.

The alternative is to use the sun-java6-jre package (install, then run the update-alternatives line again to select it).

Please have a look at the IDE's startup messages again. Are there any error reports.

The Serial Ports Menu is only populated when the Arduino is plugged in. It takes a few seconds for the /dev/ttyUSB* entry to be added to the menu.

Please show us the output of ls -l /devttyUSB*

Eberhard



Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 03:48 pm
Code: [Select]
blaise@king-desktop:~$ ls -l /devttyUSB
ls: cannot access /devttyUSB: No such file or directory
blaise@king-desktop:~$ ls -l /devttyUSB0
ls: cannot access /devttyUSB0: No such file or directory


I don't understand -- when I typed lsusb before I would see the ftdi and everything else usb related. Now it just hangs (no output).

Regarding errors during the start up of IDE -- I don;'t see any in the ide window or the terminal window.

It is the case that every time I click to open the IDE for the first time since the computer is restarted, nothing happens. The second time (and all times after that) the ide seems to start normally.

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 25, 2010, 03:55 pm
Hi,
sorry I didn't check what I typed, missed a slash

ls -l /dev/ttyUSB*

Eberhard

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 04:03 pm
This is what I got:

Code: [Select]
crw-rw---- 1 root dialout 188, 0 2010-05-25 08:11 /dev/ttyUSB0
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 25, 2010, 04:10 pm
Ok,
now what is the output of the 'groups' command?
It should list you as a member of group dialout
Code: [Select]

wayoda@rebooter:~$ groups
wayoda adm dialout cdrom plugdev lpadmin admin sambashare


if not add yourself to this group
Code: [Select]

sudo adduser blaise dialout


and start the IDE to check if you can now see the board
Eberhard

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 04:46 pm
Code: [Select]
blaise@king-desktop:~$ groups
blaise adm dialout cdrom plugdev lpadmin admin sambashare


just to be sure:

Code: [Select]
blaise@king-desktop:~$ sudo adduser blaise dialout
[sudo] password for blaise:
The user `blaise' is already a member of `dialout'.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 25, 2010, 04:56 pm
I don't know what else could be wrong.

You havn't posted the startup messages of the IDE yet.

Eberhard
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 08:00 pm
I am new to linux -- I typed arduino and got this:

Code: [Select]
blaise@king-desktop:~$ arduino
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyUSB0: File exists
RXTX fhs_lock() Error: creating lock file: /var/lock/LCK..ttyUSB0: File exists




thats what you meant by start up message, correct?

It gives the same message for connected and unconnected arduino.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: wayoda on May 25, 2010, 08:47 pm
This is what is causing the trouble. But I don't really know why this is happening.

On my Ubuntu 10.04 the librxtx-java library does not create any lock files at all (with or without arduino board).

Some shots in the dark:
Remove the package librxtx-java and do a fresh install with a reboot inbetween

Try running arduino as root (sudo arduino) just to test if it makes any difference.

Are you on 32bit or 64bit ubuntu?

Eberhard
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: PaulS on May 25, 2010, 09:03 pm
What's the timestamp on that lock file? Could it be leftover from some other application using the com port?
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 25, 2010, 10:55 pm
I disconnected every other USB device from the computer the other day so, this I don't think this is left over.

Eberhard, Thanks for all your help!

When I get home I will try out your suggestion.

I am using 32bit ubuntu.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 26, 2010, 09:52 pm
I have read that librxtx is supposed to make a locked file for each connection to prevent another application from stepping all over the application that opened the connection.

I have also read that there is a way to configure the librxtx to not do this -- but the actual procedure alludes me.

I tried uninstalling/reinstalling the librxtx package to no avail.

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: cr0sh on May 26, 2010, 10:40 pm
Did you try deleting the lock file(s)?

First, remove all serial USB devices (if only the Arduino, unplug that).

Then, in a terminal, change to the directory for the lock files (/var/lock/), then type (without quotes) "sudo rm {filename}" where {filename} is the name of the lockfile. Remove all that relate to ttyUSB0.

Reboot the machine, then re-plug in the Arduino, and try starting the IDE (you may want to do this at a command line to see if the error messages recur).

If that works, then you need to exit the IDE, and try starting it again - if that fails, then something isn't able to remove those lock files. Check the user/group/permissions on those lock files that are created; see if you are in the group, if not, add yourself to the group, remove the lock files, and re-try the steps. If there is a process for keeping rxtx from creating the lock files, you might have to figure that out.

Good luck, and I hope this helps! I've never run into this kind of a problem with my Ubuntu setup - but you never know...

:)
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: raron on May 27, 2010, 06:29 pm
Interesting (well, frustrating for OP of course). I just did a little test on my 32-bit Ubuntu, and there are no lock files in /var/lock. Then I tried to upload a sketch, and while this happened, I quickly switched to a terminal and did a "ls":
LCK..ttyUSB0
is what it said. it disappeared after the upload attempt.

Maybe there is another process that takes over the ttyUSB0 when you plug it in? What process that would be I have no idea though.

Also, I had to write "sudo groups username", to get that list of groups.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: AverageGuy on May 27, 2010, 06:48 pm
This is a wag.  If your lock file is still there, try a
lsof /var/lock/LCK..ttyUSB0

If something is running that has that file open, it will list the process info.  

You may have to do a sudo lsof ...

Maybe that will tell you something.

Jim.

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: Blaise_Mibeck on May 27, 2010, 09:33 pm
First, I would like to thank everyone for their input and help.

Further experimenting shows this behavior: I delete the lock file, open arduino IDE, and in terminal there are no errors. I look for ttyUSB0 in ports and it is there! When I click on ports the lock file for ttyUSB0 appears. When I attempt to up load blink, the IDE stalls for ever.

If I leave the lock file and open IDE there appear two errors about the lock file already existing. When I look under ports I see ttyS0 but no USB. Each time I click on menu another error pops up.

I think the issue is with RXTX.jar and librxtxserial.so (these may not be correct spellings I am away from that machine).

A friend of mine mentioned an issue regarding the AMD cpu. I am using a AMD phenom chip. I have no problems with other USB devices. I have been troubleshooting with the other devices not plugged in.  I have done a clean install of ubuntu, I tried installing the IDE package two different methods.

So I give up. I am going to use another computer for this project -- so I am not high and dry -- simply baffled that this problem seems to have no answer.

I will try what Jim suggested.

I am open to any other experiments for the good of humanity in the face of this computer induced weirdness.

Wishing you all the best,
Peace!
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: raron on May 27, 2010, 10:20 pm
Quote
I am using a AMD phenom chip.

Just FYI, so am I.

Quote
When I click on ports the lock file for ttyUSB0 appears.

You have probablly tried this, but I'll ask anyway: Have you tried to not click on ports (I assume you mean the menu: Tools - Serial Port), only verify that ttyUSB0 is selected, and then upload a sketch?

Btw, did you try Averageguy's suggestion?

Or how about installing the 64-bit Ubuntu? I tried that on another computer ( I was a bit "cautios" on my main computer, as I thought driver support etc. was better on the 32 bit one), but I have had no issues, as far as I know. Haven't tested it extensively, but Arduino IDE and ttyUSB0 works there too.

Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: xorcist on Nov 28, 2010, 08:48 pm
I appear to be having a very similar experience - No detection of an Arduino Duemilanove in the IDE but it's detected by the OS as ttyUSB0.  

I originally downloaded Arduino IDE 0021 for Ubuntu 10.10 (64 bit edition).  Everything worked great - detection, flashing, etc.  Life was good.

I recently did a "do-release-upgrade -d" to get the latest revision of Ubuntu, Natty Narwhal 11.04 (64 bit edition).  Since the upgrade, detection of my Arduino - no workie.  I plugged in the same Arduino to another laptop and it works well enough to program it to spin a servo.  

I'd prefer to use version 0021, so that I can add my own libraries, however, before anyone suggests to install the package Ubuntu provides...already attempted.  I leveraged apt-get to install arduino/arduino-core/librxtx-java and it's the same ol' song as before - detection in the OS as ttyUSB0 but no detection in the Arduino IDE.

I'd prefer to troubleshoot this because I believe this may be a systemic issue that could very easily be impacting other users.  The sense I get is that this issue may be a bug or a combination of bugs between the Arduino IDE/Java and/or Ubuntu (Perhaps a kernel or module bug in ftdi_sio or my favorite package to hate, apparmor).  Here are the steps I've tried so far:

Java Details (PLEASE NOTE-I'VE TRIED ALL JAVA SELECTIONS BELOW WITH THE SAME RESULTS IN THE ARDUINO IDE):
# update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

 Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
 1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
 2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode


Kernel details:
# uname -a
Linux <host> 2.6.37-6-generic #17-Ubuntu SMP Mon Nov 22 20:05:19 UTC 2010 x86_64 GNU/Linux


CPU details:
# cat /proc/cpuinfo
processor      : 0
vendor_id      : GenuineIntel
cpu family      : 6
model            : 37
model name      : Intel(R) Core(TM) i7 CPU       M 620  @ 2.67GHz
stepping      : 5
cpu MHz            : 1199.000
cache size      : 4096 KB
physical id      : 0
siblings      : 4
core id            : 0
cpu cores      : 2
apicid            : 0
initial apicid      : 0
fpu            : yes
fpu_exception      : yes
cpuid level      : 11
wp            : yes
flags            : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt aes lahf_lm ida arat dts tpr_shadow vnmi flexpriority ept vpid
bogomips      : 5320.25
clflush size      : 64
cache_alignment      : 64
address sizes      : 36 bits physical, 48 bits virtual
power management:


FTDI/USB Serial Modules:
# lsmod | grep ftdi
ftdi_sio               34351  0
usbserial              38523  2 ftdi_sio,mct_u232


Unplugging and re-plugging in the device returns the following response from dmesg:
[158887.476756] usb 1-1.2.2.3.4: new full speed USB device using ehci_hcd and address 50
[158887.606373] ftdi_sio 1-1.2.2.3.4:1.0: FTDI USB Serial Device converter detected
[158887.606444] usb 1-1.2.2.3.4: Detected FT232RL
[158887.606449] usb 1-1.2.2.3.4: Number of endpoints 2
[158887.606454] usb 1-1.2.2.3.4: Endpoint 1 MaxPacketSize 64
[158887.606460] usb 1-1.2.2.3.4: Endpoint 2 MaxPacketSize 64
[158887.606464] usb 1-1.2.2.3.4: Setting MaxPacketSize 64
[158887.606905] usb 1-1.2.2.3.4: FTDI USB Serial Device converter now attached to ttyUSB0


Here's the block device that exists in Ubuntu 11.04
# ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 2010-11-26 17:40 /dev/ttyUSB0


Here is the user associated with the "dialout" group:
# grep dialout /etc/group
dialout:x:20:cerberus


Output from lsof on the PID of Arduino IDE 0021 (I believe the warning is due to lsof's interaction with the gnome virtual file system (gvfs).  I guess gvfs prefers to act like a donkey:
# lsof -p 9166
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/cerberus/.gvfs
     Output information may be incomplete.
COMMAND  PID     USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
arduino 9166 cerberus  cwd    DIR  252,1     4096 22812793 /usr/local/arduino-0021
arduino 9166 cerberus  rtd    DIR  252,1     4096        2 /
arduino 9166 cerberus  txt    REG  252,1   109736  7864352 /bin/dash
arduino 9166 cerberus  mem    REG  252,1  1572232 11534645 /lib/libc-2.12.1.so
arduino 9166 cerberus  mem    REG  252,1   141072 11534670 /lib/ld-2.12.1.so
arduino 9166 cerberus    0u   CHR  136,1      0t0        4 /dev/pts/1
arduino 9166 cerberus    1u   CHR  136,1      0t0        4 /dev/pts/1
arduino 9166 cerberus    2u   CHR  136,1      0t0        4 /dev/pts/1
arduino 9166 cerberus   10r   REG  252,1      408 22813770 /usr/local/arduino-0021/arduino


Strace Returns Nothing of Value:
# strace -p 9166

NOTE: I tried to obtain information from STDERR/STDOUT while executing ./arduino from a terminal emulator however nothing displayed in my terminal (No issues displayed about /var/lock, etc).

The last thing I checked was apparmor because it's notorious for breaking stuff.  I ran the following commands:
/etc/init.d/apparmor teardown && /etc/init.d/apparmor stop

Here are the remaining profiles:
# apparmor_status
apparmor module is loaded.
0 profiles are loaded.
0 profiles are in enforce mode.
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode :
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.


I wonder if I need to unload the module because the Arduino IDE still won't detect /dev/ttyUSB0, ugh.  

Any other suggestions or things to try?  Any help would be greatly appreciated.

Best Regards!
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: pluggy on Nov 29, 2010, 08:42 am
The paint is barely dry on 10.10 and you;re 'upgrading' to nest April's release ? I give it a couple months AFTER the official release before I risk upgrading.  Running a daily build of next years release is asking for trouble.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: xorcist on Nov 29, 2010, 10:26 pm
I would agree with that statement, however considering the steps that I've already taken above to troubleshoot this issue, what else in addition to those could I take (besides reinstalling/downgrading) in order to troubleshoot and narrow down the source of the problem?  I wish I was seeing error messages, but I'm not...I think I'm going to attempt to write a sketch to the Arduino using RAD to see if it's truly an IDE or OS issue.  I'll let you guys know what happens.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: mtcs on Dec 09, 2010, 07:18 pm
Try:

#modprobe ftdi_sio
(I also loaded the usbserial before, but I don't know if it is necessary)

see if "dmesg| grep ttyUSB0" returns anything... if it does, you are set.

I had the same problem and it worked for me. :)
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: shenki on Dec 10, 2010, 02:59 am
@xorcist, the problem was with the usb driver suspending in 2.6.37.  This has been fixed:

bugzilla.kernel.org/show_bug.cgi?id=23012

Ubuntu will no doubt soon release a new kernel based on the in-development 2.6.37 which will contain this fix.  If you still have a maverick kernel installed (2.6.35) you can reboot into this to work around the issue for now.
Title: Re: No ttyUSB0 in arduino IDE Ubuntu
Post by: xorcist on Dec 11, 2010, 12:21 am
Right on, thanks!  I noticed this one as well:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/687685

It may be the same bug, I'd have to look a little deeper.  Thanks so much, looks like it was a kernel bug ;-)