Bug 13544 - WWAN Modem not found
Summary: WWAN Modem not found
Status: CLOSED DOCUMENTED
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Iñaky Pérez-González
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-15 11:14 UTC by Daniel
Modified: 2012-06-08 11:59 UTC (History)
6 users (show)

See Also:
Kernel Version: 2.6.30
Tree: Mainline
Regression: No


Attachments
output of lspci on newer kernel (2.71 KB, text/plain)
2009-06-16 20:58 UTC, Daniel
Details
output of lsusb on newer kernel (627 bytes, text/plain)
2009-06-16 20:59 UTC, Daniel
Details

Description Daniel 2009-06-15 11:14:16 UTC
I am currently using an ubuntu Linux, using the newest stable release from kernel.org as driver.

uname -a
Linux daniel-lap 2.6.30-020630-generic #020630 SMP Wed Jun 10 09:04:38 UTC 2009 x86_64 GNU/Linux

In a previous version of the kernel (2.6.28-11 and 2.6.28-12) my WWAN mobile broadband was detected correctly and could be used.

Modules loaded for that where:
cdc_acm
cdc_wdm
cdc_ether

Now none of these modules is loaded by default, so no device (usually /dev/ttyACMx) can be found. Manually loading via modprobe doesn't help.

Tell me, what additional information is needed.

Greetings
Daniel
Comment 1 Daniel 2009-06-15 11:16:02 UTC
"I am currently using an ubuntu Linux, using the newest stable release from
kernel.org as driver."

Sorry, of course i mean that i am using the newest release as kernel...
Comment 2 Iñaky Pérez-González 2009-06-15 21:30:07 UTC
Daniel: which WWAN modem are you using? (make, model, etc).

Please attach output of lsusb and lspci.

Thank you,
Comment 3 Daniel 2009-06-16 20:57:37 UTC
i added the output of lspci and lsusb from the new kernel.
Here, the device doesn't show up.

Tomorrow, i will ran lsusb (here the device is normaly shown) on the "old" kernel and post it.

i can't exactly tell you, which modem i am using.
the laptop (a thinkpad t500) has an integrated mobile modem.
i think it is some kind of ericsson f3507g. at least, i kept using the AT commands for an f3507g to control the device.
Comment 4 Daniel 2009-06-16 20:58:36 UTC
Created attachment 21948 [details]
output of lspci on newer kernel
Comment 5 Daniel 2009-06-16 20:59:14 UTC
Created attachment 21949 [details]
output of lsusb on newer kernel
Comment 6 Alain Rossmann 2009-07-14 18:31:58 UTC
Experienced the same on my system when I moved from 2.27.11 to 2.28.11. Same also under 2.28.13.

The following might help debug the problem: 

dmesg shows that in fact the card is detected during boot, the proper modules -cdc_acm and cdc_wdm- load and create the appropriate comm ports, but after a while the usb port is disconnected and ehci_hcd appears unhappy.

I have noted that in kernel 2.27.11 in my distribution (Ubuntu) the ehci_hcd was built as a module, whereas from 2.28.11 on it was built into the kernel.

.....
[    3.920054] usb 2-4: new high speed USB device using ehci_hcd and address 2
....
[    4.768172] usb 2-4: configuration #1 chosen from 2 choices
[    4.816828] cdc_acm 2-4:1.1: ttyACM0: USB ACM device
[    4.817162] cdc_wdm 2-4:1.5: cdc-wdm0: USB WDM device
[    4.821853] usb0: register 'cdc_ether' at usb-0000:00:1d.7-4, CDC Ethernet Device, 02:80:37:ec:02:00
[    4.821869] usbcore: registered new interface driver cdc_ether
[    4.822052] cdc_acm 2-4:1.3: ttyACM1: USB ACM device
[    4.822520] cdc_wdm 2-4:1.6: cdc-wdm1: USB WDM device
[    4.822532] usbcore: registered new interface driver cdc_wdm
[    4.822668] cdc_acm 2-4:1.9: ttyACM2: USB ACM device
[    4.823902] usbcore: registered new interface driver cdc_acm
[    4.823904] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems and ISDN adapters
......
[    9.840181] usb 2-4: USB disconnect, address 2
[    9.841912] ehci_hcd 0000:00:1d.7: dma_pool_free buffer-2048, f5f48000/35f48000 (bad dma)
[    9.842038] ehci_hcd 0000:00:1d.7: dma_pool_free buffer-2048, f5f48080/35f48080 (bad dma)
Comment 7 Alain Rossmann 2009-07-14 18:59:16 UTC
Sorry: meant 2.6.27-11, 2.6.28-11, and 2.6.28-13 for the kernel versions.
Comment 8 Daniel 2009-07-14 21:24:54 UTC
HI again.

I managed to get it to work well with 2.6.30
What I had to do was just the following:

sudo sh -c 'echo 1 > /sys/devices/platform/thinkpad_acpi/wwan_enable'

This activates my device, and from then on (has to be executed on every boot/resume) the card is working perfectly.

BUT not with the newest kernel 2.6.31
The wwan_enable is gone there, and I have no idea how to enable the card.
Comment 9 Iñaky Pérez-González 2009-08-25 21:02:34 UTC
Hard to tell what it is.

For your latest comment, it could be that the BIOS shakes up as the system comes up and decides the device should be off (hard rfkill off) and thus, disconnects it from the system.

On the matter of wwan_enable going out, let me see what my system (x200s) says...oh, old kernel.

In any case, in a new kernel (source), check Documentation/laptop/thinkpad-acpi.txt. It says wwan_enable has been deprecated and the feature integrated into the rfkill framework.

Go to /sys/class/rfkill, find the one that matches the device (cat */name); in my x200 (w/o 3g, but w WiMAX):

$ cd /sys/class/rfkill
$ for file in */name; do echo -n $file:; cat $file; done
rfkill0/name:tpacpi_bluetooth_sw
rfkill1/name:5350AGN
rfkill27/name:i2400m-usb:2-3:1.0

so, as root, to turn off a device

$ echo 0 > /sys/class/rfkill0/state

or to turn on

$ echo 1 > /sys/class/rfkill0/state

I bet if you replace rfkill0 with the one matching your wan modem, you will get it to work :)

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