{"id":2567,"date":"2008-12-07T11:31:13","date_gmt":"2008-12-07T18:31:13","guid":{"rendered":"http:\/\/redmonk.com\/sogrady\/?p=2567"},"modified":"2008-12-07T11:31:13","modified_gmt":"2008-12-07T18:31:13","slug":"how-to-use-an-att-ericsson-f3507g-card-on-ubuntu-intrepid","status":"publish","type":"post","link":"https:\/\/redmonk.com\/sogrady\/2008\/12\/07\/how-to-use-an-att-ericsson-f3507g-card-on-ubuntu-intrepid\/","title":{"rendered":"How to Use an AT&amp;T Ericsson F3507g Card on Ubuntu Intrepid"},"content":{"rendered":"<p>As could probably have been guessed by things like <a href=\"http:\/\/twitter.com\/sogrady\/statuses\/1022110490\">this<\/a>, I&#8217;ve been more than a bit frustrated by my continuing inability to get the on board WWAN card in my new X301 &#8211; an Ericsson F3507g &#8211; working under Ubuntu. When I initially <a href=\"http:\/\/redmonk.com\/sogrady\/2008\/09\/24\/apone\/\">reviewed<\/a> the machine, and later <a href=\"http:\/\/redmonk.com\/sogrady\/2008\/10\/20\/apone_intrepid\/\">commented<\/a> on the Ubuntu Intrepid compatibility, the Ericsson was one of the few pieces of hardware I couldn&#8217;t get to work. Which was unfortunate, as that has occasionally left me at the mercy of brutally inefficient and expensive hotel wireless. <\/p>\n<p>Well, all of that is over as of yesterday. Using some <a href=\"http:\/\/www.thinkwiki.org\/wiki\/Ericsson_F3507g_Mobile_Broadband_Module\">instructions<\/a> from the invaluable <a href=\"http:\/\/thinkwiki.org\">Thinkwiki.org<\/a>, I not only got the card running, but was able to successfully connect to the AT&amp;T network. Which is, frankly, awesome.<\/p>\n<p>Anyway, here&#8217;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&#8217;m just repackaging his excellent work for the benefit of fellow Ubuntu users and AT&amp;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. <\/p>\n<p>Enjoy. <\/p>\n<ol>\n<li><code>sudo apt-get install ppp wvdial sysfsutils<\/code><\/li>\n<li><code>sudo nano \/etc\/sysfs.conf<\/code><br \/>\n<br \/>\nPaste the following:<br \/>\n<br \/>\n<code>block\/sda\/queue\/scheduler = noop<br \/>\ndevices\/platform\/thinkpad_acpi\/bluetooth_enable = 0<br \/>\ndevices\/platform\/thinkpad_acpi\/wwan_enable = 0<br \/>\nclass\/leds\/tpacpi::power\/brightness = 0<\/code><\/li>\n<p><\/p>\n<li><code>sudo nano \/etc\/pm\/sleep.d\/sysfsutils<\/code><br \/>\n<br \/>\nPaste the following:<br \/>\n<br \/>\n<code>#!\/bin\/bash<br \/>\ncase $1 in<br \/>\n    (hibernate|suspend)<br \/>\n        ;;<br \/>\n    (thaw|resume)<br \/>\n        \/etc\/init.d\/sysfsutils start<br \/>\n        ;;<br \/>\n    *)  echo \"somebody is calling me totally wrong.\"<br \/>\n        ;;<br \/>\nesac<\/code><br \/>\n<\/p>\n<li><code>sudo nano \/etc\/wvdial.conf<\/code>\n<p>Note that the &#8220;ISP.CINGULAR&#8221; portion is unique to the AT&amp;T network; Willsowerbutts&#8217; scripts have the proper APN strings for Tmobile and Vodafone. Anyway, paste the following:<br \/>\n<br \/>\n<code>[Dialer 3G]<br \/>\nModem = \/dev\/ttyACM0<br \/>\nInit1 = AT+CGDCONT=1,\"IP\",\"ISP.CINGULAR\"<br \/>\nStupid mode = 1<br \/>\nphone= *99#<br \/>\nUsername = *<br \/>\nPassword = *<\/code><\/li>\n<p><\/p>\n<li>sudo nano \/etc\/ppp\/peers\/wvdial<br \/>\n<br \/>\nPaste the following:<br \/>\n<br \/>\n<code>noauth<br \/>\nname wvdial<br \/>\nusepeerdns<br \/>\nnoccp<br \/>\nnovj<br \/>\nnovjccomp<\/code><br \/>\n<\/p>\n<li><code>sudo nano \/usr\/local\/bin\/3g-dialup<\/code><br \/>\n<br \/>\nPaste the following:<br \/>\n<br \/>\n<code>#!\/bin\/sh<\/p>\n<p><code>WWANDEVICE=\/dev\/ttyACM2 <\/p>\n<p><code>## Check we have appropriate permissions<br \/>\nif [ `whoami` != \"root\" ]; then<br \/>\n    echo Run this script as root<br \/>\n    exit 0<br \/>\nfi<\/p>\n<p><code>## Enable the WWAN hardware<br \/>\necho -n \"Powering up WWAN device ..\"<br \/>\necho 1 &gt; \/sys\/devices\/platform\/thinkpad_acpi\/wwan_enable<br \/>\nwhile [ ! -c $WWANDEVICE ]; do sleep 0.5; echo -n \".\"; done<br \/>\necho \" OK\"<\/p>\n<p><code>echo -n \"Initialising WWAN modem ...\"<br \/>\n\/usr\/sbin\/chat -v \"\" \"AT+CFUN=1\" \"+PACSP0\" \"AT\" \"OK\" &gt; $WWANDEVICE &lt; $WWANDEVICE<br \/>\necho &quot; OK&quot;<\/p>\n<p><code>echo \"Starting PPP -- hit Ctrl+C when finished\"<br \/>\n\/usr\/bin\/wvdial 3G<\/p>\n<p><code>echo -n \"Shutting down WWAN modem ...\"<br \/>\n\/usr\/sbin\/chat -v \"\" \"AT+CFUN=4\" \"OK\" &gt; $WWANDEVICE &lt; $WWANDEVICE<br \/>\necho &quot; OK&quot;<\/p>\n<p><code>## Disable the WWAN hardware, save power<br \/>\necho -n \"Powering down WWAN device ..\"<br \/>\necho 0 &gt; \/sys\/devices\/platform\/thinkpad_acpi\/wwan_enable<br \/>\nwhile [ -c $WWANDEVICE ]; do sleep 0.5; echo -n \".\"; done<br \/>\necho \" OK\"<\/code><\/li>\n<p><\/p>\n<li><code>sudo chmod a+x \/usr\/local\/bin\/3g-dialup<\/code><\/li>\n<\/ol>\n<p>Once all of that is done, you can connect to the AT&amp;T network using the command <code>sudo 3g-dialup<\/code>, and disconnect with a <code>CTL-C<\/code>. 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.<\/p>\n<p>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. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>As could probably have been guessed by things like this, I&#8217;ve been more than a bit frustrated by my continuing inability to get the on board WWAN card in my new X301 &#8211; an Ericsson F3507g &#8211; working under Ubuntu. When I initially reviewed the machine, and later commented on the Ubuntu Intrepid compatibility, the<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[40,50],"tags":[219],"class_list":["post-2567","post","type-post","status-publish","format-standard","hentry","category-how-tos-and-more","category-linux","tag-ericsson-f3507g-ubuntu-intrepid-howto-wwan"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/posts\/2567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/comments?post=2567"}],"version-history":[{"count":0,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/posts\/2567\/revisions"}],"wp:attachment":[{"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/media?parent=2567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/categories?post=2567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/redmonk.com\/sogrady\/wp-json\/wp\/v2\/tags?post=2567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}