[BRLTTY] [PATCH] don't steal abused USB ids
Stanislav Brabec
sbrabec at suse.cz
Mon May 14 11:23:42 EDT 2018
Several Braille devices abuse USB ids of UART Bridges. As a result,
these devices cannot be automatically detected by USB id. Adding these
USB ids to brltty udev rules breaks wide scale of other USB devices
(USB-serial converters, GPSes, AVR ISP programmers, Arduino devices).
brltty cannot steal these USB ids. If the manufacturers fills at least
textual id of their devices, udev rules can use this for discrimination.
If not, such devices cannot be auto detected. (Or they can be detected
by an unsafe serial communication based helper.)
For now, let's comment abused USB devices out.
Index: brltty-5.5/Autostart/Udev/rules
===================================================================
--- brltty-5.5.orig/Autostart/Udev/rules
+++ brltty-5.5/Autostart/Udev/rules
@@ -25,6 +25,8 @@ GOTO="brltty_end"
LABEL="brltty_usb_begin"
# BEGIN_USB_DEVICES
+# This devices abuses USB id of FTDI FT232 USB-Serial (UART) IC and cannot be autodetected.
+# If you have such Braille device, uncomment the line to /etc/udev/rules.d/69-brltty.rules
# Device: 0403:6001
# Generic Identifier
# Vendor: Future Technology Devices International, Ltd
@@ -34,7 +36,7 @@ LABEL="brltty_usb_begin"
# HIMS [Sync Braille]
# HandyTech [FTDI chip]
# MDV [all models]
-ENV{PRODUCT}=="403/6001/*", ENV{BRLTTY_BRAILLE_DRIVER}="at,ce,hm,ht,md", GOTO="brltty_usb_run"
+#ENV{PRODUCT}=="403/6001/*", ENV{BRLTTY_BRAILLE_DRIVER}="at,ce,hm,ht,md", GOTO="brltty_usb_run"
# Device: 0403:DE58
# Hedo [MobilLine]
@@ -270,20 +272,24 @@ ENV{PRODUCT}=="f4e/112/*", ENV{BRLTTY_BR
# FreedomScientific [Focus Blue]
ENV{PRODUCT}=="f4e/114/*", ENV{BRLTTY_BRAILLE_DRIVER}="fs", GOTO="brltty_usb_run"
+# This devices abuses USB id of CP210x UART Bridge and cannot be autodetected.
+# If you have such Braille device, uncomment the line to /etc/udev/rules.d/69-brltty.rules
# Device: 10C4:EA60
# Generic Identifier
# Vendor: Cygnal Integrated Products, Inc.
# Product: CP210x UART Bridge / myAVR mySmartUSB light
# BrailleMemo [Pocket]
# Seika [Braille Display]
-ENV{PRODUCT}=="10c4/ea60/*", ENV{BRLTTY_BRAILLE_DRIVER}="mm,sk", GOTO="brltty_usb_run"
+#ENV{PRODUCT}=="10c4/ea60/*", ENV{BRLTTY_BRAILLE_DRIVER}="mm,sk", GOTO="brltty_usb_run"
+# This devices abuses USB id of CP2110 HID UART Bridge and cannot be autodetected.
+# If you have such Braille device, uncomment the line to /etc/udev/rules.d/69-brltty.rules
# Device: 10C4:EA80
# Generic Identifier
# Vendor: Cygnal Integrated Products, Inc.
# Product: CP210x UART Bridge
# Seika [Note Taker]
-ENV{PRODUCT}=="10c4/ea80/*", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run"
+#ENV{PRODUCT}=="10c4/ea80/*", ENV{BRLTTY_BRAILLE_DRIVER}="sk", GOTO="brltty_usb_run"
# Device: 1148:0301
# BrailleMemo [Smart]
--
Best Regards / S pozdravem,
Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o. e-mail: sbrabec at suse.com
Křižíkova 148/34 (Corso IIa) tel: +49 911 7405384547
186 00 Praha 8-Karlín fax: +420 284 084 001
Czech Republic http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76
More information about the BRLTTY
mailing list