Bugzilla – Bug 462876
Cannot connect with USB Modem with knetworkmanager
Last modified: 2011-12-08 09:14:23 UTC
Hi, I'm running openSUSE 11.1, a KDE 4 desktop and knetworkmanager (kde3 version). I have a HUWAEI E226 USB GSM modem. knetworkmanager detects my USB modem (/dev/ttyUSB0), I configure it, but it do nothing when I click on connect, the system tray icon stays still like if I didn't click on connect. I think that it could be because at the time I click connect, knetworkmanager tries to connect using '/dev/ttyUSB1' instead of '/dev/ttyUSB0' witch is the correct device. I have to use kppp to use my GSM modem :s In openSUSE 11.0 knetworkmanager worked perfectly with this same modem.
Possibly related to bug 462647.
Xavier, please provide following info: /var/log/NetworkManager
OK, I restarted syslog to start logging since I plug the modem. What I did: 1. Plugged the modem. 2. Wait until the led lights of the modem turns blinking blue (the modem starts with blinking green, when is green means error or not signal or booting). 3. I have already configurated in knetworkmanager a connection, so I just click on the knetworkmanager icon and then I choose the GSM connection. 4. The log terminate with "closing /dev/ttyUSB1" and the led lights of the modem turns green. 5. Unplugged the modem and start again with step 1 one more time, same result. '/var/log/messages' attached.
Created attachment 263904 [details] '/var/log/messages' logging the connection tries
Xavier, the requested file was NetworkManager, see comment #2
Created attachment 264383 [details] /var/log/NetworkManager as requested (with connection tries)
Xavier, please after providing the requested information click on: This comment provides the needed information. Remove the status of NEEDINFO from this bug. --------------------------------------------------------------------------------- Reassign to : gnome team
I tried several times but it throw me an error telling that I an not allowed to modify this bug from NEEDINFO to NEW state.
Xavier, NEEDINFO was changed to NEW state.
hmmm, seems like bnc-team-gnome is not the right assignee to look at this ...
Hi, Is there news? Right now I'm using kppp and sometimes it disconnects it self and get freezed, I have to manually kill all the process as root (as I have to execute kppp as root) and then try to connect again, also I have to tell firefox that I'm not offline every time I start it. I remember knetworkmanager in openSUSE 11.0 so easy to connect with my USB modem :( Thanks & rgds.
Hi, Yesterday openSUSE delivered a path for hal by online update, now I can connect perfectly with my USB modem using knetworkmanager. Thanks!!! :D
Hi, Now I can't connect again, I think that is because the timeout expire to fast. I have to connect with kppp again :s The corresponding networkmanager log is attached.
Created attachment 268505 [details] log of a GSM connection try
It is just my system or if you upgrade to KDE 4.2 you can't connect to USB modem with knetworkmanager anymore (again) ?
I FIX IT! :D Now I can use NetworkManager to connect to Internet using my HUWAEI USB GSM modem. The problem wasn't related to KDE nor GNOME. The problem was the timeout for waiting the ppp connection start, NetworkManager closed the connection prematurely (maybe my ISP take to much to assigning me a TCP auto. configuration) In the upstream source code the timeout is for just 10 seconds ! but I think I need to wait about 25 seconds to receive the TCP config. I also need to pass the parameter: ipcp-max-failure 30 to pppd command to accept the DNS servers configuration from my ISP. This is the patch: --- NetworkManager-0.7.0/src/ppp-manager/nm-ppp-manager.c 2008-11-07 05:03:23.000000000 -0600 +++ NetworkManager-0.7.0-patched/src/ppp-manager/nm-ppp-manager.c 2009-02-25 01:57:15.000000000 -0600 @@ -65,7 +65,7 @@ #include "nm-ppp-manager-glue.h" #define NM_PPPD_PLUGIN PLUGINDIR "/nm-pppd-plugin.so" -#define NM_PPP_WAIT_PPPD 15000 /* 15 seconds */ +#define NM_PPP_WAIT_PPPD 1200000 /* 120 seconds */ #define PPP_MANAGER_SECRET_TRIES "ppp-manager-secret-tries" typedef struct { @@ -712,6 +712,7 @@ static gboolean pppd_timed_out (gpointer data) { + nm_info ("se ha incrementado el tiempo de espera para ppp"); NMPPPManager *manager = NM_PPP_MANAGER (data); nm_warning ("Looks like pppd didn't initialize our dbus module"); @@ -834,6 +835,9 @@ nm_cmd_line_add_string (cmd, "ipparam"); nm_cmd_line_add_string (cmd, priv->dbus_path); + nm_cmd_line_add_string (cmd, "ipcp-max-failure"); + nm_cmd_line_add_string (cmd, "30"); + nm_cmd_line_add_string (cmd, "plugin"); nm_cmd_line_add_string (cmd, NM_PPPD_PLUGIN);
fixed