Re: PPPoE connection uses wrong NIC

2010-01-06 Thread Quintin Beukes
> Does the ib0 device show up immediately when the iBurst modem is plugged
> in?

When I plug in the ib0 device (usb), hotplug software load the ib-usb
and ib-net kernel modules. This creates the ib0 device, at which time
I have a udev command scheduled to do "ifconfig ib0 up".

It does not show up in NetworkManager though. NetworkManager log shows
some error like "unknown driver", and doesn't load the device as a
network device.

> Is eth0 a normal ethernet NIC on your machine?  And next, does the

Yes, eth0 is a standard realtek 10/100Mbit

> iBurst modem basically act like a USB ethernet device?

The ibdriver kernel module creates a virtual wireless network device,
which allows PPPoE connections for internet access. It uses the
wireless network device driver API of the kernel in the ib-net module,
which then uses the ib-usb or ib-pcmcia module to communicate with
whichever type of device you are using.

I hope this helps.
Q
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [PATCH] Use libnl and nl80211 to get bitrate information

2010-01-06 Thread Dan Williams
On Wed, 2009-12-30 at 18:45 +0100, drago01 wrote:
> 2009/10/5 Valmantas Palikša :
> > Latest version
> 
> Dan any update on this?

Have we resolved or at least satisfied any potential legal issues about
trying to including BSD-derived code in a GPLv2+ project?

If there's simply no other way to do the operations then it may well be
OK, but given that (last I knew) the patch was more or less based on
'iw' (which is BSD licensed) I'm not exactly comfortable with applying
the patch without a bit of legal advice.  Maybe we get Spot involved?

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: GSM configuration on network manager

2010-01-06 Thread Dan Williams
On Tue, 2009-12-29 at 12:19 +0100, Maxime Boure wrote:
> Hello,
> 
> First mail sent to this address. Please tell me if it is appropriate !
> 
> I am developing an application that needs network management (GSM
> ethernet later wifi) on an embedded board.
> I have no X server and I want to use network manager to control my 
> connections.
> 
> I was thinking of setting specific configuration (GSM - apn ...) in a
> configuration file and then controlling this connection through dbus
> commands.
> Is that the best way ?
> My main question is where are those config files ?

NM configuration details:

http://live.gnome.org/NetworkManagerConfiguration

So basically you can just use NM's built-in system settings service with
the 'keyfile' plugin, and tell NM to start/stop that connection using
D-Bus commands.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: long delay for scan results after suspend

2010-01-06 Thread Dan Williams
On Tue, 2009-12-29 at 12:41 +, Daniel Drake wrote:
> On Thu, 2009-12-10 at 16:22 +, Daniel Drake wrote:
> > With the new OLPC XO-1.5, our kernel driver fully powers down the
> > wireless device during suspend to the point where the kernel thinks the
> > SDIO card has been ejected.
> > 
> > It immediately comes back on resume, but there is a delay of
> > approximately 20 seconds before NM offers scan results to Sugar, which
> > is frustratingly long.
> 
> The delay isn't quite so severe, at least for me. I think we may have
> been seeing other problems.
> 
> However, we do still face a 4-5 second delay due to constructor() in
> nm-device.c:
> 
>   /* Delay transition from UNMANAGED to UNAVAILABLE until we've given the
>* system settings service a chance to figure out whether the device is
>* managed or not.
>*/
>   priv->start_timer = g_timeout_add_seconds (4, device_start, dev);

The comment should be pretty self-explanatory here; basically we need to
give some time for the system settings service to call out to HAL or
whatever and determine that the device should be managed.  NM can't
block on that because unmanaged devices is a property so that changed
signals can be emitted.

> Can we do better than that? For an aggressive-suspend setup like ours,
> having to wait this long for networks to crop up again is quite harmful
> to the user experience.

Not without risking race conditions and mismanaging devices that
shouldn't be managed, no...

> And just out of curiosity, is this any better in 0.8? I can see that the
> code has moved around quite a bit.

It is no longer a problem in 0.8 now that the system settings service
has been moved into NM itself.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: 3G USB support for NM 0.7.0

