Author Message

<  Device Information  ~  (Huawei) E173Eu-1

PostPosted: Wed Mar 23, 2011 5:32 am Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
Hi,

I'm in Vietnam and I've got a USB 3G dongle, supplied by Viettel. On the cover it says 'Viettel 3G'.

Inside it's got model number E173Eu-1
The vendor id shows up as '12d1' in kinfocenter
and the product id shows up as '14a8'

lsusb shows this:

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and kinfocenter calls the device 'Mobile Connect'. It must be manufactured by Huawei, though.

usb_modeswitch fails when I call :
sudo usb_modeswitch -v 12d1 -p 14a8 -V 12d1 -P 14a8 -s 20 -M "55534243123456780000000000000011062000000100000000000000000000"
or any number of variants on the above from the forums. I think I also saw it show up with a product id of '14b5', but switch to that as a target doesn't work either.

However, using the Sakis3G script works a treat, it shows up in Network Manager and connects straight away. I'd just like to automate that if at all possible.

If anyone has any suggestions, please let me know.

Tank


Offline
PostPosted: Wed Mar 23, 2011 1:21 pm Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
Looks in fact like a new Huawei product ID.

If you run usb_modeswitch manually, better leave away the success check. Just start with the default ID and the switching message. Afterwards, run lsusb to note any changes. Mind that it can take several seconds until the device "comes back" in modem mode.

I suspect your target ID will be 12d1:14b5. If you see that, the device has indeed switched modes.

To automate, you can copy one of the existing files in /usr/share/usb_modeswitch (formerly /etc/usb_modeswitch.d) like 12d1:14ad and adapt name and content to your values. Then add a line in /lib/udev/rules.d/40-usb_modeswitch.rules which also reflects your device. This step should be self-explanatory once you have the file open and see the other entries.



Offline
PostPosted: Thu Mar 24, 2011 4:44 am Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
That's just it. I've tried both of those, and they don't work.

Here's the terminal output for a minimal usb_modeswitch manual use (I waited till the D-Com CDROM storage appeared on the desktop):

Code:
josh@marianne-ubuntu:~$ sudo usb_modeswitch -v 12d1 -p 14a8 -M "55534243123456780000000000000011062000000100000000000000000000"

Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 006 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x82 (in)
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: Technology
     Product: Mobile Connect
  Serial No.: not provided
-------------------------
Looking for active driver ...
 No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x82
Resetting message endpoint 0x01
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

josh@marianne-ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 007: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 004: ID 115e:0003 
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


i.e. no change at all. It didn't appear in the Network Manager Mobile Broadband list.

...and with target vendor and product id:

Code:
josh@marianne-ubuntu:~$ sudo usb_modeswitch -v 12d1 -p 14a8 -V 12d1 -P 14b5 -M "55534243123456780000000000000011062000000100000000000000000000"

Looking for target devices ...
 No devices in target mode or class found
Looking for default devices ...
 Found devices in default mode, class or configuration (1)
Accessing device 007 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x82 (in)
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: Technology
     Product: Mobile Connect
  Serial No.: not provided
-------------------------
Looking for active driver ...
 No driver found. Either detached before or never attached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x82
Resetting message endpoint 0x01
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

josh@marianne-ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 008: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 004: ID 115e:0003 
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


I have also tried it with the special Huawei message (-H), but no joy - it doesn't even disappear. With the above message, it just disappears and comes back exactly the same. That makes me think the target product ID is wrong?

Running lsusb now with it working, having used the Sakis3G script, it reads:

Code:
josh@marianne-ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 012: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 004: ID 115e:0003 
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Only the device number has changed.


Offline
PostPosted: Thu Mar 24, 2011 9:45 am Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
Ahaaa - there is no change in the product ID at all; but the switching did happen.
You should be able to see that by comparing the output of "lsusb -v -d 12d1:14a8" before and after sending the command.

In that case, use the target class parameter instead of the target ID: "-C 0xff" and usb_modeswitch should detect the switched mode if you run it again.



Offline
PostPosted: Thu Mar 24, 2011 12:10 pm Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
Ok, so I ran:

Code:
josh@marianne-ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
josh@marianne-ubuntu:~$ lsusb -v -d 12d1:14a8
Bus 001 Device 004: ID 12d1:14a8 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 Technologies Co., Ltd.
  idProduct          0x14a8
  bcdDevice            0.00
  iManufacturer           3
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          1
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    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     0x81  EP 1 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     0x82  EP 2 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     0x01  EP 1 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     0x83  EP 3 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     0x02  EP 2 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     0x84  EP 4 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     0x03  EP 3 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     0x85  EP 5 IN
        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     0x04  EP 4 OUT
        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     0x05  EP 5 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     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)


Then

Code:
josh@marianne-ubuntu:~$ sudo usb_modeswitch -v 12d1 -p 14a8 -V 12d1 -P 14a8 -C 0xff -M "55534243123456780000000000000011062000000100000000000000000000"
[sudo] password for josh:

Looking for target devices ...
 Found devices in target mode or class (1)
Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.

josh@marianne-ubuntu:~$ lsusb -v -d 12d1:14a8
Bus 001 Device 004: ID 12d1:14a8 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 Technologies Co., Ltd.
  idProduct          0x14a8
  bcdDevice            0.00
  iManufacturer           3
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          1
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    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     0x81  EP 1 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     0x82  EP 2 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     0x01  EP 1 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     0x83  EP 3 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     0x02  EP 2 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     0x84  EP 4 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     0x03  EP 3 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     0x85  EP 5 IN
        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     0x04  EP 4 OUT
        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     0x05  EP 5 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     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
josh@marianne-ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


and it still didn't appear in Network Manager. After running Sakis3G, this is the output:

Code:
josh@marianne-ubuntu:~$ lsusb -v -d 12d1:14a8

Bus 001 Device 004: ID 12d1:14a8 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 Technologies Co., Ltd.
  idProduct          0x14a8
  bcdDevice            0.00
  iManufacturer           3
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          1
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    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     0x81  EP 1 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     0x82  EP 2 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     0x01  EP 1 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     0x83  EP 3 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     0x02  EP 2 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     0x84  EP 4 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     0x03  EP 3 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     0x85  EP 5 IN
        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     0x04  EP 4 OUT
        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     0x05  EP 5 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     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)
