You are not logged in.

#1 2014-09-09 23:05:41

karkhaz
Member
Registered: 2014-01-25
Posts: 79

[SOLVED]Mobile internet with ThinkPad X230 SIM card reader not working

I can't get internet working using the mobile data (WWAN) chip on my Lenovo ThinkPad X230. I'll post some resources for information on getting this to work, then I'll describe things that I've tried.

The Lenovo category of the wiki has lots of compatibility information for thinkpads, but there is no WWAN information on the X230 article that I linked to above. There is some information about the wireless chip on the WWAN section of the X1 Carbon article (2nd gen). However, it doesn't describe how to get everything working with netctl.

> lsusb
...
Bus 003 Device 002: ID 1199:9013 Sierra Wireless, Inc.

confirms that the device is seen by the hardware.

> ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wwp0s20u4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 0e:37:6c:8f:be:22 brd ff:ff:ff:ff:ff:ff
3: if_wifi: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 6c:88:14:32:2f:50 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.144/24 brd 192.168.1.255 scope global if_wifi
       valid_lft forever preferred_lft forever
    inet6 2001:8b0:806:8abd:6e88:14ff:fe32:2f50/64 scope global mngtmpaddr dynamic 
       valid_lft 86398sec preferred_lft 14398sec
    inet6 fe80::6e88:14ff:fe32:2f50/64 scope link 
       valid_lft forever preferred_lft forever
4: if_dock: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 3c:97:0e:8f:38:fd brd ff:ff:ff:ff:ff:ff

if_wifi and if_dock are the interfaces for my wifi and ethernet, respectively, so presumably wwp0s20u4 is the mobile broadband chip. (But don't know how I could confirm this...)

I copied the netctl profile from /netctl/examples/mobile_ppp, since that sounded sensible. I modified it as follows:

Description='Mobile Internet'
Interface=wwp0s20u4
Connection=mobile_ppp

# The access point name you are connecting to
AccessPointName=m2m.aql.net

# Mode can be one of 3Gpref, 3Gonly, GPRSpref, GPRSonly, None
# These only work for Huawei USB modems; all other devices should use None
Mode=None

(I changed Interface to wwp0s20u4 from ttyUSB0, changed Mode to None, and added the access point that my ISP gave me.

Result: doing sudo netctl start mobile_net instantly fails with the usual systemctl failure message, telling me to look at the logs. The logs say:

netctl@mobile_net.service - Networking for netctl profile mobile_net
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: failed (Result: exit-code) since Wed 2014-09-10 01:00:28 BST; 1min 12s ago
     Docs: man:netctl.profile(5)
  Process: 1403 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
 Main PID: 1403 (code=exited, status=1/FAILURE)

Sep 10 01:00:28 aurora network[1403]: Starting network profile 'mobile_net'...
Sep 10 01:00:28 aurora network[1403]: /usr/lib/network/connections/mobile_ppp: line 73: pppd: command not found
Sep 10 01:00:28 aurora network[1403]: Could not establish a ppp connection for profile 'mobile_net'.
Sep 10 01:00:28 aurora network[1403]: Failed to bring the network up for profile 'mobile_net'
Sep 10 01:00:28 aurora systemd[1]: netctl@mobile_net.service: main process exited, code=exited, status=1/FAILURE
Sep 10 01:00:28 aurora systemd[1]: Failed to start Networking for netctl profile mobile_net.
Sep 10 01:00:28 aurora systemd[1]: Unit netctl@mobile_net.service entered failed state.

Does anybody know how I would go about making netctl work on the mobile broadband card? I'd like to update the wiki, since there doesn't seem to be any information about this. The only thing I could find is this article, which is so very old that it talks about netcfg rather than netctl and is lower-level than most people would want, I think.

Edit
I installed ppp (d'oh!) and changed Interface back to ttyUSB0, since netctl didn't seem to like it. Now the unit starts up normally, but I still don't get any internet.

> systemctl status netctl@mobile_net.service    
netctl@mobile_net.service - Networking for netctl profile mobile_net
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: active (exited) since Wed 2014-09-10 01:11:24 BST; 3min 7s ago
     Docs: man:netctl.profile(5)
  Process: 3792 ExecStart=/usr/lib/network/network start %I (code=exited, status=0/SUCCESS)
 Main PID: 3792 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/system-netctl.slice/netctl@mobile_net.service

Sep 10 01:11:25 aurora chat[3828]: abort on (\nRINGING\r\n\r\nRINGING\r)
Sep 10 01:11:25 aurora chat[3828]: report (CONNECT)
Sep 10 01:11:25 aurora chat[3828]: timeout set to 6 seconds
Sep 10 01:11:25 aurora chat[3828]: send (ATQ0^M)
Sep 10 01:11:25 aurora chat[3828]: expect (OK)
Sep 10 01:11:31 aurora chat[3828]: alarm
Sep 10 01:11:31 aurora chat[3828]: send (AT^M)
Sep 10 01:11:31 aurora chat[3828]: expect (OK)
Sep 10 01:11:37 aurora pppd[3810]: Connect script failed
Sep 10 01:11:38 aurora pppd[3810]: Exit.

I'm not sure what to make of that log.

Last edited by karkhaz (2014-09-20 14:11:44)

Offline

#2 2014-09-11 17:28:09

Basic-Master
Member
Registered: 2007-10-30
Posts: 21

Re: [SOLVED]Mobile internet with ThinkPad X230 SIM card reader not working

AFAIK netctl doesn't support QMI devices yet, but I guess you can use a setup script for the moment. Have a look at the last note on https://wiki.archlinux.org/index.php/HCL/Modems

Offline

#3 2014-09-20 14:11:30

karkhaz
Member
Registered: 2014-01-25
Posts: 79

Re: [SOLVED]Mobile internet with ThinkPad X230 SIM card reader not working

Thank you so much! I had trouble for a while, until I managed to find a copy of Windows to setup the device. (It's a shame I can't do this on Linux).

Marking this as solved, and I will write a wiki entry when I get time. I didn't know what QMI was until you pointed me there, so I'm going to create an article with a more generic name that is easier to find, and I will also link all applicable Lenovo Thinkpad pages to it.

Offline

#4 2014-09-22 07:26:18

karkhaz
Member
Registered: 2014-01-25
Posts: 79

Re: [SOLVED]Mobile internet with ThinkPad X230 SIM card reader not working

...and done, I've created a page which is in the Lenovo category; this should hopefully make it easier for others to find. Cheers!

Last edited by karkhaz (2014-09-22 07:33:22)

Offline

Board footer

Powered by FluxBB