2010-01-06 Thread Dan Williams
On Sun, 2009-12-27 at 21:44 -0600, Jerone Young wrote:
> On Wed, 2009-12-23 at 19:54 -0500, Keith Smith wrote:
> > Hi,
> > 
> >I am trying to get my Sierra Wireless 598 CDMA USB modem to work.
> > I am running Ubuntu 8.04 (Hardy) which came preloaded on Dell mini
> > Inspiron 1210 (like a netbook)
> > I cannot (easily) upgrade the kernel or distro due to custom Dell
> > hardware kernel drivers (WiFi driver "wl" is proprietary).
> > I am using dual boot (DOS/XP/Ubuntu) with GRUB 1.0 in the MBR, don't
> > want to upgrade to GRUB2 (comes with Ubuntu 8.10) since I have a
> > working freedos bootable USB drive with GRUB1 for dos installer (just
> > in case).
> > I believe that Ubunutu 9.x fully supports the Sierra Wireless 598 out
> > of the box... cannot upgrade as stated above.
> 
> The "wl" driver is actually apart of Ubuntu. We are working to making
> the installation of it seemless in the 10.04 release.
> 
> Though what you can do is move to Ubuntu 9.10. Then connect the It via
> ethernet. Then go to System->Hadware Drivers . This will then grab the
> driver from the net and install it. A reboot and your ready to go. You
> can also try this with a live session.
> 
> Also this thread may help (comment #6):
> http://ubuntuforums.org/showthread.php?t=824931
> 
> 
> The "wl" driver is actually a product of Broadcom, who currently does
> not have a completely open driver. Though work is being done to make it
> easier to deal with.

Sigh.  Or Canonical could put some effort behind the upstream b43 driver
to get N-PHY support completed.  Somebody is actually working on N-PHY
now too, so maybe you guys can just wait and let somebody else do the
work.  While continuing to ship a binary driver that you can't possibly
fix when users have problems with it.

Dan

> > 
> > I have upgraded to the latest released Network Manager 0.7.0 and
> > Modem Manager 0.0+20081126t163712.bf522e3.mbm.f2-0ubuntu2
> > using apt-get etc.
> > I have downloaded, compiled and installed the latest Sierra Wireless
> > driver (v.1.7.8) for my kernel (2.6.24)
> > 
> > USB connects fine on Windows XP computer, device is activated.
> > Kernel: 2.6.24-22-lpia
> > 
> > I am able to connect to internet using the following:
> > 
> > 1) plug into any USB slot, kernel detects device, ignores tru-install
> > 
> > 2) I run usb_modeswitch to change from "mass storage" to "modem"
> >kernel then detects it is Sierra Modem (dmesg)
> >/ttyUSB0 to /ttyUSB4 devices are available
> > 3) wvdial into /dev/ttuUSB0
> > 4) pppd
> > 5) manually adding required routes to routing table (local IP, remote
> > IP, and gateway)
> > 6) manually adding DNS entries in /etc/resolve.conf
> > 
> >   I can script items 1 to 4, but have trouble with 5 and 6 because
> > Network manager will overwrite them...
> > 
> >   Now I understand there is a plug-in mechanism to add USB BroadBand
> > Mobile devices to network manager, by copying existing examples...I
> > will need help to find and configure them...
> > 
> >   Since the kernel does not detect the USB modem without sending
> > usb_modeswitch... is there any hope to getting network manager to work
> > with a D-Bus signal/message?
> > 
> > Thanks,
> > Keith.
> > ___
> > NetworkManager-list mailing list
> > NetworkManager-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> 
> 
> ___
> NetworkManager-list mailing list
> NetworkManager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: 3G USB support for NM 0.7.0

2010-01-06 Thread Dan Williams
On Tue, 2009-12-29 at 16:10 -0500, Keith Smith wrote:
> Hello!
> 
>   Great info, ok I have the modem showing up in Network Manager under
> the "Mobile BroadBand" section
> (only after sending the "usb_modeswitch" to change to the VID 0x1199
> and PID 0x0025 )
> 
>   I then tried disabling my WiFi routers and selecting the CDMA
> device... however it fails to "activate" see attached debug logs...
> 
>   interesting  message is Network Manager detects that /ttyUSB0
> is CDMA device from 'sierra' . looks like a good start

The "device is connected" problem was fixed recently in ModemManager
git.  You'll want to get a newer version of MM or ask your distro to
update it.  Specifically, I believe that something forgot to set the
serial port "connected" flag back to FALSE when the device was disabled
or disconnected.

