Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Alcatel One Touch X220S

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Hardware
View previous topic :: View next topic  
Author Message
Birdman
LXF regular


Joined: Thu May 05, 2005 12:59 pm
Posts: 145
Location: Wallington, Surrey UK

PostPosted: Thu Sep 02, 2010 10:56 pm    Post subject: Alcatel One Touch X220S Reply with quote

This is my first venture with mobile broadband and I am about to give up. I have an Alcatel One Touch X220S on the Virginmobile network and I believe I have done everything necessary to get connected. I now cannot decide whether some of the configuration is incorrect or it simply doesn't work properly?

The story:

When first plugged in the dongle it showed as a storage device as 1bbb:f000. After unmounting the device it changes to 1bbb:0017. I later discovered from the user_modeswitch forum that the device had actually switched at this point and was now ready for action.

I initially tried useing wvdial and after trial and error appeared to have a connection i.e. no apparent errors and a solid light on the dongle (more later). However, I could not load any web pages - just error messages! I then remembered the LXF113 article and that motivated me to try kppp. This was good because of the useful display giving some information about the connection. Sure enough I connected and peeked at 5kb/sec. It took about a minute to load the google home page - not great but a result! I disconnected and tried again but it wouldn't work and kppp kept locking up. It was late so I turned off the box for the night. Following day I got connected with kppp (apparently) with a data rate of 1kb/sec and no response from firefox. I had a steady light on the dongle but no data. I then went back to wvdial and got a solid light on the dongle - but no data.

Lights on dongle:

The booklet gives the following posibilites:
Blue Modem is on
Green and orange Alternate blinking Searching for network
Green Registered HSPA/UMTS
Orange Registered GPRS/EDGE

I have never seen a blue light. If the PC is turned of with the dongle plugged in I get an orange light. When turned on it can flash either green, orange or RED. When I have an apparent connection it is either solid red or green (but not orange).

Given the absence of red in their note and my absence of blue in use I do not know what to think.

I am using LInux Mint Isadora KDE. Here is one of my sample wvdial.conf files that appears to connect:
Code:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","goto.virginmobile.uk"
Modem Type = /dev/gsmmodem
ISDN = 0
Phone = *99#
New PPPD = yes
Modem = /dev/gsmmodem
Username = user
Password = blank
Baud = 9600
Stupid Mode = on


This is the output:
Code:
--> WvDial: Internet dialer version 1.60
--> Can
not 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","goto.virginmobile.uk"
AT+CGDCONT=1,"IP","goto.virginmobile.uk"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT 115200
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Thu Sep  2 22:12:35 2010
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 2361
--> Using interface ppp0
--> pppd: (��[08]@��[08]ț�[08]
--> pppd: (��[08]@��[08]ț�[08]
--> pppd: (��[08]@��[08]ț�[08]
--> pppd: (��[08]@��[08]ț�[08]
--> pppd: (��[08]@��[08]ț�[08]
--> pppd: (��[08]@��[08]ț�[08]
--> local  IP address 10.220.159.140
--> pppd: (��[08]@��[08]ț�[08]
--> remote IP address 10.64.64.64
--> pppd: (��[08]@��[08]ț�[08]
--> primary   DNS address 149.254.192.126
--> pppd: (��[08]@��[08]ț�[08]
--> secondary DNS address 149.254.201.126
--> pppd: (��[08]@��[08]ț�[08]

Should I give up or is there still hope?

PS. there are a couple of virgin mobile phones in the house and the signal is good.

Alan
Back to top
View user's profile Send private message
PCNetSpec
LXF regular


Joined: Sun Feb 21, 2010 3:50 pm
Posts: 631
Location: Cornwall UK

PostPosted: Thu Sep 02, 2010 11:57 pm    Post subject: Reply with quote

-->Warning: Could not modify /etc/ppp/pap-secrets: Permission denied

Looks like a permission problem to me, are you running wvdial as root:
Code:
sudo wvdail

_________________
WARNING: You are logged into reality as 'root'... logging in as 'insane' is the only safe option.
Linux in the UK
The Linux Community Forum
Back to top
View user's profile Send private message
Birdman
LXF regular


Joined: Thu May 05, 2005 12:59 pm
Posts: 145
Location: Wallington, Surrey UK

PostPosted: Fri Sep 03, 2010 5:27 pm    Post subject: Reply with quote

Good point. I did initially run as root, because wvdial would not work as user. I noted that wvdial is a member of the dip group and added the group to the member permissions so that I could run wvdial as a user.

The next question is whether I should be running wvdial as root? Is this a security risk? If so then are there other permission amends that can be made to allow a user to run wvdial?

Interestingly kppp is launched as a user and doesn't need root permissions. Mind you I can't get a decent connection with that either!
Back to top
View user's profile Send private message
PCNetSpec
LXF regular


Joined: Sun Feb 21, 2010 3:50 pm
Posts: 631
Location: Cornwall UK

PostPosted: Fri Sep 03, 2010 6:12 pm    Post subject: Reply with quote

I suppose you could create a group called something like 'dialout', then change the permissions of your /etc/ppp/pap-secrets and /etc/ppp/chap-secrets to allow everyone from the group 'dialout' to be able to read/write to them, then add yourself to that group.

But I would just run wvdial with root privileges with sudo.

Not a security risk as sudo is *only* giving the *dialer* root access.

Switching user to root with su, then running wvdial on the other hand may be a security risk... never really thought about it.
_________________
WARNING: You are logged into reality as 'root'... logging in as 'insane' is the only safe option.
Linux in the UK
The Linux Community Forum
Back to top
View user's profile Send private message
Birdman
LXF regular


Joined: Thu May 05, 2005 12:59 pm
Posts: 145
Location: Wallington, Surrey UK

PostPosted: Fri Sep 03, 2010 10:05 pm    Post subject: Reply with quote

Running as root makes no difference. Looking at the syslog suggests that the IP address cannot be determined:
Code:
Sep  3 21:44:02 boris pppd[2149]: Cannot determine ethernet address for proxy ARP
It then assigns a default address. This is inconsistent with the output from wvdial.
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast