谈谈挡咱用串口的 brltty
事情是这样的,今天大泽用 ch340 串口时发现了一个问题,线缆链接正确可是串口却不存在。。
于是打开了 dmesg
[ 2450.236940] usb 3-1.1.2.2: new full-speed USB device number 17 using xhci_hcd
[ 2450.340187] usb 3-1.1.2.2: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
[ 2450.340190] usb 3-1.1.2.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2450.340192] usb 3-1.1.2.2: Product: USB2.0-Serial
[ 2450.383240] ch341 3-1.1.2.2:1.0: ch341-uart converter detected
[ 2450.397258] usb 3-1.1.2.2: ch341-uart converter now attached to ttyUSB0
[ 2451.048191] usb 3-1.1.2.2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[ 2451.051277] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 2451.051289] ch341 3-1.1.2.2:1.0: device disconnected
[ 2452.212610] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input36
brltty,这玩意很早以前就挡过我一回,当时懒癌发作直接连根铲了(yay -Rnc brtty)
这次,我顺手 bing 了一下,找到了它的官网 不过这是个英文官网。。。另外这张图是啥意思?

后来我在另一个文章找到了介绍(上面那张图难道是盲文?)
brltty.service 提供布莱叶盲文设备支持,例如布莱叶盲文显示器。
试着用谷歌翻译一下它的Introduction
BRLTTY 是一个后台进程(守护进程),它为使用可刷新盲文显示器的盲人提供对 Linux/Unix 控制台(在文本模式下)的访问。它驱动盲文显示器,并提供完整的屏幕查看功能。一些语音功能也被纳入。
(原文)
BRLTTY is a background process (daemon) which provides access to the Linux/Unix console (when in text mode) for a blind person using a refreshable braille display. It drives the braille display, and provides complete screen review functionality. Some speech capability has also been incorporated.
那估计就是盲文显示器的驱动了
又是一个暖心但是碍事的功能啊。。。
PS1:上一个类似的功能是粘滞键
PS2:解决方法(暴力干掉 udev 规则):sudo rm -rf /lib/udev/rules.d/*brltty*也可以像我之前干的一样直接连根铲了(貌似会破坏 qemu 依赖,Arch Bugs 链接)