Dan

>   ok looks like the broadcom "wl" drivers will be ready in distro
> 10.04... right now the only thing going for this netbook is that the
> WiFi is working very well, so potentially having that fail in 9.x is
> too much risk for the moment... :-(
> 
>   BTW, I added a DNSsuperseed of OpenDNS to make sure that
> resolve.conf always has at least 1 OpenDNS entry.  Then the only
> thing left to configure is the routing tables... which come from pppd
> in command line
> 
> Thanks for any/all help you can provide!
> K
> 
> On Fri, Dec 25, 2009 at 3:29 PM, Dan Williams  wrote:
> > On Wed, 2009-12-23 at 19:54 -0500, Keith Smith wrote:
> >> Hi,
> >>
> >>I am trying to get my Sierra Wireless 598 CDMA USB modem to work.
> >> I am running Ubuntu 8.04 (Hardy) which came preloaded on Dell mini
> >> Inspiron 1210 (like a netbook)
> >> I cannot (easily) upgrade the kernel or distro due to custom Dell
> >> hardware kernel drivers (WiFi driver "wl" is proprietary).
> >> I am using dual boot (DOS/XP/Ubuntu) with GRUB 1.0 in the MBR, don't
> >> want to upgrade to GRUB2 (comes with Ubuntu 8.10) since I have a
> >> working freedos bootable USB drive with GRUB1 for dos installer (just
> >> in case).
> >> I believe that Ubunutu 9.x fully supports the Sierra Wireless 598 out
> >> of the box... cannot upgrade as stated above.
> >
> > So you might have some problems there; Ubuntu doesn't usually update
> > software in their stable versions, preferring to backport patches.  And
> > of course 8.04 is pretty old now, so it's unlikely to receive a ton of
> > attention.
> >
> > NetworkManager 0.7.2 and 0.8 work quite a lot better with modems than
> > what got shipped in Ubuntu 8.04, but it may not be possible to build
> > 0.7.2 on your system.
> >
> >> I have upgraded to the latest released Network Manager 0.7.0 and
> >> Modem Manager 0.0+20081126t163712.bf522e3.mbm.f2-0ubuntu2
> >> using apt-get etc.
> >> I have downloaded, compiled and installed the latest Sierra Wireless
> >> driver (v.1.7.8) for my kernel (2.6.24)
> >>
> >> USB connects fine on Windows XP computer, device is activated.
> >> Kernel: 2.6.24-22-lpia
> >>
> >> I am able to connect to internet using the following:
> >>
> >> 1) plug into any USB slot, kernel detects device, ignores tru-install
> >>
> >> 2) I run usb_modeswitch to change from "mass storage" to "modem"
> >>kernel then detects it is Sierra Modem (dmesg)
> >>/ttyUSB0 to /ttyUSB4 devices are available
> >> 3) wvdial into /dev/ttuUSB0
> >> 4) pppd
> >> 5) manually adding required routes to routing table (local IP, remote
> >> IP, and gateway)
> >> 6) manually adding DNS entries in /etc/resolve.conf
> >>
> >>   I can script items 1 to 4, but have trouble with 5 and 6 because
> >> Network manager will overwrite them...
> >>
> >>   Now I understand there is a plug-in mechanism to add USB BroadBand
> >> Mobile devices to network manager, by copying existing examples...I
> >> will need help to find and configure them...
> >>
> >>   Since the kernel does not detect the USB modem without sending
> >> usb_modeswitch... is there any hope to getting network manager to work
> >> with a D-Bus signal/message?
> >
> > We'd need some logs from NetworkManager (and I guess modem-manager) in
> > that case to figure out what's going on.  The version of NM/MM shipped
> > in 8.04 is pretty diverged from upstream as Ubuntu did some heavy
> > customization on it, but it might be possible to figure out what's going
> > on.  First off, you'll want to make sure that modem-manager is actually
> > finding the modem.  I think even in that older version of MM you can run
> > MM with "--debug" to get more information out of it.
> >
> > That version of NM/MM used HAL .fdi files to identify devices, so if the
> > device isn't also listed in the .fdi files NM/MM won't be able to see
> > it.  Check that first; use dpkg -L to get a list of the files in the
> > NetworkManager and ModemManager packages and see if anything is
> > under /usr/share/hal/.  Then poke around there and see if adding the USB
> > IDs for your Sierra device helps.  Be careful to only tag ports that
> > actually are AT-capable serial ports