josh@marianne-ubuntu:~$ lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 12d1:14a8 Technologies Co., Ltd.
Bus 001 Device 002: ID 0ac8:c33f Z-Star Microelectronics Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


and I can't figure out what the difference is. Why does it appear after using the Sakis3G script, but not just using usb_modeswitch? Is Sakis3G forcing it to appear in a list of accepted devices?


Offline
PostPosted: Thu Mar 24, 2011 4:25 pm Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
Your first lsusb output is showing an already switched device. Did you do a fresh replug before?

Anyway, we were not at the point of driver binding yet.

To get everything working, you need a new config file in /usr/share/usb_modeswitch (version 1.1.7) with the name of "12d1:14a8". You can copy any other "12d1:..." file that has the known MessageContent and just adapt the content to match your values. Remember not to give the target ID but a "TargetClass=0xff" line.

Then add a line for your default ID in "/lib/udev/40-usb_modeswitch.rules"; you will see how easy it is if you have the file open for editing.

If you do all that, the serial driver will be bound automatically and the modem should be visible for the system.



Offline
PostPosted: Fri Mar 25, 2011 10:52 am Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
So, I tried again from scratch. I had been mucking around with different config files in /usr/share/usb_modeswitch/, so I removed any references to '12d1:14a8' and '12d1:14b5', and also in the /lib/udev/40-usb_modeswitch.rules file. Then I restarted to see what would happen.

lsusb reported the device id as '12d1:14b5', so I created a file in /usr/share/usb_modeswitch/ with the following in:

Code:
########################################################
# Viettel (Huawei)

DefaultVendor= 0x12d1
DefaultProduct=0x14b5

TargetClass= 0xff

MessageContent="55534243123456780000000000000011062000000100000000000000000000"


and added this to /lib/udev/40-usb_modeswitch.rules:

Code:
# Viettel (Huawei)
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14b5", RUN+="usb_modeswitch '%b/%k'"


Then restarted. It then showed up with the product id of '14a8', but still wasn't appearing in the Network Manager. I don't understand what's not happening here. This is the output of lsusb -v -d 12d1:14a8 after running Sakis3G.

Code:
josh@marianne-ubuntu:~$ lsusb -v -d 12d1:14a8
Bus 001 Device 006: ID 12d1:14a8 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 Technologies Co., Ltd.
  idProduct          0x14a8
  bcdDevice            0.00
  iManufacturer           3
  iProduct                2
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          131
    bNumInterfaces          5
    bConfigurationValue     1
    iConfiguration          1
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    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     0x81  EP 1 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     0x82  EP 2 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     0x01  EP 1 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     0x83  EP 3 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     0x02  EP 2 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     0x84  EP 4 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     0x03  EP 3 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     0x85  EP 5 IN
        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     0x04  EP 4 OUT
        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     0x05  EP 5 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     0x86  EP 6 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
can't get device qualifier: Operation not permitted
can't get debug descriptor: Operation not permitted
cannot read device status, Operation not permitted (1)


Thanks!


Offline
PostPosted: Fri Mar 25, 2011 11:07 am Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
We got it wrong again.

In your first post you tried to switch "12d1:14a8". But this is the switched mode already.

So your device does change IDs when switching. Forget about the TargetClass thing, your config file (its name is correct though) should look like this:
Code:
########################################################
# Viettel (Huawei)

DefaultVendor= 0x12d1
DefaultProduct=0x14b5

TargetVendor=  0x12d1
TargetProduct= 0x14a8

MessageContent="55534243123456780000000000000011062000000100000000000000000000"
This should really settle the matter.



Offline
PostPosted: Fri Mar 25, 2011 11:24 am Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
Ok, it should settle the matter, but just did exactly that and it's still not showing up in Network Manager.

This is the output after adding the above and then restarting:

Code:
josh@marianne-ubuntu:~$ sudo /usr/sbin/usb_modeswitch -c /usr/share/usb_modeswitch/12d1\:14b5

Looking for target devices ...
 Found devices in target mode or class (1)
Looking for default devices ...
 No devices in default mode found. Nothing to do. Bye.


How do I proceed? Obviously it's switched, but something's not right... Even if I unplug (not reboot) after using Sakis3G, it still comes up straight away in Network Manager. What is the piece of info that tells Network Manager there's a compatible modem available?[/code][/quote]


