I succeeded using my rooted LG P500 (Optimus One ) with custom ROM openOptimus build 2.202.1 as a modem for connecting to the internet from my Linux box (Slackware 13.37), after googled it regarding the topic.
I think you can use unrooted LG Optimus One either.

Here is step by step what I have done it.

I. Phone side
1. Setting>Applications>Development> USB debugging checked
2. Setting>Wireless>networks> Data enabled, Use only 2G networks do not check
3. Setting>Location & Security>Use wireless networks, Use GPS do not check
4. Setting>Account & sync>Background data do not check

II. Linux side
1. Install wvdial-1.61 and wvstreams-4.6.1
2. As root run: chmod +s /usr/bin/wvdial, so you can run wvdial as a normal user

III. Connect to the internet
1. Plug in your phone
2. As root run: lsusb, your Linux recognized LG’s modem and display
Bus 001 Device 004: ID 1004:618e LG Electronics, Inc. Ally/Optimus One/Vortex (debug mode)
3. Execute # wvdialconf /etc/wvdial.con, modem will recognized as /dev/ttyACM0

Editing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

Modem Port Scan: S0 S1 S2 S3
WvModem: Cannot get information for serial port.
ttyACM0: ATQ0 V1 E1 — OK
ttyACM0: ATQ0 V1 E1 Z — OK
ttyACM0: ATQ0 V1 E1 S0=0 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0: Modem Identifier: ATI — Manufacturer: LG Electronic Inc
ttyACM0: Speed 4800: AT — OK
ttyACM0: Speed 9600: AT — OK
ttyACM0: Speed 19200: AT — OK
ttyACM0: Speed 38400: AT — OK
ttyACM0: Speed 57600: AT — OK
ttyACM0: Speed 115200: AT — OK
ttyACM0: Speed 230400: AT — OK
ttyACM0: Speed 460800: AT — OK
ttyACM0: Max speed is 460800; that should be safe.
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

3. Edit your /etc/wvdialconf. Mine as follows:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+cgdcont=1,”IP”,”internet”
Init4 = ATH
Init5 = ATE1
Init6 = AT+csq
Phone = *99#
Password = ” “
Modem Type = USB Modem
Baud = 460800
Auto DNS = off
Modem = /dev/ttyACM0
ISDN = 0
Username = ” “

You may edit “IP” and “internet” as supplied by your ISP

4. run $ wvdial, if you got the message:
–> WvDial: Internet dialer version 1.61
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Sending: AT+cgdcont=1,”IP”,”internet”
AT+cgdcont=1,”IP”,”internet”
OK
–> Sending: ATH
ATH
OK
–> Sending: ATE1
ATE1
OK
–> Sending: AT+csq
AT+csq
+csq: 20,99
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT 115200
–> Carrier detected. Waiting for prompt.
–> Don’t know what to do! Starting pppd and hoping for the best.
–> Starting pppd at Wed Mar 7 09:36:01 2012
–> Pid of pppd: 3272
–> Using interface ppp0
–> pppd: P°·Ø©[06][08]È©[06][08]
–> pppd: P°·Ø©[06][08]È©[06][08]
–> pppd: P°·Ø©[06][08]È©[06][08]
–> pppd: P°·Ø©[06][08]È©[06][08]
–> pppd: P°·Ø©[06][08]È©[06][08]
–> pppd: P°·Ø©[06][08]È©[06][08]
–> local IP address 182.0.15.44
–> pppd: P°·Ø©[06][08]È©[06][08]
–> remote IP address 10.64.64.64
–> pppd: P°·Ø©[06][08]È©[06][08]
–> primary DNS address 192.168.4.28
–> pppd: P°·Ø©[06][08]È©[06][08]

then you safe and connected to the internet.

5. Should you failed browse the webs, then edit DNS from your /etc/resolv.conf as supplied
by ISP accordingly.

Hope you have luck!.

About these ads