From Ubuntu 22 onwards, and working with Arduino 2, connecting a USB TTL (CH340 variant) may not populate a serial port for seeing the logs
To confirm if USB-TTL is recognized, connect and check the output as follows in terminal:
lsusb
It will output to console like this
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 018: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 014: ID 0483:3748 STMicroelectronics ST-LINK/V2
Bus 001 Device 004: ID 8087:0026 Intel Corp. AX201 Bluetooth
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Here CH340 is our USB TTL Device, But Arduino is not able to recognize as a TTL Device
There are 2 Solution to solve the Above Problem
Solution 1
As TTYUSB port is tied to a Braille screen reader by Default, if not being used, the package can be uninstalled. To do this, remove the package with below command
sudo apt remove brltty
After running this command, plug out and then plug in your CH340 TTL Device, should be recognized in Arduino, can also be confirmed in following Terminal Command
admin@virtualbox:~$ ls /dev/ttyUSB*
/dev/ttyUSB0
This confirms your TTL Device Getting Recognized
Option 2
Note: Choose option 2 only if you have not tested Option 1
Open Terminal and edit the file with following command
sudo nano /usr/lib/udev/rules.d/85-brltty.rules
search and Comment out the line which looks like
ENV{PRODUCT}=="1a86/7523/*", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"
After running this command, plug out and then plug in your CH340 TTL Device, should be recognized in Arduino, can also be confirmed in following Terminal Command
admin@virtualbox:~$ ls /dev/ttyUSB*
/dev/ttyUSB0
This confirms your TTL Device Getting Recognized