[BRLTTY] brltty 4.3
Mario Lang
mlang at delysid.org
Fri Apr 6 18:54:16 EDT 2012
Shérab <Sebastien.Hinderer at ens-lyon.org> writes:
> Hi,
>
> Mario Lang (2011/04/27 23:47 +0200):
>> Sébastien Hinderer <Sebastien.Hinderer at ens-lyon.org> writes:
>>
>> > Hi,
>> >
>> > My braille display is connected to the computer with a USB to serial
>> > adapter. If I have to unplug the adapter for some reason and then plug
>> > it again, the braille display does not work any longer. The only way to
>> > resume it is to stop brltty and restart it. Am I missing something or is
>> > there something that could be done to improve this situation ?
>>
>> If you reconnect a usb-to-serial adapter, it might come back
>> with a different device name. When you restart brltty, do you adjust
>> the device name as well, or does it work without changing the device on
>> restart?
>
> Is there a way to make sure the usb to serial adapter will always be
> called the same way ?
I guess you could define a udev rule for it and have it named always
consistently. As a starting point, I use the following rule at work to
get persistent device names for a disk from a particular controller:
SUBSYSTEMS=="scsi", ATTRS{model}=="MR9262-8i", ATTRS{vendor}=="LSI", SYMLINK+="raid%n"
The SYMLINK "variable" can be used to create a symbolic link with the
given name (where %n is replaced with the device number) which points to
whatever device name has been assigned by the kernel. For disks, you
probably want to keep %n, for serial->USB adaptor you probably want to
drop it and have a unique name. Writing udev rules feels a bit like
doing magic, so its probably best you find yourself *some* kind of
official documentation. Mind you, the rules file syntax has changed
over the years a few times, hints you might find on the net might
already be outdated.
--
CYa,
⡍⠁⠗⠊⠕
More information about the BRLTTY
mailing list