You are not logged in.

#1 2010-02-13 23:31:56

adrian9116
Member
Registered: 2010-02-13
Posts: 12

networkmanager fails to connect 3G modem

Hello all,

I upgraded networkmanager, network-manager-applet and ppp to the lastest versions. After reading that there were some problems with policy settings and the ppp version, I downgraded ppp and changed the needed files in /etc/dbus-1/system.d/ by copying <policy user="root"> to <policy group="network">.

However, networkmanager still fails connecting. This is the tail /var/log/daemon.log

Feb 14 01:00:55 adrian-laptop modem-manager: (Generic): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-3 claimed port ttyUSB4
Feb 14 01:16:58 adrian-laptop polkitd[2230]: started daemon version 0.96 using authority implementation `local' version `0.96'
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) starting connection 'Vodafone'
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 3 -> 4 (reason 0)
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 6 (reason 0)
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 6 -> 4 (reason 0)
Feb 14 01:17:29 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.
Feb 14 01:17:29 adrian-laptop modem-manager: (ttyUSB0) opening serial device...
Feb 14 01:17:29 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
Feb 14 01:17:29 adrian-laptop modem-manager: Got failure code 11: SIM PIN required
Feb 14 01:17:29 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
Feb 14 01:17:34 adrian-laptop modem-manager: Got failure code 100: Unknown error
Feb 14 01:17:34 adrian-laptop modem-manager: Registration state changed: 2
Feb 14 01:17:34 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabled -> searching)
Feb 14 01:17:39 adrian-laptop modem-manager: Registration state changed: 1
Feb 14 01:17:39 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (searching -> registered)
Feb 14 01:17:39 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (registered -> connecting)
Feb 14 01:17:39 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connecting -> connected)
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 2 of 5 (Device Configure) scheduled...
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 2 of 5 (Device Configure) starting...
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 5 (reason 0)
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 2 of 5 (Device Configure) successful.
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) scheduled.
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 2 of 5 (Device Configure) complete.
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) started...
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 5 -> 7 (reason 0)
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Starting pppd connection
Feb 14 01:17:39 adrian-laptop NetworkManager: <debug> [1266106659.343879] nm_ppp_manager_start(): Command line: /usr/sbin/pppd nodetach lock nodefaultroute user vodafone ttyUSB0 noipdefault noauth usepeerdns lcp-echo-failure 0 lcp-echo-interval 0 ipparam /org/freedesktop/NetworkManager/PPP/0 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
Feb 14 01:17:39 adrian-laptop NetworkManager: <debug> [1266106659.726150] nm_ppp_manager_start(): ppp started with pid 2318
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) scheduled...
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 3 of 5 (IP Configure Start) complete.
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) started...
Feb 14 01:17:39 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) Stage 4 of 5 (IP6 Configure Get) complete.
Feb 14 01:17:39 adrian-laptop pppd[2318]: Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
Feb 14 01:17:39 adrian-laptop pppd[2318]: pppd 2.4.4 started by root, uid 0
Feb 14 01:17:39 adrian-laptop pppd[2318]: Using interface ppp0
Feb 14 01:17:39 adrian-laptop pppd[2318]: Connect: ppp0 <--> /dev/ttyUSB0
Feb 14 01:17:39 adrian-laptop pppd[2318]: CHAP authentication succeeded
Feb 14 01:17:39 adrian-laptop pppd[2318]: CHAP authentication succeeded
Feb 14 01:17:41 adrian-laptop pppd[2318]: Modem hangup
Feb 14 01:17:41 adrian-laptop pppd[2318]: Connection terminated.
Feb 14 01:17:41 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 7 -> 9 (reason 13)
Feb 14 01:17:41 adrian-laptop NetworkManager: <info>  Marking connection 'Vodafone' invalid.
Feb 14 01:17:41 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) failed.
Feb 14 01:17:41 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 9 -> 3 (reason 0)
Feb 14 01:17:41 adrian-laptop NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 0).
Feb 14 01:17:41 adrian-laptop modem-manager: (ttyUSB0) closing serial device...
Feb 14 01:17:41 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (connected -> disconnecting)
Feb 14 01:17:41 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting -> connected)
Feb 14 01:17:41 adrian-laptop NetworkManager: <info>  Policy set 'Auto eth0' (eth0) as default for routing and DNS.
Feb 14 01:17:42 adrian-laptop pppd[2318]: Exit.
Feb 14 01:17:43 adrian-laptop NetworkManager: <debug> [1266106663.999957] ensure_killed(): waiting for ppp pid 2318 to exit
Feb 14 01:17:43 adrian-laptop NetworkManager: <debug> [1266106664.000066] ensure_killed(): ppp pid 2318 cleaned up
Feb 14 01:17:51 adrian-laptop NetworkManager: <info>  (eth0): device state change: 8 -> 3 (reason 39)
Feb 14 01:17:51 adrian-laptop NetworkManager: <info>  (eth0): deactivating device (reason: 39).
Feb 14 01:17:51 adrian-laptop dhcpcd: received SIGTERM, stopping
Feb 14 01:17:51 adrian-laptop dhcpcd: eth0: removing interface
Feb 14 01:17:52 adrian-laptop NetworkManager: <info>  (eth0): canceled DHCP transaction, dhcp client pid 1996
Feb 14 01:17:52 adrian-laptop NetworkManager: <WARN>  nm_dhcp_manager_handle_event(): Received DHCP event from unexpected PID 1996 (expected 0)

