Serial adapters/Linux/ModemManager: Difference between revisions

From OLPC
Jump to navigation Jump to search
(Created page with 'Some hosts, including XOs with recent OLPC OS builds, include a USB modem detector, ''modemmanager'', which opens any newly plugged adapter, configures it for 57600 baud, and tra…')
 
No edit summary
Line 2: Line 2:
*wait out the delay, and connect the coloured serial cable after starting screen,
*wait out the delay, and connect the coloured serial cable after starting screen,
*remove the ModemManager package, permanently preventing probe of USB modems, type this:
*remove the ModemManager package, permanently preventing probe of USB modems, type this:
:<pre>sudo rpm -e ModemManager</pre>
:<pre>sudo rpm -e ModemManager && sudo killall modemmanager</pre>
*add udev rules to exclude the adapter, add this to {{Code|/etc/udev/rules.d/01-local}}:
*add udev rules to exclude the adapter, add this to {{Code|/etc/udev/rules.d/01-local}}:
:<pre>ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{ID_MM_DEVICE_IGNORE}="1"</pre>
:<pre>ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{ID_MM_DEVICE_IGNORE}="1"</pre>

Revision as of 05:38, 11 December 2013

Some hosts, including XOs with recent OLPC OS builds, include a USB modem detector, modemmanager, which opens any newly plugged adapter, configures it for 57600 baud, and transmits AT commands to elicit a response from a modem. This may interfere with use of a serial adapter. There are several workarounds:

  • wait out the delay, and connect the coloured serial cable after starting screen,
  • remove the ModemManager package, permanently preventing probe of USB modems, type this:
sudo rpm -e ModemManager && sudo killall modemmanager
  • add udev rules to exclude the adapter, add this to /etc/udev/rules.d/01-local:
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ENV{ID_MM_DEVICE_IGNORE}="1"