[Bug 334122] Re: Mobile broadband connections fail to connect

peterh peter at holik.at
Sat Oct 17 17:09:55 UTC 2009


network-manager-0.8~a~git.20091013t193206.679d548

did not work for me i got:

NetworkManager: <WARN>  pppd_timed_out(): Looks like pppd didn't
initialize our dbus module

i also saw no logs from pppd.

to see what happens i tried to get an strace output with

while :; do sleep .2; if pgrep pppd; then strace -s1000 -f -p $(pgrep
pppd); fi;done

write(1, "Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.", 52) = ? ERESTARTSYS (To be restarted)
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---
--- SIGTTOU (Stopped (tty output)) @ 0 (0) ---

This means that pppd writes to stdout, but networkmanager did not read
anything.

With this patch my huawai E220 is working now

--- network-manager-0.8~a~git.20091013t193206.679d548.orig/src/ppp-manager/nm-ppp-manager.c
+++ network-manager-0.8~a~git.20091013t193206.679d548/src/ppp-manager/nm-ppp-manager.c
@@ -921,7 +921,7 @@

        priv->pid = 0;
        if (!g_spawn_async (NULL, (char **) ppp_cmd->array->pdata, NULL,
-                                       G_SPAWN_DO_NOT_REAP_CHILD,
+                                       G_SPAWN_DO_NOT_REAP_CHILD || G_SPAWN_STDOUT_TO_DEV_NULL || G_SPAWN_STDERR_TO_DEV_NULL,
                                        pppd_child_setup,
                                        NULL, &priv->pid, err)) {
                goto out;

Well it would be better to read from stdout / stderr and log it,

-- 
Mobile broadband connections fail to connect
https://bugs.launchpad.net/bugs/334122
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to plasma-widget-networkmanagement in ubuntu.




More information about the kubuntu-bugs mailing list