Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401457 - LiveDVD-12.0: add sys-apps/usb_modeswitch for 3G modem users
Summary: LiveDVD-12.0: add sys-apps/usb_modeswitch for 3G modem users
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: LiveCD/DVD/USB (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Team Anniversary
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 378027
  Show dependency tree
 
Reported: 2012-01-30 09:21 UTC by Martin Mokrejš
Modified: 2012-03-26 18:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/ppp/options.ttyUSB0 (options.ttyUSB0,227 bytes, text/plain)
2012-01-30 14:25 UTC, Martin Mokrejš
Details
/etc/ppp/chat-tmobile (chat-tmobile,1.72 KB, text/plain)
2012-01-30 14:26 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2012-01-30 09:21:43 UTC
Anybody willing to plugin an USB modem stick to a USB port booted through LiveDVD will miss support for 3G UMTS modems (the modems expose themselves as a CD-ROM disk and HDD drive and one has to "eject /dev/sr1") to make them switch into modem modem so that /dev/ttyUSB* will be created. usb_modeswitch handles this automatiacally.

Please add sys-apps/usb_modeswitch
Comment 1 Martin Mokrejš 2012-01-30 13:01:04 UTC
Here is what it does (please note the "Jan 30 13:55:51 vostro usb_modeswitch: switching device 12d1:1446 on 003/004" line):


Jan 30 13:55:50 vostro kernel: usb 3-1: new high-speed USB device number 4 using xhci_hcd
Jan 30 13:55:50 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: short transfer on control ep
Jan 30 13:55:50 vostro last message repeated 2 times
Jan 30 13:55:50 vostro kernel: usb 3-1: New USB device found, idVendor=12d1, idProduct=1446
Jan 30 13:55:50 vostro kernel: usb 3-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
Jan 30 13:55:50 vostro kernel: usb 3-1: Product: HUAWEI Mobile
Jan 30 13:55:50 vostro kernel: usb 3-1: Manufacturer: Huawei Technologies
Jan 30 13:55:50 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: short transfer on control ep
Jan 30 13:55:50 vostro kernel: scsi10 : usb-storage 3-1:1.0
Jan 30 13:55:50 vostro kernel: scsi11 : usb-storage 3-1:1.1
Jan 30 13:55:51 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: short transfer on control ep
Jan 30 13:55:51 vostro last message repeated 3 times
Jan 30 13:55:51 vostro usb_modeswitch: switching device 12d1:1446 on 003/004
Jan 30 13:55:51 vostro kernel: usb 3-1: USB disconnect, device number 4
Jan 30 13:55:56 vostro kernel: usb 3-1: new high-speed USB device number 5 using xhci_hcd
Jan 30 13:55:56 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: short transfer on control ep
Jan 30 13:55:56 vostro last message repeated 2 times
Jan 30 13:55:56 vostro kernel: usb 3-1: New USB device found, idVendor=12d1, idProduct=14ac
Jan 30 13:55:56 vostro kernel: usb 3-1: New USB device strings: Mfr=4, Product=3, SerialNumber=0
Jan 30 13:55:56 vostro kernel: usb 3-1: Product: HUAWEI Mobile
Jan 30 13:55:56 vostro kernel: usb 3-1: Manufacturer: Huawei Technologies
Jan 30 13:55:56 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: short transfer on control ep
Jan 30 13:55:56 vostro kernel: scsi12 : usb-storage 3-1:1.5
Jan 30 13:55:56 vostro kernel: scsi13 : usb-storage 3-1:1.6
Jan 30 13:55:56 vostro kernel: usbcore: registered new interface driver usbserial
Jan 30 13:55:56 vostro kernel: USB Serial support registered for generic
Jan 30 13:55:56 vostro kernel: usbcore: registered new interface driver usbserial_generic
Jan 30 13:55:56 vostro kernel: usbserial: USB Serial Driver core
Jan 30 13:55:56 vostro kernel: USB Serial support registered for GSM modem (1-port)
Jan 30 13:55:56 vostro kernel: option 3-1:1.0: GSM modem (1-port) converter detected
Jan 30 13:55:56 vostro kernel: usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
Jan 30 13:55:56 vostro kernel: option 3-1:1.3: GSM modem (1-port) converter detected
Jan 30 13:55:56 vostro kernel: usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
Jan 30 13:55:56 vostro kernel: option 3-1:1.4: GSM modem (1-port) converter detected
Jan 30 13:55:56 vostro kernel: usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
Jan 30 13:55:56 vostro kernel: usbcore: registered new interface driver option
Jan 30 13:55:56 vostro kernel: option: v0.7.2:USB Driver for GSM modems
Jan 30 13:55:57 vostro logger: usb_modeswitch: switched to 12d1:14ac on 003/005
Jan 30 13:55:57 vostro kernel: scsi 13:0:0:0: Direct-Access     HUAWEI   TF CARD Storage       PQ: 0 ANSI: 2
Jan 30 13:55:57 vostro kernel: sd 13:0:0:0: Attached scsi generic sg4 type 0
Jan 30 13:55:57 vostro kernel: scsi 12:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Jan 30 13:55:57 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: Stalled endpoint
Jan 30 13:55:57 vostro kernel: sr1: scsi-1 drive
Jan 30 13:55:57 vostro kernel: sr 12:0:0:0: Attached scsi generic sg5 type 5
Jan 30 13:55:57 vostro kernel: sd 13:0:0:0: [sdd] Attached SCSI removable disk
Jan 30 13:55:57 vostro kernel: xhci_hcd 0000:0b:00.0: WARN: Stalled endpoint

vostro ~ # ls -la /dev/ttyU*
crw-rw---- 1 root uucp 188, 0 Jan 30 13:55 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Jan 30 13:55 /dev/ttyUSB1
crw-rw---- 1 root uucp 188, 2 Jan 30 13:55 /dev/ttyUSB2
vostro ~ #
Comment 2 Fernando (likewhoa) 2012-01-30 14:03:56 UTC
it is not possible to eject the cdrom that the livedvd is running from because of the amount of RAM it would require for 'docache' option which is only enabled on the minimal installcds. However, it should be possible if you boot the livedvd from a usb stick.

Please boot the livedvd from a usb stick and add these options to the default boot kernel "aufs_mem=2G" then once booted emerge sys-apps/usb_modeswitch then try to initialize the modem.
Comment 3 Martin Mokrejš 2012-01-30 14:20:18 UTC
Hi Fernando,
  sorry I was probbaly uclear. One can use eject to "eject" the virtual CD-ROM drive presented by the USB modem stick. I was not talking about the drive where LiveDVD is placed.

  Nevetheless, I haven't said that the "eject" trick does not always work, mostly when network manager or udisks and othe rapps grabbed already access to the virtual CD-ROM drive. usb_modeswitch solves these problems.

  What I tried and worked was to emerge directly while being in the LiveDVD the usb_modeswitch and I got my /dev/ttyUSB* devices created. I did not have my /etc/ppp/ contents handily available so I couldn't test that I can make the ppp connection but I believe wouldn't be the problem. The usb_modeswitch is a small apllication, just add it to the distribution and that's it. If you want to help users maybe also some defaults could be added to /etc/ppp/. I will attach them here as they seem to be fairly same in all countries. It would be really convenient to users.
Comment 4 Martin Mokrejš 2012-01-30 14:25:36 UTC
Created attachment 300393 [details]
/etc/ppp/options.ttyUSB0
Comment 5 Martin Mokrejš 2012-01-30 14:26:58 UTC
Created attachment 300395 [details]
/etc/ppp/chat-tmobile

One can connect with:

pppd ttyUSB0 460800 connect '/usr/sbin/chat -v -f /etc/ppp/chat-tmobile' dump debug
Comment 6 megan 2012-02-22 01:51:24 UTC
This looks very similar to the problem I am having with Huawei modem.

I am being told that the computer can find no network, therefore it can not connect to the net and I am using the live cd 12.

It has been suggested that I "modprobe usbserial" then install http://www.sakis3g.org/. But without the net installing anything is not possible.

I tried becoming su but I don't know the password to do so.
Comment 7 Fernando (likewhoa) 2012-03-26 18:00:25 UTC
added to 12.1