Bug 744639 - F15 HUAWEI E173s 3G Modem unusable by default (workaround= plug the modem when the system is powered-off & boot)
Summary: F15 HUAWEI E173s 3G Modem unusable by default (workaround= plug the modem whe...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 15
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-09 23:12 UTC by Reartes Guillermo
Modified: 2012-06-07 14:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-07 14:45:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
procedure, logs, lsusb, usb_modeswitch (30.08 KB, application/octet-stream)
2011-10-09 23:12 UTC, Reartes Guillermo
no flags Details
dmesg, when cold booting with the modem already attached (75.67 KB, text/plain)
2011-10-09 23:14 UTC, Reartes Guillermo
no flags Details
messages, when cold booting with the modem already attached (79.45 KB, text/plain)
2011-10-09 23:15 UTC, Reartes Guillermo
no flags Details

Description Reartes Guillermo 2011-10-09 23:12:05 UTC
Created attachment 527119 [details]
procedure, logs, lsusb, usb_modeswitch

Description of problem: HUAWEI E173s (USB) 3G-MODEM does not work by default. The modem is not detected (no devices created) when inserted. Using usb_modeswitch does not work for some reason.
The current workaround is to power-off the system (laptop), then plug the thing and then power-on. That way it is detected as it should.


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

kernel: 2.6.40.6-0.fc15.x86_64

NetworkManager.x86_64        1:0.9.1.90-3.git20110927.fc15    @updates                    
NetworkManager-glib.x86_64   1:0.9.1.90-3.git20110927.fc15       @updates                    
NetworkManager-openvpn.x86_64  1:0.9.0-1.fc15                      @updates                    
NetworkManager-pptp.x86_64     1:0.9.0-1.fc15                      @updates                    
NetworkManager-vpnc.x86_64     1:0.9.0-1.fc15                      @updates

kde-plasma-networkmanagement.x86_64           1:0.9-0.59.20110919git.nm09.fc15    @updates          
kde-plasma-networkmanagement-libs.x86_64      1:0.9-0.59.20110919git.nm09.fc15    @updates                    
kde-plasma-networkmanagement-openvpn.x86_64   1:0.9-0.59.20110919git.nm09.fc15    @updates                    
kde-plasma-networkmanagement-pptp.x86_64      1:0.9-0.59.20110919git.nm09.fc15    @updates                    
kde-plasma-networkmanagement-vpnc.x86_64      1:0.9-0.59.20110919git.nm09.fc15    @updates

kdenetwork.x86_64          7:4.6.5-1.fc15         @updates                   
kdenetwork-libs.x86_64     7:4.6.5-1.fc15         @updates


How reproducible:
allways

Steps to Reproduce:
1. boot
2. plug the thing
3. :-(
  
Actual results:
special boot prerequisite (plug the modem before power-on) is requiered to use
the device.

Expected results:
plug, detect, use.

Comment 1 Reartes Guillermo 2011-10-09 23:14:09 UTC
Created attachment 527120 [details]
dmesg, when cold booting with the modem already attached

Comment 2 Reartes Guillermo 2011-10-09 23:15:25 UTC
Created attachment 527121 [details]
messages, when cold booting with the modem already attached

Comment 3 Reartes Guillermo 2011-11-05 19:38:41 UTC
Tried with newest updates:

usb_modeswitch.x86_64        1.2.0-1.fc15       @updates
usb_modeswitch-data.noarch   20111023-1.fc15    @updates

kernel: 2.6.40.6-0.fc15.x86_64

After updating those, i powered off the laptop and disconnected the battery (just for sure). Then i powered on the laptop again, and let it boot.

Messages when pluging the modem:

Nov  5 16:36:31 localhost kernel: [  902.947833] usb 2-1.1: new high speed USB device number 7 using ehci_hcd
Nov  5 16:36:32 localhost kernel: [  903.377962] usb 2-1.1: New USB device found, idVendor=12d1, idProduct=1c0b
Nov  5 16:36:32 localhost kernel: [  903.377969] usb 2-1.1: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Nov  5 16:36:32 localhost kernel: [  903.377974] usb 2-1.1: Product: HUAWEI Mobile
Nov  5 16:36:32 localhost kernel: [  903.377977] usb 2-1.1: Manufacturer: HUAWEI
Nov  5 16:36:32 localhost kernel: [  903.380654] scsi10 : usb-storage 2-1.1:1.0
Nov  5 16:36:32 localhost kernel: [  903.381129] scsi11 : usb-storage 2-1.1:1.1
Nov  5 16:36:32 localhost mtp-probe: checking bus 2, device 7: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1"
Nov  5 16:36:32 localhost mtp-probe: bus: 2, device: 7 was not an MTP device
Nov  5 16:36:32 localhost logger: usb_modeswitch: using overriding config file /etc/usb_modeswitch.d/12d1:1c0b; make sure this is intended
Nov  5 16:36:32 localhost logger: usb_modeswitch: please report any new or corrected settings; otherwise, check for outdated files
Nov  5 16:36:34 localhost usb_modeswitch: switching 12d1:1c0b (: HUAWEI Mobile)
Nov  5 16:36:34 localhost kernel: [  905.981157] scsi 10:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Nov  5 16:36:34 localhost kernel: [  905.981248] scsi 11:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Nov  5 16:36:34 localhost kernel: [  906.038236] sr1: scsi-1 drive
Nov  5 16:36:34 localhost kernel: [  906.040242] sr 10:0:0:0: Attached scsi generic sg2 type 5
Nov  5 16:36:34 localhost kernel: [  906.040856] sd 11:0:0:0: Attached scsi generic sg2 type 0
Nov  5 16:36:34 localhost kernel: [  906.042964] sd 11:0:0:0: [sdb] Attached SCSI removable disk


Now it seems that "localhost usb_modeswitch: switching 12d1:1c0b", so lsusb shows:

Bus 002 Device 007: ID 12d1:1c0b Huawei Technologies Co., Ltd. 

No need to launch it manually... exept for...
There are no serial port devices created, so no modem...


# ls -l /dev/ttyU*
ls: cannot access /dev/ttyU*: No such file or directory

Comment 4 Reartes Guillermo 2011-11-05 19:51:02 UTC
That is how the modem is left after the auto-usb_modeswich

# lsusb -s 2:6 -vvv

Bus 002 Device 006: ID 12d1:1c05 Huawei Technologies Co., Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1c05 
  bcdDevice            1.02
  iManufacturer           2 HUAWEI
  iProduct                1 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8f  EP 15 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8e  EP 14 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0f  EP 15 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8d  EP 13 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0e  EP 14 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8c  EP 12 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0d  EP 13 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        3
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0c  EP 12 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8b  EP 11 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        4
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x0b  EP 11 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x8a  EP 10 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Comment 5 Reartes Guillermo 2011-11-24 00:01:45 UTC
I installed F16 on that laptop, and tried with F16, no luck.
Then i managed to find another device (same EXACT model) and to my surprise it generates a kernel panic when inserted. It happened all the times i inserted it. Then i inserted mine again and it did not crash but it does not work. 

Modem HUAWEI E173s #1 (MINE+MY SIM)     -> the issue reported here
Modem HUAWEI E173s #2 (OTHER+OTHER SIM) -> kernel panic

Comment 6 Reartes Guillermo 2012-02-22 11:39:08 UTC
Support for the Huawei E173s-6 is solid at the moment:

kernel 3.2.6-3.fc16.x86_64

usb_modeswitch.x86_64       1.2.2-2.fc16      @updates                    
usb_modeswitch-data.noarch  20111023-1.fc16   @updates 

With these software versions in F16, it seems to work correctly. Previous kernels
and/or usb_modeswitch* packages resulted in random panics and other unreliabilities.

Comment 7 Josh Boyer 2012-06-07 14:45:55 UTC
Closing per comment #6


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