Offline
PostPosted: Fri Mar 25, 2011 12:21 pm Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
The step that is usually done by usb_modeswitch after switching is to bind the "option" driver to the modem (if it doesn't load automatically).

This creates the serial ports (ttyUSBx) in the /dev folder.

Don't run usb_modeswitch manually - it is working right upon plug-in. See the output of "dmesg" to see if the "option"driver was load and bound.



Offline
PostPosted: Sun Mar 27, 2011 9:56 am Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
So, no it wasn't automatically bound: this is the output of dmesg:


Code:
[    0.212969] pci 0000:00:1b.0: PME# disabled
[    0.213105] pci 0000:00:1c.0: PME# supported from D0 D3hot D3cold
[    0.213116] pci 0000:00:1c.0: PME# disabled
[    0.213254] pci 0000:00:1c.2: PME# supported from D0 D3hot D3cold
[    0.213265] pci 0000:00:1c.2: PME# disabled
[    0.213365] pci 0000:00:1d.0: reg 20 io port: [0x1820-0x183f]
[    0.213462] pci 0000:00:1d.1: reg 20 io port: [0x1840-0x185f]
[    0.213560] pci 0000:00:1d.2: reg 20 io port: [0x1860-0x187f]
[    0.213657] pci 0000:00:1d.3: reg 20 io port: [0x1880-0x189f]
[    0.213766] pci 0000:00:1d.7: reg 10 32bit mmio: [0xf0444000-0xf04443ff]
[    0.213859] pci 0000:00:1d.7: PME# supported from D0 D3hot D3cold
[    0.213870] pci 0000:00:1d.7: PME# disabled
[    0.214098] pci 0000:00:1f.0: quirk: region 1000-107f claimed by ICH6 ACPI/GPIO/TCO
[    0.214110] pci 0000:00:1f.0: quirk: region 1180-11bf claimed by ICH6 GPIO
[    0.214217] pci 0000:00:1f.2: reg 10 io port: [0x00-0x07]
[    0.214233] pci 0000:00:1f.2: reg 14 io port: [0x00-0x03]
[    0.214248] pci 0000:00:1f.2: reg 18 io port: [0x00-0x07]
[    0.214263] pci 0000:00:1f.2: reg 1c io port: [0x00-0x03]
[    0.214278] pci 0000:00:1f.2: reg 20 io port: [0x1810-0x181f]
[    0.214331] pci 0000:00:1f.2: PME# supported from D3hot
[    0.214342] pci 0000:00:1f.2: PME# disabled
[    0.214421] pci 0000:00:1f.3: reg 20 io port: [0x18a0-0x18bf]
[    0.214562] pci 0000:02:00.0: reg 10 io port: [0x2000-0x20ff]
[    0.214584] pci 0000:02:00.0: reg 14 32bit mmio: [0xf0100000-0xf0103fff]
[    0.214698] pci 0000:02:00.0: supports D1 D2
[    0.214706] pci 0000:02:00.0: PME# supported from D1 D2 D3hot
[    0.214718] pci 0000:02:00.0: PME# disabled
[    0.214825] pci 0000:00:1c.0: bridge io port: [0x2000-0x2fff]
[    0.214837] pci 0000:00:1c.0: bridge 32bit mmio: [0xf0100000-0xf01fffff]
[    0.214934] pci 0000:03:00.0: reg 10 io port: [0x3000-0x30ff]
[    0.214972] pci 0000:03:00.0: reg 18 64bit mmio pref: [0xf0510000-0xf0510fff]
[    0.215000] pci 0000:03:00.0: reg 20 64bit mmio pref: [0xf0500000-0xf050ffff]
[    0.215019] pci 0000:03:00.0: reg 30 32bit mmio pref: [0x000000-0x01ffff]
[    0.215089] pci 0000:03:00.0: supports D1 D2
[    0.215097] pci 0000:03:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.215108] pci 0000:03:00.0: PME# disabled
[    0.215221] pci 0000:00:1c.2: bridge io port: [0x3000-0x3fff]
[    0.215241] pci 0000:00:1c.2: bridge 64bit mmio pref: [0xf0500000-0xf05fffff]
[    0.215333] pci 0000:00:1e.0: transparent bridge
[    0.215387] pci_bus 0000:00: on NUMA node 0
[    0.215410] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[    0.216054] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
[    0.216302] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP03._PRT]
[    0.216630] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIB._PRT]
[    0.234380] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10 12 14 15) *11
[    0.234652] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
[    0.234917] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 *5 6 7 10 12 14 15)
[    0.235220] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 11 12 14 15)
[    0.235519] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 12 14 15) *11
[    0.235782] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 11 12 14 15) *0, disabled.
[    0.236082] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 *5 6 7 10 12 14 15)
[    0.236359] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 *5 6 7 11 12 14 15)
[    0.236695] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    0.236726] vgaarb: loaded
[    0.237093] SCSI subsystem initialized
[    0.237374] libata version 3.00 loaded.
[    0.237625] usbcore: registered new interface driver usbfs
[    0.237670] usbcore: registered new interface driver hub
[    0.237772] usbcore: registered new device driver usb
[    0.238229] ACPI: WMI: Mapper loaded
[    0.238236] PCI: Using ACPI for IRQ routing
[    0.238651] NetLabel: Initializing
[    0.238659] NetLabel:  domain hash size = 128
[    0.238664] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.238697] NetLabel:  unlabeled traffic allowed by default
[    0.238807] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.238823] hpet0: 3 comparators, 64-bit 14.318180 MHz counter
[    0.244172] Switching to clocksource tsc
[    0.249065] AppArmor: AppArmor Filesystem Enabled
[    0.249105] pnp: PnP ACPI init
[    0.249148] ACPI: bus type pnp registered
[    0.255465] pnp: PnP ACPI: found 11 devices
[    0.255474] ACPI: ACPI bus type pnp unregistered
[    0.255486] PnPBIOS: Disabled by ACPI PNP
[    0.255526] system 00:01: iomem range 0xe0000000-0xefffffff has been reserved
[    0.255538] system 00:01: iomem range 0xfed14000-0xfed17fff has been reserved
[    0.255548] system 00:01: iomem range 0xfed18000-0xfed18fff has been reserved
[    0.255558] system 00:01: iomem range 0xfed19000-0xfed19fff has been reserved
[    0.255569] system 00:01: iomem range 0xfed1c000-0xfed1ffff has been reserved
[    0.255581] system 00:01: iomem range 0xfed20000-0xfed3ffff has been reserved
[    0.255592] system 00:01: iomem range 0xfed40000-0xfed44fff has been reserved
[    0.255603] system 00:01: iomem range 0xfed45000-0xfed8ffff has been reserved
[    0.255631] system 00:04: iomem range 0xfed00000-0xfed003ff has been reserved
[    0.255655] system 00:06: ioport range 0x680-0x69f has been reserved
[    0.255665] system 00:06: ioport range 0x800-0x80f has been reserved
[    0.255675] system 00:06: ioport range 0x1000-0x107f has been reserved
[    0.255684] system 00:06: ioport range 0x1180-0x11bf has been reserved
[    0.255694] system 00:06: ioport range 0x1640-0x164f has been reserved
[    0.255718] system 00:07: ioport range 0x6a0-0x6af has been reserved
[    0.255729] system 00:07: ioport range 0x6b0-0x6ff has been reserved
[    0.290949] pci 0000:00:1c.0: PCI bridge, secondary bus 0000:02
[    0.290962] pci 0000:00:1c.0:   IO window: 0x2000-0x2fff
[    0.290976] pci 0000:00:1c.0:   MEM window: 0xf0100000-0xf01fffff
[    0.290988] pci 0000:00:1c.0:   PREFETCH window: 0x00000040000000-0x000000401fffff
[    0.291008] pci 0000:00:1c.2: PCI bridge, secondary bus 0000:03
[    0.291018] pci 0000:00:1c.2:   IO window: 0x3000-0x3fff
[    0.291031] pci 0000:00:1c.2:   MEM window: 0x40200000-0x405fffff
[    0.291043] pci 0000:00:1c.2:   PREFETCH window: 0x000000f0500000-0x000000f05fffff
[    0.291059] pci 0000:00:1e.0: PCI bridge, secondary bus 0000:04
[    0.291065] pci 0000:00:1e.0:   IO window: disabled
[    0.291077] pci 0000:00:1e.0:   MEM window: disabled
[    0.291086] pci 0000:00:1e.0:   PREFETCH window: disabled
[    0.291126]   alloc irq_desc for 17 on node -1
[    0.291133]   alloc kstat_irqs on node -1
[    0.291151] pci 0000:00:1c.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    0.291164] pci 0000:00:1c.0: setting latency timer to 64
[    0.291186]   alloc irq_desc for 18 on node -1
[    0.291192]   alloc kstat_irqs on node -1
[    0.291204] pci 0000:00:1c.2: PCI INT C -> GSI 18 (level, low) -> IRQ 18
[    0.291217] pci 0000:00:1c.2: setting latency timer to 64
[    0.291235] pci 0000:00:1e.0: setting latency timer to 64
[    0.291248] pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
[    0.291256] pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
[    0.291265] pci_bus 0000:02: resource 0 io:  [0x2000-0x2fff]
[    0.291273] pci_bus 0000:02: resource 1 mem: [0xf0100000-0xf01fffff]
[    0.291281] pci_bus 0000:02: resource 2 pref mem [0x40000000-0x401fffff]
[    0.291289] pci_bus 0000:03: resource 0 io:  [0x3000-0x3fff]
[    0.291297] pci_bus 0000:03: resource 1 mem: [0x40200000-0x405fffff]
[    0.291306] pci_bus 0000:03: resource 2 pref mem [0xf0500000-0xf05fffff]
[    0.291315] pci_bus 0000:04: resource 3 io:  [0x00-0xffff]
[    0.291323] pci_bus 0000:04: resource 4 mem: [0x000000-0xffffffff]
[    0.291429] NET: Registered protocol family 2
[    0.291708] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.292639] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.293782] TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
[    0.294351] TCP: Hash tables configured (established 131072 bind 65536)
[    0.294365] TCP reno registered
[    0.294712] NET: Registered protocol family 1
[    0.294770] pci 0000:00:02.0: Boot video device
[    0.295022] Simple Boot Flag at 0x36 set to 0x1
[    0.295515] cpufreq-nforce2: No nForce2 chipset.
[    0.295602] Scanning for low memory corruption every 60 seconds
[    0.295924] audit: initializing netlink socket (disabled)
[    0.295951] type=2000 audit(1301236987.294:1): initialized
[    0.317456] highmem bounce pool size: 64 pages
[    0.317473] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[    0.322935] VFS: Disk quotas dquot_6.5.2
[    0.323148] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.325198] fuse init (API version 7.13)
[    0.325513] msgmni has been set to 1714
[    0.326228] alg: No test for stdrng (krng)
[    0.326454] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.326465] io scheduler noop registered
[    0.326471] io scheduler anticipatory registered
[    0.326477] io scheduler deadline registered
[    0.326622] io scheduler cfq registered (default)
[    0.327005]   alloc irq_desc for 24 on node -1
[    0.327012]   alloc kstat_irqs on node -1
[    0.327035] pcieport 0000:00:1c.0: irq 24 for MSI/MSI-X
[    0.327056] pcieport 0000:00:1c.0: setting latency timer to 64
[    0.327356]   alloc irq_desc for 25 on node -1
[    0.327364]   alloc kstat_irqs on node -1
[    0.327383] pcieport 0000:00:1c.2: irq 25 for MSI/MSI-X
[    0.327402] pcieport 0000:00:1c.2: setting latency timer to 64
[    0.327646] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.327871] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.328432] ACPI: AC Adapter [ADP1] (off-line)
[    0.328669] input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
[    0.328776] ACPI: Lid Switch [LID0]
[    0.328926] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[    0.328942] ACPI: Power Button [PWRB]
[    0.329089] input: Sleep Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2
[    0.329099] ACPI: Sleep Button [SLPB]
[    0.329235] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
[    0.329244] ACPI: Power Button [PWRF]
[    0.329543] fan PNP0C0B:00: registered as cooling_device0
[    0.329563] ACPI: Fan [FAN0] (off)
[    0.331301] ACPI: SSDT 3f6cb138 00245 (v02  PmRef  Cpu0Ist 00003000 INTL 20050624)
[    0.332561] ACPI: SSDT 3f6caa0e 006A5 (v02  PmRef  Cpu0Cst 00003001 INTL 20050624)
[    0.333883] Monitor-Mwait will be used to enter C-1 state
[    0.333994] processor LNXCPU:00: registered as cooling_device1
[    0.335065] ACPI: SSDT 3f6cb37d 000D4 (v02  PmRef  Cpu1Ist 00003000 INTL 20050624)
[    0.335903] ACPI: SSDT 3f6cb0b3 00085 (v02  PmRef  Cpu1Cst 00003000 INTL 20050624)
[    0.344108] processor LNXCPU:01: registered as cooling_device2
[    0.351769] thermal LNXTHERM:01: registered as thermal_zone0
[    0.351800] ACPI: Thermal Zone [TZ00] (26 C)
[    0.357326] isapnp: Scanning for PnP cards...
[    0.535692] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.539606] brd: module loaded
[    0.541087] loop: module loaded
[    0.541355] input: Macintosh mouse button emulation as /devices/virtual/input/input4
[    0.541607] ata_piix 0000:00:1f.2: version 2.13
[    0.541648]   alloc irq_desc for 19 on node -1
[    0.541655]   alloc kstat_irqs on node -1
[    0.541671] ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[    0.541683] ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
[    0.549338] ACPI: Battery Slot [BAT1] (battery present)
[    0.660002] Freeing initrd memory: 7785k freed
[    0.694901] ata_piix 0000:00:1f.2: setting latency timer to 64
[    0.695120] scsi0 : ata_piix
[    0.695410] scsi1 : ata_piix
[    0.697738] ata1: SATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x1810 irq 14
[    0.697747] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0x1818 irq 15
[    0.699017] Fixed MDIO Bus: probed
[    0.699130] PPP generic driver version 2.4.2
[    0.699279] tun: Universal TUN/TAP device driver, 1.6
[    0.699285] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.699535] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.699588]   alloc irq_desc for 23 on node -1
[    0.699594]   alloc kstat_irqs on node -1
[    0.699610] ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[    0.699643] ehci_hcd 0000:00:1d.7: setting latency timer to 64
[    0.699653] ehci_hcd 0000:00:1d.7: EHCI Host Controller
[    0.699753] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
[    0.699809] ehci_hcd 0000:00:1d.7: using broken periodic workaround
[    0.699831] ehci_hcd 0000:00:1d.7: debug port 1
[    0.703711] ehci_hcd 0000:00:1d.7: cache line size of 32 is not supported
[    0.703747] ehci_hcd 0000:00:1d.7: irq 23, io mem 0xf0444000
[    0.707696] ata2: port disabled. ignoring.
[    0.712035] isapnp: No Plug & Play device found
[    0.718917] ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00
[    0.719137] usb usb1: configuration #1 chosen from 1 choice
[    0.719205] hub 1-0:1.0: USB hub found
[    0.719223] hub 1-0:1.0: 8 ports detected
[    0.719359] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.719397] uhci_hcd: USB Universal Host Controller Interface driver
[    0.719468] uhci_hcd 0000:00:1d.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
[    0.719482] uhci_hcd 0000:00:1d.0: setting latency timer to 64
[    0.719490] uhci_hcd 0000:00:1d.0: UHCI Host Controller
[    0.719581] uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    0.719623] uhci_hcd 0000:00:1d.0: irq 23, io base 0x00001820
[    0.719838] usb usb2: configuration #1 chosen from 1 choice
[    0.719907] hub 2-0:1.0: USB hub found
[    0.719924] hub 2-0:1.0: 2 ports detected
[    0.720021] uhci_hcd 0000:00:1d.1: PCI INT B -> GSI 19 (level, low) -> IRQ 19
[    0.720034] uhci_hcd 0000:00:1d.1: setting latency timer to 64
[    0.720041] uhci_hcd 0000:00:1d.1: UHCI Host Controller
[    0.720115] uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
[    0.720170] uhci_hcd 0000:00:1d.1: irq 19, io base 0x00001840
[    0.720371] usb usb3: configuration #1 chosen from 1 choice
[    0.720439] hub 3-0:1.0: USB hub found
[    0.720455] hub 3-0:1.0: 2 ports detected
[    0.720549]   alloc irq_desc for 20 on node -1
[    0.720555]   alloc kstat_irqs on node -1
[    0.720567] uhci_hcd 0000:00:1d.2: PCI INT C -> GSI 20 (level, low) -> IRQ 20
[    0.720579] uhci_hcd 0000:00:1d.2: setting latency timer to 64
[    0.720586] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    0.720663] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
[    0.720714] uhci_hcd 0000:00:1d.2: irq 20, io base 0x00001860
[    0.720923] usb usb4: configuration #1 chosen from 1 choice
[    0.720986] hub 4-0:1.0: USB hub found
[    0.721002] hub 4-0:1.0: 2 ports detected
[    0.721100]   alloc irq_desc for 16 on node -1
[    0.721105]   alloc kstat_irqs on node -1
[    0.721115] uhci_hcd 0000:00:1d.3: PCI INT D -> GSI 16 (level, low) -> IRQ 16
[    0.721127] uhci_hcd 0000:00:1d.3: setting latency timer to 64
[    0.721134] uhci_hcd 0000:00:1d.3: UHCI Host Controller
[    0.721211] uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
[    0.721263] uhci_hcd 0000:00:1d.3: irq 16, io base 0x00001880
[    0.721475] usb usb5: configuration #1 chosen from 1 choice
[    0.721540] hub 5-0:1.0: USB hub found
[    0.721559] hub 5-0:1.0: 2 ports detected
[    0.721759] PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    0.724814] i8042.c: Detected active multiplexing controller, rev 1.1.
[    0.726209] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.726228] serio: i8042 AUX0 port at 0x60,0x64 irq 12
[    0.726238] serio: i8042 AUX1 port at 0x60,0x64 irq 12
[    0.726248] serio: i8042 AUX2 port at 0x60,0x64 irq 12
[    0.726258] serio: i8042 AUX3 port at 0x60,0x64 irq 12
[    0.726520] mice: PS/2 mouse device common for all mice
[    0.726985] rtc_cmos 00:08: RTC can wake from S4
[    0.727090] rtc_cmos 00:08: rtc core: registered rtc_cmos as rtc0
[    0.727136] rtc0: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[    0.727411] device-mapper: uevent: version 1.0.3
[    0.727686] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
[    0.727869] device-mapper: multipath: version 1.1.0 loaded
[    0.727878] device-mapper: multipath round-robin: version 1.0.0 loaded
[    0.728178] EISA: Probing bus 0 at eisa.0
[    0.728189] Cannot allocate resource for EISA slot 1
[    0.728195] Cannot allocate resource for EISA slot 2
[    0.728200] Cannot allocate resource for EISA slot 3
[    0.728226] EISA: Detected 0 cards.
[    0.728431] cpuidle: using governor ladder
[    0.728436] cpuidle: using governor menu
[    0.729368] TCP cubic registered
[    0.729803] NET: Registered protocol family 10
[    0.730805] lo: Disabled Privacy Extensions
[    0.731546] NET: Registered protocol family 17
[    0.732812] Using IPI No-Shortcut mode
[    0.733030] PM: Resume from disk failed.
[    0.733056] registered taskstats version 1
[    0.733589]   Magic number: 3:180:739
[    0.733725] rtc_cmos 00:08: setting system clock to 2011-03-27 14:43:08 UTC (1301236988)
[    0.733733] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    0.733737] EDD information not available.
[    0.759617] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input5
[    0.859472] ata1.00: ATA-8: Hitachi HTS545016B9A300, PBBOC66G, max UDMA/133
[    0.859480] ata1.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 0/32)
[    0.875644] ata1.00: configured for UDMA/133
[    0.875880] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HTS54501 PBBO PQ: 0 ANSI: 5
[    0.876190] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    0.876257] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    0.876398] sd 0:0:0:0: [sda] Write Protect is off
[    0.876408] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    0.876506] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.876899]  sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[    0.932016] sd 0:0:0:0: [sda] Attached SCSI disk
[    0.932065] Freeing unused kernel memory: 664k freed
[    0.932623] Write protecting the kernel text: 4692k
[    0.932694] Write protecting the kernel read-only data: 1844k
[    0.970553] udev: starting version 151
[    1.033139] usb 1-8: new high speed USB device using ehci_hcd and address 2
[    1.188164] usb 1-8: configuration #1 chosen from 1 choice
[    1.315849] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.315905] r8169 0000:03:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.315978] r8169 0000:03:00.0: setting latency timer to 64
[    1.316145]   alloc irq_desc for 26 on node -1
[    1.316153]   alloc kstat_irqs on node -1
[    1.316182] r8169 0000:03:00.0: irq 26 for MSI/MSI-X
[    1.318322] eth0: RTL8102e at 0xf8076000, 00:24:54:56:4f:ee, XID 04c00000 IRQ 26
[    1.689457] EXT4-fs (sda5): INFO: recovery required on readonly filesystem
[    1.689468] EXT4-fs (sda5): write access will be enabled during recovery
[    4.329640] EXT4-fs (sda5): orphan cleanup on readonly fs
[    4.329661] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 2485588
[    4.329819] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 2485587
[    4.329863] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 2485586
[    4.329902] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 2485585
[    4.329946] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839585
[    4.329976] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 401573
[    4.330172] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839584
[    4.330214] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839583
[    4.330236] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839582
[    4.330275] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839581
[    4.330313] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839580
[    4.330335] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839579
[    4.330374] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 1839238
[    4.330399] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 2485558
[    4.330471] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 401659
[    4.330539] EXT4-fs (sda5): ext4_orphan_cleanup: deleting unreferenced inode 392858
[    4.330578] EXT4-fs (sda5): 16 orphan inodes deleted
[    4.330586] EXT4-fs (sda5): recovery complete
[    4.372045] usb 1-3: new high speed USB device using ehci_hcd and address 3
[    4.506516] usb 1-3: configuration #1 chosen from 1 choice
[    4.531274] Initializing USB Mass Storage driver...
[    4.531648] scsi2 : SCSI emulation for USB Mass Storage devices
[    4.532336] usb-storage: device found at 3
[    4.532344] usb-storage: waiting for device to settle before scanning
[    4.532449] scsi3 : SCSI emulation for USB Mass Storage devices
[    4.532690] usb-storage: device found at 3
[    4.532697] usb-storage: waiting for device to settle before scanning
[    4.532733] usbcore: registered new interface driver usb-storage
[    4.532744] USB Mass Storage support registered.
[    4.608770] EXT4-fs (sda5): mounted filesystem with ordered data mode
[    9.532699] usb-storage: device scan complete
[    9.532916] usb-storage: device scan complete
[    9.533544] scsi 3:0:0:0: Direct-Access     SD       Storage          2.31 PQ: 0 ANSI: 2
[    9.533785] scsi 2:0:0:0: CD-ROM            Mass     Storage          2.31 PQ: 0 ANSI: 2
[    9.534814] sd 3:0:0:0: Attached scsi generic sg1 type 0
[    9.537745] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[    9.540248] sr0: scsi-1 drive
[    9.540256] Uniform CD-ROM driver Revision: 3.20
[    9.540465] sr 2:0:0:0: Attached scsi CD-ROM sr0
[    9.540600] sr 2:0:0:0: Attached scsi generic sg2 type 5
[   13.088145] udev: starting version 151
[   13.114199] Adding 1912824k swap on /dev/sda6.  Priority:-1 extents:1 across:1912824k
[   13.332948] udev: renamed network interface eth0 to eth2
[   13.554796] Linux video capture interface: v2.00
[   13.588562] r8192_pci: module is from the staging directory, the quality is unknown, you have been warned.
[   13.834426] ieee80211_crypt: registered algorithm 'NULL'
[   13.834437] ieee80211_crypt: registered algorithm 'TKIP'
[   13.834444] ieee80211_crypt: registered algorithm 'CCMP'
[   13.834450] ieee80211_crypt: registered algorithm 'WEP'
[   13.834472]
[   13.834475] Linux kernel driver for RTL8192 based WLAN cards
[   13.834481] Copyright (c) 2007-2008, Realsil Wlan
[   13.834583] rtl819xE 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   13.834599] rtl819xE 0000:02:00.0: setting latency timer to 64
[   13.930589] Linux agpgart interface v0.103
[   13.943264] acpi device:03: registered as cooling_device3
[   13.943752] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input6
[   13.943905] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[   13.985891] intel_rng: FWH not detected
[   14.028812] agpgart-intel 0000:00:00.0: Intel 945GME Chipset
[   14.029115] agpgart-intel 0000:00:00.0: detected 7932K stolen memory
[   14.040759] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xd0000000
[   14.085557] Dot11d_Init()
[   14.104386] type=1505 audit(1301211801.867:2):  operation="profile_load" pid=608 name="/sbin/dhclient3"
[   14.105211] type=1505 audit(1301211801.871:3):  operation="profile_load" pid=608 name="/usr/lib/NetworkManager/nm-dhcp-client.action"
[   14.106995] type=1505 audit(1301211801.871:4):  operation="profile_load" pid=608 name="/usr/lib/connman/scripts/dhclient-script"
[   14.135005] uvcvideo: Found UVC 1.00 device WebCam SCB-0340N (0ac8:c33f)
[   14.137122] input: WebCam SCB-0340N as /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/input/input7
[   14.137320] usbcore: registered new interface driver uvcvideo
[   14.137332] USB Video Class driver (v0.1.0)
[   14.179185] IRQ 16
[   14.285836] [drm] Initialized drm 1.1.0 20060810
[   14.398006] Synaptics Touchpad, model: 1, fw: 7.2, id: 0x1c0b1, caps: 0xd04771/0xa40000
[   14.439818] lp: driver loaded but no devices found
[   14.474071] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio4/input/input8
[   14.796142] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   14.796156] i915 0000:00:02.0: setting latency timer to 64
[   14.815552] type=1505 audit(1301211802.579:5):  operation="profile_load" pid=776 name="/usr/share/gdm/guest-session/Xsession"
[   14.820691] type=1505 audit(1301211802.583:6):  operation="profile_replace" pid=777 name="/sbin/dhclient3"
[   14.821625] type=1505 audit(1301211802.587:7):  operation="profile_replace" pid=777 name="/usr/lib/NetworkManager/nm-dhcp-client.action"
[   14.822131] type=1505 audit(1301211802.587:8):  operation="profile_replace" pid=777 name="/usr/lib/connman/scripts/dhclient-script"
[   14.849878] [drm] set up 7M of stolen space
[   14.899236] type=1505 audit(1301211802.663:9):  operation="profile_load" pid=785 name="/usr/lib/cups/backend/cups-pdf"
[   14.901820] type=1505 audit(1301211802.667:10):  operation="profile_load" pid=785 name="/usr/sbin/cupsd"
[   14.930891] type=1505 audit(1301211802.695:11):  operation="profile_load" pid=788 name="/usr/sbin/tcpdump"
[   14.980828] [drm] initialized overlay support
[   15.407286] fb0: inteldrmfb frame buffer device
[   15.407295] registered panic notifier
[   15.407317] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[   15.415380] usb 1-3: USB disconnect, address 3
[   15.467767] vga16fb: initializing
[   15.467784] vga16fb: mapped to 0xc00a0000
[   15.467798] vga16fb: not registering due to another framebuffer present
[   15.865694] Console: switching to colour frame buffer device 128x37
[   15.915487] ppdev: user-space parallel port driver
[   15.988136]   alloc irq_desc for 22 on node -1
[   15.988147]   alloc kstat_irqs on node -1
[   15.988165] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[   15.988264] HDA Intel 0000:00:1b.0: setting latency timer to 64
[   16.170282] hda_codec: ALC269: BIOS auto-probing.
[   16.170936] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input9
[   16.783539] CPU0 attaching NULL sched-domain.
[   16.783552] CPU1 attaching NULL sched-domain.
[   16.900262] CPU0 attaching sched-domain:
[   16.900277]  domain 0: span 0-1 level SIBLING
[   16.900286]   groups: 0 (cpu_power = 589) 1 (cpu_power = 589)
[   16.900304]   domain 1: span 0-1 level MC
[   16.900311]    groups: 0-1 (cpu_power = 1178)
[   16.900329] CPU1 attaching sched-domain:
[   16.900336]  domain 0: span 0-1 level SIBLING
[   16.900343]   groups: 1 (cpu_power = 589) 0 (cpu_power = 589)
[   16.900360]   domain 1: span 0-1 level MC
[   16.900367]    groups: 0-1 (cpu_power = 1178)
[   19.510336] CPU0 attaching NULL sched-domain.
[   19.510348] CPU1 attaching NULL sched-domain.
[   19.532166] CPU0 attaching sched-domain:
[   19.532178]  domain 0: span 0-1 level SIBLING
[   19.532188]   groups: 0 (cpu_power = 589) 1 (cpu_power = 589)
[   19.532207]   domain 1: span 0-1 level MC
[   19.532215]    groups: 0-1 (cpu_power = 1178)
[   19.532234] CPU1 attaching sched-domain:
[   19.532241]  domain 0: span 0-1 level SIBLING
[   19.532249]   groups: 1 (cpu_power = 589) 0 (cpu_power = 589)
[   19.532268]   domain 1: span 0-1 level MC
[   19.532275]    groups: 0-1 (cpu_power = 1178)
[   19.876067] usb 1-3: new high speed USB device using ehci_hcd and address 4
[   20.010561] usb 1-3: configuration #1 chosen from 1 choice
[   20.013889] scsi4 : SCSI emulation for USB Mass Storage devices
[   20.014754] usb-storage: device found at 4
[   20.014762] usb-storage: waiting for device to settle before scanning
[   20.014875] scsi5 : SCSI emulation for USB Mass Storage devices
[   20.015401] usb-storage: device found at 4
[   20.015408] usb-storage: waiting for device to settle before scanning
[   25.012833] usb-storage: device scan complete
[   25.013544] usb-storage: device scan complete
[   25.013754] scsi 5:0:0:0: Direct-Access     SD       Storage          2.31 PQ: 0 ANSI: 2
[   25.014305] scsi 4:0:0:0: CD-ROM            Mass     Storage          2.31 PQ: 0 ANSI: 2
[   25.019958] sd 5:0:0:0: Attached scsi generic sg1 type 0
[   25.033293] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[   25.045785] sr0: scsi-1 drive
[   25.047042] sr 4:0:0:0: Attached scsi CD-ROM sr0
[   25.048627] sr 4:0:0:0: Attached scsi generic sg2 type 5
[   38.905481] ISO 9660 Extensions: Microsoft Joliet Level 1
[   39.029504] ISOFS: changing to secondary root
[   52.631828] rtl819xE: PlatformInitFirmware()==>
[   52.631833]
[   52.631847] rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/boot.img
[   52.651881] rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/main.img
[   52.664051] rtl819xE:Download Firmware: Put code ok!
[   52.664057]
[   52.672026] rtl819xE:Download Firmware: Boot ready!
[   52.672031]
[   52.672042] rtl819xE 0000:02:00.0: firmware: requesting RTL8192E/data.img
[   52.676943] rtl819xE:Download Firmware: Firmware ready!
[   52.676950]
[   52.676957] rtl819xE:Firmware Download Success
[   52.676960]
[   53.125394] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   53.130234] r8169: eth2: link down
[   53.131712] ADDRCONF(NETDEV_UP): eth2: link is not ready
[   73.165089] ieee->state is NOT LINKED
[   73.203310] rtl819xE: PlatformInitFirmware()==>
[   73.203315]
[   73.209030] rtl819xE:Download Firmware: Put code ok!
[   73.209036]
[   73.217021] rtl819xE:Download Firmware: Boot ready!
[   73.217026]
[   73.218052] rtl819xE:Download Firmware: Firmware ready!
[   73.218055]
[   73.218058] rtl819xE:Firmware Download Success
[   73.218061]
[   91.253107] ieee->state is NOT LINKED
[   91.291357] rtl819xE: PlatformInitFirmware()==>
[   91.291364]
[   91.297042] rtl819xE:Download Firmware: Put code ok!
[   91.297049]
[   91.305060] rtl819xE:Download Firmware: Boot ready!
[   91.305067]
[   91.306100] rtl819xE:Download Firmware: Firmware ready!
[   91.306105]
[   91.306110] rtl819xE:Firmware Download Success
[   91.306114]
[  125.373139] ieee->state is NOT LINKED
[  125.411457] rtl819xE: PlatformInitFirmware()==>
[  125.411466]
[  125.417059] rtl819xE:Download Firmware: Put code ok!
[  125.417069]
[  125.425052] rtl819xE:Download Firmware: Boot ready!
[  125.425061]
[  125.426097] rtl819xE:Download Firmware: Firmware ready!
[  125.426103]
[  125.426110] rtl819xE:Firmware Download Success
[  125.426115]


