I recently brought two Arduino UNO boards and were working perfectly with the previous version of Mnajaro. But there came a small os update after which the Arduino ide itself is not recognizing Arduino boards(The port is greyed out in tools). However, the system is able to detect the USB connecter.
The output of lsusb is like this when I connect the boards with the issue.
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 04f3:0903 Elan Microelectronics Corp. ELAN:Fingerprint
Bus 003 Device 004: ID 13d3:56a8 IMC Networks USB2.0 HD UVC WebCam
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
**Bus 001 Device 013: ID 1a86:7523 QinHeng Electronics CH340 serial converter** -->arduino
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Then I tried other two Arduino boards from two other manufacturers and the lsusb output was as follows.
Arduino UNO(from another manufacturer):
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 04f3:0903 Elan Microelectronics Corp. ELAN:Fingerprint
Bus 003 Device 004: ID 13d3:56a8 IMC Networks USB2.0 HD UVC WebCam
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
**Bus 001 Device 012: ID 2341:0043 Arduino SA Uno R3 (CDC ACM)** --arduino
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
NodeMCU(1.0)
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 04f3:0903 Elan Microelectronics Corp. ELAN:Fingerprint
Bus 003 Device 004: ID 13d3:56a8 IMC Networks USB2.0 HD UVC WebCam
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
**Bus 001 Device 011: ID 10c4:ea60 Silicon Labs CP210x UART Bridge** --Node MCU
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
and Generic ESP8266 Module attached to UART Connector:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 04f3:0903 Elan Microelectronics Corp. ELAN:Fingerprint
Bus 003 Device 004: ID 13d3:56a8 IMC Networks USB2.0 HD UVC WebCam
Bus 003 Device 003: ID 8087:0029 Intel Corp. AX200 Bluetooth
Bus 003 Device 002: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 046d:c077 Logitech, Inc. M105 Optical Mouse
**Bus 001 Device 013: ID 1a86:7523 QinHeng Electronics CH340 serial converter** -->converter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Both Arduino UNO(from the other manufacturer) and NodeMCU were able to be detected by IDE(the ports were shown). But the IDE failed to detect the generic ESP8266 module and the newly brought Arduino UNOs mentioned earlier.
To check if the issue is os specific, I tried it in an Ubuntu 21.04 machine and every board was able to be detected by IDE(including those which were not detected by Arduino IDE in Manjaro).
From the logs, it can be seen that the problem occurs only with those boards with a bus device 1a86:7523 QinHeng Electronics CH340 serial converter(I don’t know whether it has anything to do with my problem.). I thought the problem is with the 'arduino-avr-core' package. So I tried installing arduino IDE from their original website but it didn't work too.
I tried booting Manjaro with an old kernel(5.13) but it still didn’t work.
Is it an OS bug ?? or something from the IDE side??
dmesg -w on inserting the CH34
10651.791073] usb 1-4: new full-speed USB device number 5 using xhci_hcd
[10651.945087] usb 1-4: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[10651.945100] usb 1-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[10651.945104] usb 1-4: Product: USB Serial
[10651.962220] ch341 1-4:1.0: ch341-uart converter detected
[10651.977173] usb 1-4: ch341-uart converter now attached to ttyUSB0
[10652.596236] audit: type=1130 audit(1634730643.086:210): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=brltty-device@sys-devices-pci0000:00-0000:00:08.1-0000:03:00.3-usb1-1\x2d4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[10652.657311] audit: type=1130 audit(1634730643.146:211): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=brltty@-sys-devices-pci0000:00-0000:00:08.1-0000:03:00.3-usb1-1\x2d4 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[10652.785156] usb 1-4: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[10652.788592] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[10652.788636] ch341 1-4:1.0: device disconnected
[10653.950489] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input16
My System
- Operating System: Manjaro Linux
- KDE Plasma Version: 5.22.5
- KDE Frameworks Version: 5.87.0
- Qt Version: 5.15.2
- Kernel Version:5.14
- Graphics Platform: Wayland
- Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
- Memory: 7.2 GiB of RAM
- Graphics Processor: AMD RENOIR