ModemManager sending data to a device that is not a modem
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bluez Utilities |
New
|
Undecided
|
Unassigned | ||
ModemManager |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
Fedora 14 comes preinstalled with two programs, gpsd and modem-manager which in turn try to open each and every USB/serial device and send some probe data to verify if the device just connected is a GPS or a modem.
The device I have is neither a modem nor a GPS, and its bootloader bails out when seeing AT commands or NMEA sentences.
Also annoying is the fact that these two programs keep the serial port busy for ~10 seconds so that I can't open the serial port with minicom or screen immediately and have to wait till these programs understand it's not what they expect and close the port.
A more detailed report about the bug is available here http://
I have tried two different USB/serial adapters (both appear as /dev/ttyUSB0):
ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
But both are opened by modem-manager.
I've already contacted gpsd developers, and they found a way to disable gpsd as a temporary fix.
Is there a way to (at least locally) blacklist a device so that modem-manager does not try to send AT commands to it?
You can probably blacklist like it is done for some other devices. Look at:
/lib/udev/ rules.d/ 77-mm-pcmcia- device- blacklist. rules rules.d/ 77-mm-qdl- device- blacklist. rules
/lib/udev/
and add a line like this:
ATTRS{prod_ id1}==" Gemplus" , ATTRS{prod_ id2}==" SerialPort" , ATTRS{prod_ id3}==" GemPC Card", ENV{ID_ MM_DEVICE_ IGNORE} ="1"
This blacklisting should probably not be added to Ubuntu; someone might want to connect a modem or GPS to one of those serial adapters.