---
title: How to Use an AT&amp;T Ericsson F3507g Card on Ubuntu Intrepid
date: 2008-12-07T18:31:13Z
modified: 2008-12-07T18:31:13Z
permalink: "https://redmonk.com/sogrady/2008/12/07/how-to-use-an-att-ericsson-f3507g-card-on-ubuntu-intrepid/"
type: post
status: publish
excerpt: ""
wpid: 2567
categories:
  - "How To's and More"
  - Linux
tags:
  - "How To's and More"
  - Linux
  - ericsson f3507g ubuntu intrepid howto wwan
timestamp: 2008-12-07T18:31:13Z
---

As could probably have been guessed by things like [this](http://twitter.com/sogrady/statuses/1022110490), I’ve been more than a bit frustrated by my continuing inability to get the on board WWAN card in my new X301 – an Ericsson F3507g – working under Ubuntu. When I initially [reviewed](http://redmonk.com/sogrady/files/wp-mfa-exports/post/apone.md) the machine, and later [commented](http://redmonk.com/sogrady/files/wp-mfa-exports/post/apone_intrepid.md) on the Ubuntu Intrepid compatibility, the Ericsson was one of the few pieces of hardware I couldn’t get to work. Which was unfortunate, as that has occasionally left me at the mercy of brutally inefficient and expensive hotel wireless.

Well, all of that is over as of yesterday. Using some [instructions](http://www.thinkwiki.org/wiki/Ericsson_F3507g_Mobile_Broadband_Module) from the invaluable [Thinkwiki.org](http://thinkwiki.org), I not only got the card running, but was able to successfully connect to the AT&T network. Which is, frankly, awesome.

Anyway, here’s how I did it. Before I continue, though, please note that all credit for these scripts belongs with the Thinkwiki.org user Willsowerbutts. I’m just repackaging his excellent work for the benefit of fellow Ubuntu users and AT&T customers. The advantage of his approach, as well, is that it not only handles connectivity but the powering off of the card, which is something of a power hog.

Enjoy.

1. `sudo apt-get install ppp wvdial sysfsutils`
2. `sudo nano /etc/sysfs.conf`
    
    Paste the following:
    
    `block/sda/queue/scheduler = noop<br></br>devices/platform/thinkpad_acpi/bluetooth_enable = 0<br></br>devices/platform/thinkpad_acpi/wwan_enable = 0<br></br>class/leds/tpacpi::power/brightness = 0`
3. `sudo nano /etc/pm/sleep.d/sysfsutils`
    
    Paste the following:
    
    `#!/bin/bash<br></br>case $1 in<br></br>    (hibernate|suspend)<br></br>        ;;<br></br>    (thaw|resume)<br></br>        /etc/init.d/sysfsutils start<br></br>        ;;<br></br>    *)  echo "somebody is calling me totally wrong."<br></br>        ;;<br></br>esac`
4. `sudo nano /etc/wvdial.conf`Note that the “ISP.CINGULAR” portion is unique to the AT&T network; Willsowerbutts’ scripts have the proper APN strings for Tmobile and Vodafone. Anyway, paste the following:
    
    `[Dialer 3G]<br></br>Modem = /dev/ttyACM0<br></br>Init1 = AT+CGDCONT=1,"IP","ISP.CINGULAR"<br></br>Stupid mode = 1<br></br>phone= *99#<br></br>Username = *<br></br>Password = *`
5. sudo nano /etc/ppp/peers/wvdial
    
    Paste the following:
    
    `noauth<br></br>name wvdial<br></br>usepeerdns<br></br>noccp<br></br>novj<br></br>novjccomp`
6. `sudo nano /usr/local/bin/3g-dialup`
    
    Paste the following:
    
    `#!/bin/sh<p>WWANDEVICE=/dev/ttyACM2 </p><p>## Check we have appropriate permissions<br></br>if [ `whoami` != "root" ]; then<br></br>    echo Run this script as root<br></br>    exit 0<br></br>fi</p><p>## Enable the WWAN hardware<br></br>echo -n "Powering up WWAN device .."<br></br>echo 1 > /sys/devices/platform/thinkpad_acpi/wwan_enable<br></br>while [ ! -c $WWANDEVICE ]; do sleep 0.5; echo -n "."; done<br></br>echo " OK"</p><p>echo -n "Initialising WWAN modem ..."<br></br>/usr/sbin/chat -v "" "AT+CFUN=1" "+PACSP0" "AT" "OK" > $WWANDEVICE < $WWANDEVICE<br></br>echo " OK"</p><p>echo "Starting PPP -- hit Ctrl+C when finished"<br></br>/usr/bin/wvdial 3G</p><p>echo -n "Shutting down WWAN modem ..."<br></br>/usr/sbin/chat -v "" "AT+CFUN=4" "OK" > $WWANDEVICE < $WWANDEVICE<br></br>echo " OK"</p><p>## Disable the WWAN hardware, save power<br></br>echo -n "Powering down WWAN device .."<br></br>echo 0 > /sys/devices/platform/thinkpad_acpi/wwan_enable<br></br>while [ -c $WWANDEVICE ]; do sleep 0.5; echo -n "."; done<br></br>echo " OK"</p>`
7. `sudo chmod a+x /usr/local/bin/3g-dialup`

Once all of that is done, you can connect to the AT&T network using the command `sudo 3g-dialup`, and disconnect with a `CTL-C`. You may get a few false starts where the card is unable to obtain an IP, but it will retry. You'll know that it's been successful when it grabs an IP and DNS. If the IP or DNS begins with 10.10, it's an internal connection and it will fail. Cancel out, and retry.

If anyone's been able to get this card working with the 3G GUI in NetworkManager, feel free to post the HowTo in the comments below. Until then, I'll count myself fortunate for having a command line solution.