when I tried reconnecting, it said the device is not enabled:

Feb 14 01:30:31 adrian-laptop NetworkManager: <WARN>  stage1_prepare_done(): GSM modem connection failed: (32) Sending command failed: device is not enabled
Feb 14 01:30:31 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 4 -> 9 (reason 1)
Feb 14 01:30:31 adrian-laptop NetworkManager: <info>  Marking connection 'Vodafone' invalid.
Feb 14 01:30:31 adrian-laptop NetworkManager: <info>  Activation (ttyUSB0) failed.
Feb 14 01:30:31 adrian-laptop NetworkManager: <info>  (ttyUSB0): device state change: 9 -> 3 (reason 0)
Feb 14 01:30:31 adrian-laptop NetworkManager: <info>  (ttyUSB0): deactivating device (reason: 0).
Feb 14 01:30:31 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/1: state changed (connected -> disconnecting)
Feb 14 01:30:31 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/1: state changed (disconnecting -> connected)

any ideas? :S

Offline

#2 2010-02-14 09:46:10

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: networkmanager fails to connect 3G modem

install modemmanager. this is an optdepends to this new networkmanager.

Optional Deps  : modemmanager: for modem management service

Last edited by wonder (2010-02-14 09:52:00)


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-02-14 09:53:18

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: networkmanager fails to connect 3G modem

Modemmanager worked for me (this tip is also on the wiki btw).

Offline

#4 2010-02-14 14:02:36

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

Feb 14 01:17:29 adrian-laptop modem-manager: (ttyUSB0) opening serial device...
Feb 14 01:17:29 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (disabled -> enabling)
Feb 14 01:17:29 adrian-laptop modem-manager: Got failure code 11: SIM PIN required
Feb 14 01:17:29 adrian-laptop modem-manager: Modem /org/freedesktop/ModemManager/Modems/0: state changed (enabling -> enabled)
Feb 14 01:17:34 adrian-laptop modem-manager: Got failure code 100: Unknown error

I have modem-manager installed :S

it seems something is wrong with "activating" the modem...

Last edited by adrian9116 (2010-02-14 14:04:58)

Offline

#5 2010-02-14 14:29:45

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

Ok since I really need internet connection, I tried to downgrade the networkmanager package, but fails to start because it says it needs policykit-gnome, however, that package is installed... any ideas?

Offline

#6 2010-02-14 14:39:50

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: networkmanager fails to connect 3G modem

Have you tried the git versions (check the aur) as well?

What modem are you using? On my Option 225 the hsoconnect package works great.

Offline

#7 2010-02-14 15:41:30

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

I haven't tried the git versions, I will check them out.

I use a Huawei K3765... worked fine with the previous version of networkmanager, and it also works with wvdial (although it takes a long time to find a suitable connection with it)

Offline

#8 2010-02-14 15:53:35

goran'agar
Member
From: Nothern Italy
Registered: 2009-05-19
Posts: 167

Re: networkmanager fails to connect 3G modem

adrian9116 wrote:

I haven't tried the git versions, I will check them out.

I use a Huawei K3765... worked fine with the previous version of networkmanager, and it also works with wvdial (although it takes a long time to find a suitable connection with it)

Maybe before trying the git versions you could try to rebuild modemmanager against the latest ppp. Simply download the PKGBUILD, then run makepkg followed by pacman -U .

It worked for me with a Huawei E220.


Sony Vaio VPCM13M1E  - Arch Linux - ZFS - Syslinux - XFCE .
Samsung SGS - CM10.1 - Semaphore 2.8.0 .

Offline

#9 2010-02-14 16:31:48

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

http://repos.archlinux.org/wsvn/package … 4/PKGBUILD I found that PKGBUILD but I didn't get what do I have to do with it... it says that it needs ppp but doesn't specify any versions...

I'm sorry I'm a newbie using PKGBUILDs ^^

Offline

#10 2010-02-14 17:02:41

WiLLiE
Member
From: Sweden
Registered: 2005-02-27
Posts: 135

Re: networkmanager fails to connect 3G modem

I have the same problem, but I think its a PIN problem. Remove the PIN code and try again. I'm at work so I can't test it right now hmm

Edit:

Feb 14 01:17:29 adrian-laptop modem-manager: Got failure code 11: SIM PIN required

https://bugs.launchpad.net/ubuntu/+sour … bug/509738

Last edited by WiLLiE (2010-02-14 17:04:59)

Offline

#11 2010-02-14 18:05:06

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

Don't ask me why, reinstalling arch solved the problem...

it takes about a minute to connect (even when the a connection is reachable), but it seems it's working now...

since people have the same problem, should I mark this post as solved?

