CH340 setup on RPI 4 with Ubuntu 64bit
based on :
Remove the Brile for the blind - it will mess up work with COM port and CH340.sudo apt remove -y brltty(source https://askubuntu.com/questions/1403705/dev-ttyusb0-not-present-in-ubuntu-22-04)- Download the patched drivers repository and unzip the files
direct link to the download https://github.com/juliagoda/CH341SER/archive/refs/heads/master.zip
cdinto the directory where the files are savedmake cleanmakesudo make loadsudo rmmod ch341to uninstall the broken driverlsmod | grep ch34to list what modules are currently installed- Plug and unplug your CH340 device again on the USB port
dmesg- Expected output (should show "ch34x" now):
[ xxx] ch34x ttyUSB0: ch34x converter now disconnected from ttyUSB0 [ xxx] ch34x 3-2:1.0: device disconnected
Depending on your root permissions, you may need to configure the serial port with the following two commands. Make sure to adjust the $username with respect to the user ID that is currently logged in.
sudo usermod -a -G dialout $username sudo chmod a+rw /dev/ttyUSB0
/dev/ttyUSB0 may be different. Try using ls command as explained in the Driver Verification if you have issues configuring the serial port settings and adjusting the port as necessary.