I/O-Error on uploading sketches to Arduino Uno on Manjaro Linux 21

Hi all,
I installed Arduino IDE via three different ways (pamac, pacman, download from website). The problem was the same on all trials.

After installation of the Arduino IDE I do

ls -l /dev/ttyACM0
crw-rw---- 1 root uucp 166, 0 21. Apr 18:07 /dev/ttyACM0
Now I add myself to uucp group via
gpasswd -a username uucp

Back to the Arduino IDE, trying to upload my sketch to the Arduino, I am stuck at this error:

avrdude: ser_open(): can't open device "/dev/ttyACM0": Input/output error

The serial monitor is also not accessible. Anyone out there, who had similar problems and know how to resolve that issue?

NO!
Not UUCP!

Ich würde es Dir in Deutsch erklären wollen, aber die englische Erklärung ist gut und funktioniert.

Thanks for that swift reply!

The choice of uucp is not up to me, is it?
I was already doing it the way outlined here:

But the group owner of /dev/ttyACM0 was always uucp and NOT dialout. What do you suggest to do?

Den Benutzer der Gruppe zuweisen.
Die Rechte vergeben.

ls -l /dev/ttyACM*

not dialout?

crw-rw---- 1 root dialout <<< here uucp???

Dann musst Du Dich in die Gruppe eintragen. Mein Ubuntu meint:

sudo usermod -a -G uucp $USER
sudo chmod a+rw /dev/ttyACM*

Aber nochmal: ich würde Deutsch sprechen wollen...

Escheint noch mehr davon gegeben zu haben...

Ja, bei mir ist die Gruppe uucp, nicht dialout.

sudo usermod -a -g uucp USER
und
chmod a+rw /dev/ttyACM*

habe ich beides gemacht. Anschließend Neustart. Hat leider das Problem nicht behoben.

Ich habe kein Problem mit "Permission denied". Zugriffsrechte sind vorhanden.
Mein Problem lautet
avrdude: ser_open(): can’t open device “/dev/ttyACM0”: Input/output error

Ich habe schon gefühlt alle Foreneinträge dazu durchgegangen. Leicher hat nichts von dem was ich gefunden habe funktioniert. Daher nun mein Versuch hier :slight_smile:

Was sagt denn die IDE, an welchem Port das Board hängt?
Auswahl unter: Werkzeuge / Port

Gibt es dort den ACM0?
Wie lautet die komplette Fehlermeldung?

Bitte dafür:
DATEI - VOREINSTELLUNGEN
Den Haken setzen bei:
Ausführliche Ausgabe während [ x ] hochladen.

Und dann alles was unten in dem schwarzen Fenster steht, hier reinkopieren - bitte in codetags.

Werkzeuge -> Port -> /dev/ttyACM0 (Arduino Uno)

Die komplette Fehlermeldung lautet wie folgt:

avrdude:
Version 6.3, compiled on Jul 7 2020 at 19:38:43
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "//etc/avrdude.conf"
User configuration file is "/home/USER/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM0
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude:
ser_open(): can't open device "/dev/ttyACM0": Input/output error
avrdude done. Thank you.
the selected serial port does not exist or your board is not connected

Das passt nicht.
Soetwas bekomme ich auch, wenn ich es provoziere.
Zeige das, was unten im Fenster steht.
Sooo... ich hab den Beitrag mal kurz ausgeblendet - und jetzt ist er wieder da... mit folgender Änderung:

Ich habe provoziert und bekomme folgende VOLLSTÄNDIGE Meldung:

/home/.../arduino-1.8.13/hardware/tools/avr/bin/avrdude -C/home/.../arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/ttyACM1 -b115200 -D -Uflash:w:/tmp/arduino_build_214212/xxxxx.ino.hex:i 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/.../arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/.../.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM1
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: ser_open(): can't open device "/dev/ttyACM1": Device or resource busy

avrdude done.  Thank you.

Problem beim Hochladen auf das Board. Hilfestellung dazu unter http://www.arduino.cc/en/Guide/Troubleshooting#upload.

(Zeilenumbruch vor dem CodeTag eingefügt - Danke MicroBahner ++)

Danke für den Link. Allerdings läuft es dort wieder darauf hinaus, dass man sich der Gruppe dialout (in meinem Fall uucp) hinzufügt. Dies war für mich leider keine Lösung die funktioniert. Andere nützliche Hilfestellung finde ich unter diesem Link nicht :frowning:
Oder habe ich etwas übersehen?

Das weiss ich nicht.

Ich würde behaupten, das irgendwas den Port sperrt.

Was gibt Dir WERKZEUGE - BOARDINFORMATIONEN HOLEN aus?

Das übersteigt mein Wissen. Wie kann man rausfinden, was den Port sperrt?
Blueman (Bluetooth) habe ich schon mal deinstalliert. Daran kann es nicht liegen.

Boardinformation:
BN: Arduino Uno
VID: 2341
PID: 0043
SN: 20-stelliger Ziffern/Buchstaben Folge

Sieht für mich okay aus.

maybe forgot to relogin (su - username)?

or

sudo usermod -aG dialout username
and relogin

I did.
Output of "groups" also lists uucp.

why uucp, dialout

The output of

ls -l /dev/ttyACM0

yields

crw-rw---- 1 root uucp 166, 0 21. Apr 22:22 /dev/ttyACM0

That's why I assume I should do

sudo usermod -aG uucp USERNAME

Am I wrong?

see #4

You are Right. In my Mint box ls -la /dev/ttyACM0 produce
crw-rw-rw- 1 username dialout 166, 0 апр 21 23:52 /dev/ttyACM0

But why root is owner of your /dev/ttyACM0 ?

That I don't know. But I would say it makes no difference. I also tried to run Arduino IDE as root but the problem remains.

simply, try command 'cat /dev/ttyACM0' ?

I get

cat: /dev/ttyACM0: Input/output error

Is it of any help?