USB port not released under Ubuntu 9.04 64-bit?

I use my Arduino Duemilanove with Ubuntu 9.04 64-bit, runing 0017 of the IDE (with the 64-bit RXTX lib - not sure of version, but I used the same version when I was running 0016). I have no problems communicating with the board, etc - but I just noticed something odd.

I typically use the same cable that I plug into my Arduino with my USB scanner (CanoScan N670U); I've had my Arduino plugged into the cable for a couple of weeks now, but I found I needed to scan something, so I swapped it out.

When I started SANE, it said it couldn't find any devices. I ended up rebooting my machine (just want to get something done); I haven't checked the logs or anything, but I am curious whether other people have had this problem? I think maybe something in the Arduino toolchain (or possibly Ubuntu itself; can't rule it out) is keeping the USB port active as a serial port, and not resetting it for whatever reason.

Like I noted above, I haven't troubleshooted this any further; my first instinct would be to check /var/log/messages, the maybe try to restart the USB services (rmmod/modprobe, or maybe restarting udev). I just wanted to put this out here in case anyone else has encountered it and knows of a quick solution, and/or where the bug lies...

Thank you in advance!

Hi,
the problem is not related to the Arduino in any way. There is nothing in the code that could produce this error.
But I also had a problem with my scanner and xsane 2-3 weeks ago. It simply stopped working, or better xsane didn't start up because it could not find the scanner (32-bit system) .

I never found out what caused the problem so I removed all a packages related to sane,xsane etc. and reinstalled them. This brought the scanner back to life.

Eberhard

Hello,

Maybe you could check by usiing dmesg, and see if the USB connection is released or not:

dmesg | tail

and this is what I got when I connect the Arduino to the computer, and later on remove it

Jan 27 10:58:58 joseph-linux kernel: [39242.748527] usb 6-2: new full speed USB device using uhci_hcd and address 3
Jan 27 10:58:58 joseph-linux kernel: [39242.947163] usb 6-2: configuration #1 chosen from 1 choice
Jan 27 10:58:58 joseph-linux kernel: [39242.978506] USB Serial support registered for FTDI USB Serial Device
Jan 27 10:58:58 joseph-linux kernel: [39242.978608] ftdi_sio 6-2:1.0: FTDI USB Serial Device converter detected
Jan 27 10:58:58 joseph-linux kernel: [39242.978647] usb 6-2: Detected FT232RL
Jan 27 10:58:58 joseph-linux kernel: [39242.978651] usb 6-2: Number of endpoints 2
Jan 27 10:58:58 joseph-linux kernel: [39242.978654] usb 6-2: Endpoint 1 MaxPacketSize 64
Jan 27 10:58:58 joseph-linux kernel: [39242.978658] usb 6-2: Endpoint 2 MaxPacketSize 64
Jan 27 10:58:58 joseph-linux kernel: [39242.978661] usb 6-2: Setting MaxPacketSize 64
Jan 27 10:58:58 joseph-linux kernel: [39242.980166] usb 6-2: FTDI USB Serial Device converter now attached to ttyUSB0
Jan 27 10:58:58 joseph-linux kernel: [39242.980194] usbcore: registered new interface driver ftdi_sio
Jan 27 10:58:58 joseph-linux kernel: [39242.980200] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
Jan 27 10:59:10 joseph-linux kernel: [39254.848050] usb 6-2: USB disconnect, address 3
Jan 27 10:59:10 joseph-linux kernel: [39254.848304] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
Jan 27 10:59:10 joseph-linux kernel: [39254.848328] ftdi_sio 6-2:1.0: device disconnected

Cheers
Joseph