and after running Sakis3G it adds this:

Code:
[  584.490411] usbcore: registered new interface driver usbserial
[  584.491649] USB Serial support registered for generic
[  584.492228] usbcore: registered new interface driver usbserial_generic
[  584.492246] usbserial: USB Serial Driver core
[  584.515867] USB Serial support registered for GSM modem (1-port)
[  584.516809] usbcore: registered new interface driver option
[  584.516818] option: v0.7.2:USB Driver for GSM modems
[  584.616882] option 1-3:1.0: GSM modem (1-port) converter detected
[  584.617429] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
[  584.617569] option 1-3:1.1: GSM modem (1-port) converter detected
[  584.622689] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
[  584.622838] option 1-3:1.2: GSM modem (1-port) converter detected
[  584.623491] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
[  595.712306] PPP BSD Compression module registered
[  595.777700] PPP Deflate Compression module registered


Any ideas?


Offline
PostPosted: Sun Mar 27, 2011 3:05 pm Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
Did you boot with the stick attached ? Try plugging after booting.

Also, enable usb_modeswitch logging as indicated on the main doc page, paragraph "Troubleshooting".


Offline
PostPosted: Sun Mar 27, 2011 4:29 pm Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
Ok, so from logging this is what came up:

Code:

USB_ModeSwitch log from Sun Mar 27 21:21:45 ICT 2011

