8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Ubuntu で CH340 USB Serial がLinuxで /dev/ttyUSB0 ができなくて動作しない

Last updated at Posted at 2022-05-02

Ubuntu 21.10 の時には動作した気がしていたのに、Ubuntu 22.04 でなぜか /dev/ttyUSB0 ができず動作しなかった。

以下のように udev に設定を追加したのに動作しなかった。

# /etc/udev/rules.d/99-my.rules"
KERNEL=="ttyUSB*", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="dialout" # CH320 Serial
KERNEL=="ttyACM*", ATTR{idVendor}=="1a86", ATTR{idProduct}=="7523", MODE="0666", GROUP="dialout" # CH320 Serial
sudo chmod a+r /etc/udev/rules.d/99-my.rules
sudo udevadm control --reload

dmesg を確認すると、接続したあとに BRLTTY というものが奪っていた。

45149.710077] usb 3-4.1: new full-speed USB device number 75 using xhci_hcd
[45149.814936] usb 3-4.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
[45149.814946] usb 3-4.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[45149.814950] usb 3-4.1: Product: USB2.0-Serial
[45149.862973] ch341 3-4.1:1.0: ch341-uart converter detected
[45149.863460] usb 3-4.1: ch341-uart converter now attached to ttyUSB0
[45150.467771] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input56
[45150.469009] usb 3-4.1: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[45150.469448] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[45150.469466] ch341 3-4.1:1.0: device disconnected

apt パッケージでインストールされており、使った覚えもないため、アンインストールした。

sudo apt remove brltty
sudo udevadm control --reload
8
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?