RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 684297 - [PATCH] ZTE modem not working reliably
Summary: [PATCH] ZTE modem not working reliably
Keywords:
Status: CLOSED DUPLICATE of bug 632646
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: udev
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-11 17:58 UTC by Lubomir Rintel
Modified: 2012-03-01 18:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-01 18:08:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lubomir Rintel 2011-03-11 17:58:51 UTC
Description of problem:

ZTE modem often disappears from the system after plugged. It happens because the following rule gets applied:

/lib/udev/rules.d/61-option-modem-modeswitch.rules:ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

When the device is initially inserted, it appears as CD-ROM device. While for most modems modem-modeswitch switches them into serial devices, for this one the correct action is to ask the drive to eject the media; modem-modeswitch causes it to disappear completely.

The rule for ejecting is already present:

/lib/udev/rules.d/61-mobile-action.rules:ACTION=="add", ENV{ID_CDROM}=="1", ENV{ID_VENDOR_ID}=="19d2", ENV{ID_MODEL_ID}=="2000", RUN+="/usr/bin/eject %k"

These two rules make up a race, where the device disappears if eject is not fast enough.

Version-Release number of selected component (if applicable):

udev-147-2.29.el6.i686

Additional information:

The device before and after eject:

Bus 001 Device 005: ID 19d2:2000 ONDA Communication S.p.A. ZTE MF627/MF628/MF628+/MF636+ HSDPA/HSUPA
Bus 001 Device 004: ID 19d2:0031 ONDA Communication S.p.A. ZTE MF636

Comment 2 Harald Hoyer 2011-03-14 08:37:14 UTC
so where is the patch?

a solution might be:

remove the rule from /lib/udev/rules.d/61-option-modem-modeswitch.rules
and extend the rule in /lib/udev/rules.d/61-mobile-action.rules:

ACTION=="add", ENV{ID_CDROM}=="1", \
    ENV{ID_VENDOR_ID}=="19d2", ENV{ID_MODEL_ID}=="2000", \
    RUN+="/usr/bin/eject %k", \
    RUN+="modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

Comment 3 Lubomir Rintel 2011-03-14 21:31:23 UTC
Well, sorry for not being clear enough about the fix and abusing [patch] keyword.

The fix would be to remove the modeswitch rule completely; it is of no use; the device switches into serial mode right after the eject.

(Also, this works well in Fedora, where usb_modeswitch is used)

Comment 7 Harald Hoyer 2012-03-01 18:08:00 UTC
Already fixed:

$ fgrep 19d2 /lib/udev/rules.d/61-option-modem-modeswitch.rules
$ rpm -q udev
udev-147-2.40.el6.x86_64

http://rhn.redhat.com/errata/RHBA-2011-1649.html

*** This bug has been marked as a duplicate of bug 632646 ***


Note You need to log in before you can comment on or make changes to this bug.