raw args from udev: /1-3:1.0

Using global config file: /etc/usb_modeswitch.conf
Bus ID for device not given by udev.
 Trying to determine it from kernel name (1-3:1.0) ...
USB dir exists: /sys/bus/usb/devices/1-3
Warning: USB attribute "serial" not found.
----------------
USB values from sysfs:
  manufacturer   Technology
  product   Mobile Connect
  serial   
----------------
SCSI attributes not needed, moving on
checking config: /usr/share/usb_modeswitch/12d1:14b5
! matched, now switching
 (running command: /usr/sbin/usb_modeswitch -I -W -c /usr/share/usb_modeswitch/12d1:14b5)

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are expected in the process)
--------------------------------
usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 005
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 009 on 001
usb_os_find_devices: Found 002 on 001
skipping descriptor 0xB
skipped 1 class/vendor specific endpoint descriptors
skipped 5 class/vendor specific interface descriptors
skipping descriptor 0x25
skipped 1 class/vendor specific endpoint descriptors
skipped 7 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device

Reading config file: /usr/share/usb_modeswitch/12d1:14b5

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 1.1.6 (C) Josua Dietze 2010
 * Based on libusb0 (0.1.12 and above)

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x14b5
TargetVendor=   0x12d1
TargetProduct=  0x14a8
TargetClass=    not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint=  not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice disabled
Success check disabled
System integration mode enabled