Last edited by adrian9116 (2010-02-14 18:09:22)

Offline

#12 2010-02-15 08:23:27

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: networkmanager fails to connect 3G modem

Same problem here, and reinstalling Arch is not an option, as this is my office box sad

Last edited by wottam (2010-02-15 08:23:38)

Offline

#13 2010-02-15 09:30:02

zyghom
Member
From: Poland/currently Africa
Registered: 2006-05-11
Posts: 432
Website

Re: networkmanager fails to connect 3G modem

working for me the solution of downgrading ppp and installing modem-manager


Zygfryd Homonto

Offline

#14 2010-02-15 09:35:53

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: networkmanager fails to connect 3G modem

zyghom wrote:

working for me the solution of downgrading ppp and installing modem-manager

please try with modemmanager 0.3-2

i just recompiled it against ppp 2.4.5


Give what you have. To someone, it may be better than you dare to think.

Offline

#15 2010-02-15 09:41:49

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: networkmanager fails to connect 3G modem

I just solved it by using networkmanager-git from AUR. Anyway, I'll try your advice wonder, thanks

Offline

#16 2010-02-15 21:55:10

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

If it helps, I believe it could have something to do with the policies (although not sure) I don't know why, when I upgraded the policy libraries, when I tried to run anything from the gnome-system-tools package it said that libpolkit-gnome was missing...

that's not happening after reinstalling arch.

edit: for me it works with the last ppp version without throwing any errors in the logs.

Last edited by adrian9116 (2010-02-15 21:56:34)

Offline

#17 2010-02-19 00:07:31

mcsilva
Member
From: Portugal
Registered: 2009-12-16
Posts: 95

Re: networkmanager fails to connect 3G modem

I also have a HUAWEI k3765 and it's not working.
I'm a little confused about the way some of you solved it, and need some advice.
I tried to recompile modemmanager-0.3.2 against ppp-2.4.5-1 but doesn't work, in my system with kernel26 2.6.32.1-1 and networkmanager 0.7.2-1.
My dmesg shows this, when I connect the modem:

usb 3-3: new high speed USB device using ehci_hcd and address 6
usb 3-3: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: CD-ROM            Vodafone CD ROM (Huawei)  2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 3:0:0:0: Attached scsi CD-ROM sr1
sr 3:0:0:0: Attached scsi generic sg2 type 5
usb-storage: device scan complete

It seems not to being recognizing the modem and not creating ttyUSB0 and ttyUSB1.
So, it would be nice to know which versions you are using from programs listed below, with a working k3765:
-networkmanager
-modemmanager
-ppp
-kernel26

By the way... A HUAWEI E220 it's working normally in my system.

Thank's.

Offline

#18 2010-02-19 14:55:28

adrian9116
Member
Registered: 2010-02-13
Posts: 12

Re: networkmanager fails to connect 3G modem

I installed usb_modeswitch and vodafone-mccd from AUR (even if you don't use vodafone, the hal and udev rules are installed with those packages) and then ozerocdoff with pacman, after that, the modem was recognized and works with the latest ppp and networkmanager packages (I have to update modemmanager but since it working... the new version can wait tongue)

edit:

networkmanager 0.7.999-3
modemmanager 0.3-1
ppp 2.4.5-1
kernel26 2.6.32.8-1

Last edited by adrian9116 (2010-02-19 14:57:50)

Offline

#19 2010-02-20 00:36:04

mcsilva
Member
From: Portugal
Registered: 2009-12-16
Posts: 95

Re: networkmanager fails to connect 3G modem

GREAT! This is a VERY VALUABLE INFORMATION!
Thank's a lot adrian9116.
My HUAWEI k3765 is now working with those versions:
networkmanager 0.7.999-2
modemmanager 0.3-1
ppp 2.4.4-9
usb_modeswitch 1.1.0-1
vodafone-mccd 2.15.01-2
ozerocdoff 2-1
kernel26 2.6.32.1-1

Note:
I had to downgrade ppp from 2.4.5 to 2.4.4-9 because networkmanager-0.7.999-2
was not able to work correctly. There was this error message appearing in /var/log/errors.log:
Feb 19 19:13:00 hp pppd[2306]: Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so is for pppd version 2.4.4, this is 2.4.5

Offline

#20 2010-02-20 09:33:03

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,937
Website

Re: networkmanager fails to connect 3G modem

@mcsilva read carefully the versions that adian write.

is true that networkmanager-0.7.999-2 and modemmanager 0.3-1 doesn't work with ppp 2.4.5  but networkmanager 0.7.999-3 and modemmanager 0.3-2 works with ppp 2.4.5.

you only have to do pacman -Syu and everything will work

Last edited by wonder (2010-02-20 09:34:01)


Give what you have. To someone, it may be better than you dare to think.

Offline

#21 2010-02-20 12:59:07

mcsilva
Member
From: Portugal
Registered: 2009-12-16
Posts: 95

Re: networkmanager fails to connect 3G modem

You are wright wonder. I upgraded them and it's working well.
Thank's!

Offline

Board footer

Powered by FluxBB