Re: PPPoE connection uses wrong NIC

2010-01-06 Thread Dan Williams
On Tue, 2009-12-29 at 13:22 +0200, Quintin Beukes wrote:
> Hey,
> 
> I am trying to connect to a wireless-broadband provider using an
> iBurst modem. The driver creates a network device, which reports
> itself as a wireless device (so iwconfig lists the signal strength).
> It's not a GPRS/3G, so I can't take the wireless-broadband steps in
> the connection editor. The DSL steps should work perfectly, except the
> nic passed to pppd is my ethernet device instead of the one created by
> the driver. PPPoE must happen via this device, where the driver will
> pass it onto the modem via USB and the rest happens as usual.

Does the ib0 device show up immediately when the iBurst modem is plugged
in?  Is eth0 a normal ethernet NIC on your machine?  And next, does the
iBurst modem basically act like a USB ethernet device?

Dan

> Either way, when NetworkManager invokes pppd, it does it as follows:
> Dec 29 12:31:47 quintin-VIAO NetworkManager: 
> [1262082707.053800] nm_ppp_manager_start(): Command line:
> /usr/sbin/pppd nodetach lock nodefaultroute user  plugin
> rp-pppoe.so nic-eth0 noauth nodeflate usepeerdns mru 1492 mtu 1492
> lcp-echo-failure 3 lcp-echo-interval 20 ipparam
> /org/freedesktop/NetworkManager/PPP/8 plugin
> /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
> 
> As you can see, rp-pppoe.so is passed the parameter nic-eth0. This
> should instead be ib0. If I copy this line and remove the
> nm-pppd-plugin and change the nic-eth0 to ib0 I can connect (in fact,
> that's how I sent this e-mail).
> 
> How can I configure network manager to use the correct nic?
> 
> My current configuration file:
> [connection]
> id=iBurst
> uuid=60d71ae5-7c0e-4bf9-a338-939fe95585b2
> type=pppoe
> autoconnect=false
> timestamp=0
> 
> [ppp]
> noauth=true
> refuse-eap=false
> refuse-pap=false
> refuse-chap=false
> refuse-mschap=false
> refuse-mschapv2=false
> nobsdcomp=false
> nodeflate=false
> no-vj-comp=false
> require-mppe=false
> require-mppe-128=false
> mppe-stateful=false
> crtscts=false
> baud=0
> mru=1492
> mtu=1492
> lcp-echo-failure=0
> lcp-echo-interval=0
> 
> [ipv4]
> method=auto
> ignore-auto-routes=false
> ignore-auto-dns=false
> dhcp-send-hostname=false
> never-default=false
> 
> [pppoe]
> username=anita_ge...@iburst.co.za
> password=080889SH
> 
> [802-3-ethernet]
> speed=0
> duplex=full
> auto-negotiate=true
> mtu=1492
> 
> I tried adding a mac-address line to the ethernet section, but this
> results in the connection being marked as invalid, and not being
> available.
> 
> Quintin Beukes
> ___
> NetworkManager-list mailing list
> NetworkManager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Problem with HSDPA modem and network manager

2010-01-06 Thread Dan Williams
On Mon, 2010-01-04 at 00:09 +0100, Massimiliano Polito wrote:
> To put it in a nutshel, when I power up my laptop, my HSDPA modem (GT
> M378) is randomly connected as ttyUSB0 or ttyUSB2. In the first case I
> can connect to the internet, in the latter I have to reboot the PC in
> the hope that next time it'll be correctly mapped.

You may not have a new enough version of NetworkManager or ModemManager.
If you're using NM 0.8 snapshots, then you'll want to ensure you have an
up-to-date ModemManager with this commit:

http://cgit.freedesktop.org/ModemManager/ModemManager/commit/?id=2fc0c039e65173123a39a0fb6c8f44804cbd773a

That commit landed on 2009-12-12.  NM 0.7.x should do the right thing
here already.

Dan

> To be more clear, last part of 'nm-tool' output can be
> 
> - Device: ttyUSB0 
> --
>   Type:  Mobile Broadband (GSM)
>   Driver:option
>   State: disconnected
>   Default:   no
> 
>   Capabilities:
> 
> in this case everything works correctly, or
> 
> - Device: ttyUSB2 
> --
>   Type:  Mobile Broadband (GSM)
>   Driver:option
>   State: disconnected
>   Default:   no
> 
>   Capabilities:
> 
> and in this case I can't connect to the internet, I have to reboot and
> reboot and reboot until I fall into the first case.
> 
> I've asked for help both on Ubuntu forum and on
> http://www.pharscape.org: I can't get any reply.
> 
> Can you please help me in understanding what should I do to solve the problem?
> 
> I'm not subscribed to the mailing list, please send a copy of your reply to
> 
> massimiliano dot polito at gmail dot com
> 
> Thanks.
> 
> Ciao,
> Max
> ___
> NetworkManager-list mailing list
> NetworkManager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Is accounting supported?

2010-01-06 Thread Dan Williams
On Tue, 2010-01-05 at 14:31 +0530, Elison Niven wrote:
> Hi List,
> 
> I am using Network manager with Gnome network applet on Fedora 12.
> 
> Are there any options for getting accounting like information about connect
> times, data bytes in and out etc?

Not yet, but I've been trying to get somebody interested in doing the
feature since I'm swamped with a bunch of other stuff at this point.  It
shouldn't be too bad; we just keep a sqlite database around of all
connection start/stop/bytecounts and then expose that as a D-Bus
interface that applets can read.  Either somebody needs to step up or I
guess just wait until I get around to it.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [modem-manager] how unlock PIN before probe nm settings

2010-01-06 Thread Dan Williams
On Sun, 2010-01-03 at 18:00 +, Sergio Monteiro Basto wrote:
> Hi,
> I had try ModemManager-0.2.997-4.git20091218.fc12.i686,
> NetworkManager-0.7.997-2.git20091214.fc12.i686
> 
> service NetworkManager stop
> killall -TERM modem-manager
> (in other console) modem-manager --debug
> service NetworkManager start

There's a bug open for this, and I'd definitely like to fix it.  It'll
take a bit of fiddling around with the probing code first so that we try
AT+CPIN? as part of the probe process if both GCAP and ATI fail.  If
CPIN returns "SIM PIN" or one of the other codes, then we'll know it's a
GSM modem and then we can grab it.

Dan

> I found that nm probes doesn't work because I hadn't unlock PIN sim
> card.
> if I do: 
> service NetworkManager stop
> killall -TERM modem-manager
> logger $(COMGTPIN= /usr/bin/comgt PIN -d /dev/ttyUSB0)
> service NetworkManager start
> 
> the mobile broadband works just prefect. 
> 
> (using usb_modswith in udev ACTION=="add", ATTRS{idVendor}=="19d2",
> ATTRS{idProduct}=="2000", RUN+="/usr/bin/usb_modeswitch"
> on /etc/udev/rules.d/70-persistent-cd.rules)
> 
> So the question is : is there a way of unlock PIN, before modem-manger
> starts to probe the modem ? 
> 
> 
> Thanks, 
> ___
> NetworkManager-list mailing list
> NetworkManager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: plugin generic doesn't support my huawei180

2010-01-06 Thread Dan Williams
On Wed, 2010-01-06 at 15:05 +0100, Maxime Boure wrote:
> For those who want to know I get it working !
> 
> I modified the config.h file for it setting this : #define
> HAVE_LIBUDEV 0
> 
> And know network manager see my device !

That's pretty much a hack and disables udev probing of the device.
Unfortunately, if the device has multiple serial ports, you'll run into
a race condition and sometimes get the wrong port if you only use HAL.

It would be better to figure out why probing fails instead.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: udev doesn't recognize my gsm dongle

2010-01-06 Thread Dan Williams
On Mon, 2010-01-04 at 18:02 +0100, Maxime Boure wrote:
> Hello everyone,
> 
> First of all the happy new I wish you all the best.
> 
> I have a problem that is beginning to get to me. I have a 3G dongle
> huawei180.
> I use the usbmodeswitch properly to get it into gsm and not storage.
> 
> I modified as said into the networkmanager main website
> 
> 
> 
> DRIVERS=="option|sierra|hso|cdc_acm|qcserial|
> moto-modem", GOTO="probe" 
> 
> To
> 
> 
> DRIVERS=="option|sierra|hso|cdc_acm|qcserial|moto-modem|
> usbserial_generic", GOTO="probe"
> 
> When I plug it I have the following messages :
> 
> [  212.518524] usb-storage: probe of 1-1:1.0 failed with error -5
> [  212.524719] usbserial_generic 1-1:1.0: generic converter detected
> [  212.531372] usb 1-1: generic converter now attached to ttyUSB0
> 
> NetworkManager:   (ttyUSB1): ignoring due to lack of mobile
> broadband capabilties
> NetworkManager:   (ttyUSB2): ignoring due to lack of mobile
> broadband capabilties
> NetworkManager:   (ttyUSB3): ignoring due to lack of mobile
> broadband capabilties
> NetworkManager:   (ttyUSB0): found serial port (udev:  hal:GSM)
> NetworkManager:   (ttyUSB0): ignoring due to lack of probed
> mobile broadband capabilties
> 
> Can anybody help me to investigate this.

In /lib/udev/rules.d/77-nm-probe-modem-capabilities.rules, change the
lines near the bottom to:

SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="19d2", 
ATTRS{idProduct}=="?*", IMPORT{program}="nm-modem-probe --vid 0x$attr{idVendor} 
--pid 0x$attr{idProduct} --usb-interface $env{NM_MODEM_USB_INTERFACE_NUMBER} 
--driver $env{NM_MODEM_DRIVER} --delay 5000 --timeout 8000 --export --verbose 
--log /tmp/probe.log $tempnode", GOTO="nm_modem_probe_end"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{idVendor}=="?*", 
ATTRS{idProduct}=="?*", IMPORT{program}="nm-modem-probe --vid 0x$attr{idVendor} 
--pid 0x$attr{idProduct} --usb-interface $env{NM_MODEM_USB_INTERFACE_NUMBER} 
--driver $env{NM_MODEM_DRIVER} --delay 1000 --timeout 5000 --export --verbose 
--log /tmp/probe.log $tempnode", GOTO="nm_modem_probe_end"

(ie, add the "--verbose --log /tmp/probe.log" right before $tempnode)

And then unplug and replug the device.  Then reply with the contents
of /tmp/probe.log so we can figure out why the modem fails the probe.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: No default route on 3G

2010-01-06 Thread Dan Williams
On Sun, 2010-01-03 at 19:48 -0200, José Queiroz wrote:
> Well, right now I managed to get a default route from the 3G connection.
> 
> To achieve it, I entered
> "~/.kde/share/apps/networkmanagement/connections" and searched the
> file relative to my 3G connection --- luckily, it was the first one
> ---, and found it this way:

Seems like an error in the KDE config tools perhaps?  never-default
should usually default to "FALSE".

Dan

> 
> [connection]
> autoconnect=false
> icon=phone
> id=Claro GSM
> timestamp=2010,1,3,19,24,10
> type=gsm
> uuid={071ecf09-2a4e-4b41-9af2-471ac7beee1e}
> 
> [gsm]
> apn=bandalarga.claro.com.br
> band=-1
> networkid=
> networktype=2
> number=*99***1#
> username=claro
> 
> [ipv4]
> addresses=
> dhcpclientid=
> dhcphostname=
> dns=
> dnssearch=
> ignoreautoroute=true # changed here to "false"
> ignoredhcpdns=false
> method=Automatic
> neverdefault=true # changed here to "false"
> routes=
> 
> [ppp]
> baud=0
> crtscts=false
> lcpechofailure=0
> lcpechointerval=0
> mppestateful=false
> mru=0
> mtu=0
> noauth=false
> nobsdcomp=false
> nodeflate=false
> novjcomp=false
> refusechap=false
> refuseeap=false
> refusemschap=false
> refusemschapv2=false
> refusepap=false
> requiremppe=true
> requiremppe128=false
> 
> [serial]
> baud=115200
> bits=0
> parity=None
> senddelay=0
> stopbits=0
> ---
> 
> I think that there should be a way to edit these settings in the
> applet window, but it doesn't open an IP configuration to mobile
> connections, only on wireless (afaik). This may be an error in the KDE
> applet, but I cannot confirm it now.
> ___
> NetworkManager-list mailing list
> NetworkManager-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: ModemManager not visible in DBus in Ubuntu 8.10

2010-01-06 Thread Dan Williams
On Tue, 2010-01-05 at 13:24 +, Cian Masterson wrote:
> Apologies for the delay in replying to this but I had parked it in the
> short term.
> 
> I have upgraded the device to Ubuntu 9.10 so I'd have the latest
> version of modemmanager and since the device is running headless I
> installed the JeOS variant to save disk space and processor load.
> Unfortunatey I'm now seeing strange things with Dbus (i.e. it looks
> like it doesn't exist) that makes me think it was a stupid choice to
> make if I want modemmanager.  Given that Dbus stands for Desktop bus
> perhaps I was a trifle naive to assume it would be in JeOS.
> 
> Anyway the issue is that if I call 'modem-manager --debug' as root it
> appears to start ok, but qdbus doesn't start at all.  If dbus is
> missing then surely modemmanager wouldn't start.?  Or would it?  I
> apt-get installed dbus but it hasn't altered much.
> 
>   r...@feegle:~# modem-manager --debug
>   ** Message: Loaded plugin Nokia
>   ** Message: Loaded plugin Generic
>   ** Message: Loaded plugin Option
>   ** Message: Loaded plugin ZTE
>   ** Message: Loaded plugin Sierra
>   ** Message: Loaded plugin Huawei
>   ** Message: Loaded plugin Gobi
>   ** Message: Loaded plugin Novatel
>   ** Message: Loaded plugin MotoC
>   ** Message: Loaded plugin Ericsson MBM
>   ** Message: Loaded plugin Option High-Speed
> 
>   r...@feegle:~# qdbus
>   Could not connect to D-Bus server:
> org.freedesktop.DBus.Error.Spawn.ExecFailed: /bin/dbus-launch
> terminated abnormally without any error message
>   r...@feegle:~#

So the dbus-daemon seems to be working OK, but apparently there are
issues with service activation on your install that need to be figured
out.  For example, why dbus-launch is exiting.  That's more of a core
D-Bus issue though.

Dan

> 
> Am I missing something or do I need to go back and start again with
> "proper" ubuntu despite the fact that I plan to run headless?
> 
> Slan,
> Cian
> 
> 
> 2009/10/23 Dan Williams 
> On Mon, 2009-10-19 at 13:22 +0100, Cian Masterson wrote:
> 
> > I am new to dbus so it is more than likely I'm missing
> something
> > obvious!
> 
> 
> Probably not, it should work automatically when ModemManager
> is running.
> Can you ensure that ModemManager is actually running when you
> try to
> look for it with qdbus?
> 
> If not, try running (as root):
> 
> modem-manager --debug
> 
> and see what it prints out.
> 
> Dan
> 
> > What I am trying to do is configure a headless system
> running Ubuntu
> > 8.10 to connect to the internet using a 3G dongle.  Modem
> manager was
> > recommended to me due to support for the various quirks that
> seem
> > inherent in these 3G dongles.  Unfortunately upgrading the
> system in
> > question to 9.10 is currently out of the question, and it is
> running
> > headless so I can't use network manager.  I understood that
> I could
> > configure it using DBus so if anyone has any suggestions I'm
> all ears.
> > Thanks!
> >
> > Slan,
> > Cian
> 
> > ___
> > NetworkManager-list mailing list
> > NetworkManager-list@gnome.org
> > http://mail.gnome.org/mailman/listinfo/networkmanager-list
> 

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: NetworkManager and racoon

2010-01-06 Thread Dan Williams
On Wed, 2010-01-06 at 08:27 +0100, Grant Williamson wrote:
> Apart from Novell has anyone looked at creating a NetworkManager package 
> for racoon as an alternative to using vpnc?

The general focus should be on openswan I think; there have been various
projects to create a VPN plugin for openswan which I think are still
underway.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Is accounting supported?

2010-01-06 Thread Elison Niven
Hi List,

I am using Network manager with Gnome network applet on Fedora 12.

Are there any options for getting accounting like information about connect
times, data bytes in and out etc?

Thanks,
Elison




___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Problem with HSDPA modem and network manager

2010-01-06 Thread Massimiliano Polito
To put it in a nutshel, when I power up my laptop, my HSDPA modem (GT
M378) is randomly connected as ttyUSB0 or ttyUSB2. In the first case I
can connect to the internet, in the latter I have to reboot the PC in
the hope that next time it'll be correctly mapped.

To be more clear, last part of 'nm-tool' output can be

- Device: ttyUSB0 --
  Type:  Mobile Broadband (GSM)
  Driver:option
  State: disconnected
  Default:   no

  Capabilities:

in this case everything works correctly, or

- Device: ttyUSB2 --
  Type:  Mobile Broadband (GSM)
  Driver:option
  State: disconnected
  Default:   no

  Capabilities:

and in this case I can't connect to the internet, I have to reboot and
reboot and reboot until I fall into the first case.

I've asked for help both on Ubuntu forum and on
http://www.pharscape.org: I can't get any reply.

Can you please help me in understanding what should I do to solve the problem?

I'm not subscribed to the mailing list, please send a copy of your reply to

massimiliano dot polito at gmail dot com

Thanks.

Ciao,
Max
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: No default route on 3G

2010-01-06 Thread José Queiroz
Dan, I've replied to you in pvt by mistake. I'll try to fix this
mistake now, copying the new reply to the list.

By the way, thanks for your attention.

2010/1/7 Dan Williams :
> On Fri, 2009-12-25 at 23:56 -0200, José Queiroz wrote:
>> Sorry, which "nm-connection-editor"???
>>
>> 2009/12/25 Dan Williams :
>> > Check in nm-connection-editor for that 3G connection, and in the IPv4
>> > tab, click the "routes" button.
>>
>> I don't have such program in my Kubuntu 9.10, neither an IPv4 tab in
>> any config window. :(
>
> Ah, KDE.  I'm not sure what the KDE equivalent checkbox is.
>
>> > Look for the checkbox "Only use this
>> > connection for resources on its network" and make sure that
>> > is /unchecked/.
>>
>> > Checking that box will ensure that the device is never
>> > used as the default route.
>>
>> In fact, I do need the exact oposite: I *need* a default route, and
>> need that this route be preferred over wireless, if active.
>
> So even though you have a wifi connection, you want to route over the
> 3G?
>
> Dan

I don't use them simultaneously. I use the wifi connection at home,
and the 3G connection when I travel to my parent's house.
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: udev doesn't recognize my gsm dongle

2010-01-06 Thread Sergio Monteiro Basto
On Tue, 2010-01-05 at 10:31 +0100, Maxime Boure wrote:
> 
> 
> On Mon, Jan 4, 2010 at 9:12 PM, Sergio Monteiro Basto
>  wrote:
> On Mon, 2010-01-04 at 18:02 +0100, Maxime Boure wrote:
> 
> > I use the usbmodeswitch properly to get it into gsm and not
> storage.
> >
> > I modified as said into the networkmanager main website
> 
> 
> where ? , I'd like read it, but I don't found the main
> webiste, talking
> about usbmodeswitch
> 
> I was talking about the modification of the udev rules not the
> usbmodeswitch :).
> 

but where this you found that info ?

> Regards 
> 
> Maxime B.

Regards,
-- 
Sérgio M. B.


smime.p7s
Description: S/MIME cryptographic signature
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: plugin generic doesn't support my huawei180

2010-01-06 Thread Maxime Boure
For those who want to know I get it working !

I modified the config.h file for it setting this : #define HAVE_LIBUDEV 0

And know network manager see my device !
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: [modem-manager] how unlock PIN before probe nm settings

2010-01-06 Thread Alexander Sack
On Wed, Jan 06, 2010 at 04:05:47AM +, Sergio Monteiro Basto wrote:
> On Sun, 2010-01-03 at 18:00 +, Sergio Monteiro Basto wrote:
> > the mobile broadband works just prefect. 
> 
> Not so perfect, don't get DNS given by ppp, live vpn-pptp does .
> 

should be fixed in latest 0.8 builds. we use a universal fallback if
ppp fails to give proper DNS results.

If you are on ubuntu, check our daily builds from here:

  https://launchpad.net/~network-manager/+archive/trunk


 - Alexander

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list