Looking for target devices ...
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 12d1:14b5
   found matching vendor ID
  searching devices, found USB ID 0ac8:c33f
  searching devices, found USB ID 1d6b:0002
 No devices in target mode or class found
Looking for default devices ...
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 1d6b:0001
  searching devices, found USB ID 12d1:14b5
   found matching vendor ID
   found matching product ID
   adding device
  searching devices, found USB ID 0ac8:c33f
  searching devices, found USB ID 1d6b:0002
 Found devices in default mode, class or configuration (1)
Accessing device 009 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: Technology
     Product: Mobile Connect
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
USB error: could not clear/halt ep 129: Protocol error
USB error: could not clear/halt ep 1: No such device
USB error: could not release intf 0: No such device
 OK, message successfully sent
Resetting response endpoint 0x81
 Error resetting endpoint: -71
Resetting message endpoint 0x01
 Error resetting endpoint: -19
 Device is gone, skipping any further commands
-> Run lsusb to note any changes. Bye.

--------------------------------
(end of usb_modeswitch output)

Device directory in sysfs is gone! Something went wrong, aborting


What does this last part mean?


Offline
PostPosted: Sun Mar 27, 2011 5:00 pm Reply with quote
Site Admin Posts: 6529 Joined: Sat Nov 03, 2007 12:30 am
Please add the line "CheckSuccess=20" to your config file.

The framework expects the usb_modeswitch binary to exit after either success or timeout.

But you are very close !!



Offline
PostPosted: Sun Mar 27, 2011 5:12 pm Reply with quote
Posts: 9 Joined: Mon Mar 21, 2011 6:55 pm Location: Hanoi, Vietnam
Yippee! Amazing! It all works now. I just plugged it in, it took a few seconds to appear, but it's there, and it connected immediately. Maybe this can be added to your database?

I can't thank you enough for your help in getting this sorted. It's a real help to be able to connect to the internet quickly and reliably.

All the best.


Offline

Display posts from previous:  Sort by:

All times are UTC+02:00
Page 1 of 2
23 posts
Go to page 1 2 Next
Users browsing this forum: No registered users and 3 guests
Search for:
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum