Samuel Thibault, le Tue 28 Mar 2006 01:06:55 +0200, a écrit : > Joey Hess, le Mon 27 Mar 2006 16:51:45 -0500, a écrit : > > if there is a way for udev to discover braille devices > > that would be an excellent way to go. > > Here is a .rules file that should work fine
Mmm, sorry, here is one that actually _does_ work :) However, although it works well when hotplugging the device after bootup, it does not when booting with the device already plugged, because USB seems to be discovered before vcsa nodes are available, hence brltty fails. Dave, maybe we should add a little loop for trying to open vcsa a few times before failing? Regards, Samuel
# udev rules file for brltty # ACTION!="add", GOTO="brltty_rules_end" SUBSYSTEM!="usb_device", GOTO="brltty_rules_end" # Alva SYSFS{idVendor}=="06b0", SYSFS{idProduct}=="0001", RUN+="/sbin/brltty -b al -d usb: &" # Baum SYSFS{idVendor}=="0403", SYSFS{idProduct}=="fe71", RUN+="/sbin/brltty -b bm -d usb: &" SYSFS{idVendor}=="0403", SYSFS{idProduct}=="fe72", RUN+="/sbin/brltty -b bm -d usb: &" SYSFS{idVendor}=="0403", SYSFS{idProduct}=="fe73", RUN+="/sbin/brltty -b bm -d usb: &" SYSFS{idVendor}=="0403", SYSFS{idProduct}=="fe74", RUN+="/sbin/brltty -b bm -d usb: &" SYSFS{idVendor}=="0403", SYSFS{idProduct}=="fe75", RUN+="/sbin/brltty -b bm -d usb: &" # FreedomScientific SYSFS{idVendor}=="0f4e", SYSFS{idProduct}=="0100", RUN+="/sbin/brltty -b fs -d usb: &" SYSFS{idVendor}=="0f4e", SYSFS{idProduct}=="0111", RUN+="/sbin/brltty -b fs -d usb: &" SYSFS{idVendor}=="0f4e", SYSFS{idProduct}=="0112", RUN+="/sbin/brltty -b fs -d usb: &" # HandyTech SYSFS{idVendor}=="0921", SYSFS{idProduct}=="1200", RUN+="/sbin/brltty -b ht -d usb: &" SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001", RUN+="/sbin/brltty -b ht -d usb: &" # Papenmeier SYSFS{idVendor}=="0403", SYSFS{idProduct}=="f208", RUN+="/sbin/brltty -b pm -d usb: &" # Voyager SYSFS{idVendor}=="0798", SYSFS{idProduct}=="0001", RUN+="/sbin/brltty -b vo -d usb: &" LABEL="brltty_rules_end"