<p dir="ltr">Yeah. I think udev is perhaps uncharacteristically complex and fickle, as far as Linux things go. </p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 4, 2016 2:28 PM, "Todor Fassl" <<a href="mailto:fassl.tod@gmail.com">fassl.tod@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Darn! I just tried the rule on an ubuntu xenial machine and it didn't work at all! It works fine for debian jessie.<br>
<br>
$$#@#%%^^! systemd or whatever! I mean, ubuntu and debian are pretty similar. If my rule doesn't work on ubuntu, what are the odds of it working for fedora or suse? Why doesn't anything ever work from one system to another?<br>
<br>
I don't care what anybody says -- linux is hard.<br>
<br>
On 08/03/2016 08:10 PM, Ed Cashin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Software changes, but all the modprobe versions I've seen only load the<br>
requested driver if it isn't already loaded. Subsequent invocations for an<br>
already loaded driver are pretty much harmless.<br>
<br>
Are there any ill consequences you're seeing?<br>
<br>
On Wed, Aug 3, 2016 at 12:26 PM, Todor Fassl <<a href="mailto:fassl.tod@gmail.com" target="_blank">fassl.tod@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
All,<br>
<br>
I want to write a udev rule to load a driver for a hardware speech<br>
synthesizer. Many synths have both USB and serial connectors. The linux<br>
screen reader always uses the serial port. But I thought I could write a<br>
udev rule to detect when the synth is plugged into the USB port and then<br>
load the driver for the serial port. So a blind person would have to plug<br>
the synth into both the serial and the USB ports but I don't figure that is<br>
a problem. It is way easier than trying to log in without speech and then<br>
try to type in the modprobe command. I am hoping to write a whole series of<br>
these rules and then make them available for download.<br>
<br>
I got a rule to work but it seems to try to load the driver several times.<br>
Is anybody experienced enough with udev rules to tell me if this is a<br>
problem and if so, how it can be fixed? Here is my rule:<br>
<br>
ACTION=="add", SYSFS{idVendor}=="0dd0", SYSFS{idProduct}=="1002",<br>
RUN="/sbin/modprobe speakup_ltlk"<br>
<br>
<br>
--<br>
Todd<br>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo</a><br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo</a><br>
<br>
</blockquote>
<br>
-- <br>
Todd<br>
______________________________<wbr>_________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/li<wbr>stinfo</a><br>
</blockquote></div></div>