Good ol' upload problem - Fedora Linux

Hi all,

I am using several arduino Uno and a computer running Fedora 19 Linux.
I wrote a script that made my arduino Uno write data on the serial port in a near-continuous manner. It was then impossible to re-upload something to it as it was completely flooding the serial (yes i feel stupid now). But after this I could not get my other arduinos to work either, the devices appear in the serial port menu of the IDE and in /dev/ttyACM*, but when I try tu upload anything it gives the following error:

Binary sketch size: 1,056 bytes (of a 32,256 byte maximum)
processing.app.SerialException: Error opening serial port '/dev/ttyS101'.
	at processing.app.Serial.<init>(Serial.java:178)
	at processing.app.Serial.<init>(Serial.java:77)
	at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
	at processing.app.Sketch.upload(Sketch.java:1671)
	at processing.app.Sketch.exportApplet(Sketch.java:1627)
	at processing.app.Sketch.exportApplet(Sketch.java:1599)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2407)
	at java.lang.Thread.run(Thread.java:744)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
	at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:212)
	at processing.app.Serial.<init>(Serial.java:163)
	... 9 more
processing.app.debug.RunnerException: Error opening serial port '/dev/ttyS101'.
	at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:101)
	at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:175)
	at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
	at processing.app.Sketch.upload(Sketch.java:1671)
	at processing.app.Sketch.exportApplet(Sketch.java:1627)
	at processing.app.Sketch.exportApplet(Sketch.java:1599)
	at processing.app.Editor$DefaultExportHandler.run(Editor.java:2407)
	at java.lang.Thread.run(Thread.java:744)

(here /dev/ttyS101 is a symlink, it works the same for symlinks and /dev/ttyACM* devices.)

I was able to use the arduinos on another computer running some version of Linux Mint and even re-upload a blink script on the arduino that was flooding the serial. (I pressed the reset button until the sketch started uploading) They work ok.

But now I can not upload to any arduino on my fedora computer, and I am afraid it will remain like that forever. I have tried rebooting of course, and everything there: http://arduino.cc/en/guide/troubleshooting#toc1 but nothing worked. Also the error message is very nebulous to me, it looks like something really fundamental stopped working here.
Does anyone understand anything to this message?
Thank you!

I had something similar after sending a lot of serial data to the PC.

I found here on the blog that i should look in the preferences,txt for the line:

serial.debug_rate=9600.

It was not 9600 but after i corrected that, uploading worked fine again.

It worked! Thanks