<div dir="ltr"><div>So here is the situation. <br></div><div>I have a few serial devices and they behave well.</div><div>Each gets the device /dev/ttyUSB0 device when plugged. <br></div><div>They use the cp210x driver. <br></div><div><br></div><div>No issues for years. <br></div><div><br></div><div>Until today. <br></div><div>Somehow a wrong a sequence, maybe unplugging while a program is still accessing the device, <br></div><div>made every device that gets plugged in get /dev/ttyUSB1 instead of 0.</div><div><br></div><div>No matter what I do, it stays 1. I tried the following:</div><div><br></div><div>sudo udevadm control --reload</div><div>sudo service udev restart</div><div>sudo rmmod cp210x <br></div><div>rmmod: ERROR: Module cp210x is in use</div><div>But nothing is plugged in.</div><div><br></div><div>Trying to force it does not work either:</div><div><br></div><div>sudo rmmod -f cp210x<br>rmmod: ERROR: ../libkmod/libkmod-module.c:799 kmod_module_remove_module() could not remove 'cp210x': Resource temporarily unavailable<br>rmmod: ERROR: could not remove module cp210x: Resource temporarily unavailable</div><div><br></div><div>I know a reboot will fix it, but I don't want to keep rebooting if this happens again. <br></div><div><br></div><div>Any other ideas?</div><br><div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal performance optimization, hosting and consulting.<br>"Sooner or later, this combustible mixture of ignorance and power is going to blow up in our faces." -- Dr. Carl Sagan</div></div></div></div>