You are not logged in.

#1 2012-04-14 13:44:52

Jompu
Member
From: Finland
Registered: 2012-04-14
Posts: 14
Website

[SOLVED]Modem-manager won't start with Network manager

Hi,

I have a problem with getting modem-manager work under gnome. After first Arch install to this laptop, Network manager didn't show my 3G-modem, so I installed modem-manager and usb_modeswitch. Modem is Huawei E367 and it works well with wvdial. Only problem is to get it working with Network manager.

From output of dmesg I see that there is an error, when Network manager is trying to start modem-manager:

[ 3224.705193] do_trap: 322 callbacks suppressed
[ 3224.705198] modem-manager[3112] trap int3 ip:7ff7baab4143 sp:7fff996e62b0 error:0
[ 3224.719275] modem-manager[3114] trap int3 ip:7f58f4c5e143 sp:7fffc82b2400 error:0
[ 3224.733880] modem-manager[3116] trap int3 ip:7f579dda4143 sp:7fff77910850 error:0
[ 3224.748789] modem-manager[3118] trap int3 ip:7ff752c6f143 sp:7fff8ae42e20 error:0
[ 3224.763501] modem-manager[3120] trap int3 ip:7fb4db83f143 sp:7fff3023cbf0 error:0
[ 3224.777865] modem-manager[3122] trap int3 ip:7fa17a33a143 sp:7fffc1628260 error:0
[ 3224.792165] modem-manager[3124] trap int3 ip:7f00a39fb143 sp:7fff075a0fb0 error:0
[ 3224.806603] modem-manager[3126] trap int3 ip:7f9a62e23143 sp:7fffc2ccfed0 error:0
[ 3224.820736] modem-manager[3128] trap int3 ip:7f3d2994d143 sp:7ffff2581340 error:0
[ 3224.834985] modem-manager[3130] trap int3 ip:7f5adda9a143 sp:7fff8a70a4a0 error:0

From /var/log/messages.log I found also something:

Apr 14 16:02:14 localhost NetworkManager[713]: <info> trying to start the modem manager...
Apr 14 16:02:14 localhost dbus[651]: [system] Activating service name='org.freedesktop.ModemManager' (using servicehelper)
Apr 14 16:02:14 localhost dbus[651]: [system] Successfully activated service 'org.freedesktop.ModemManager'
Apr 14 16:02:14 localhost NetworkManager[713]: <info> modem-manager is now available
Apr 14 16:02:14 localhost modem-manager: libhal_ctx_init() failed: (null)
Apr 14 16:02:14 localhost NetworkManager[713]: <info> the modem manager disappeared

If I try to run modem-manager manually with debug:

$ sudo modem-manager --debug

** ERROR **: libhal_ctx_init() failed: (null)
Make sure the hal daemon is running?

So it seems to be because of hal isn't running, if I try to start hal daemon it fails:

$ sudo /etc/rc.d/hal start
:: Starting Hardware Abstraction Layer                                   [FAIL]

I also tried to start hal at boot by putting it to DAEMONS in rc.conf. but didn't start either.

The laptop is Asus X61SL with x86_64 version of ArchLinux.
Kernel: 3.3.1-1-ARCH

Would be cool if anyone can solve this.

Last edited by Jompu (2012-04-14 20:42:20)

Offline

#2 2012-04-14 14:18:51

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,482

Re: [SOLVED]Modem-manager won't start with Network manager

You don't need hal (it is deprecated), that error message is confusing it. Also you don't need to start modem-manager usually as it is started by networkmanager (see the log).

You might have to invoke usb_modeswitch manually though.

Best reboot or restart networkmanager with unplugged 3G stick, plug it in and look with "lsusb" for the USB stick. Post that line here, if networkmanager still does not recognise it.

Then change the -v (=vendor) and -p (=product) parameters of the following according to the info given by lsusb and look if that helped switching it to modem mode:

sudo usb_modeswitch -v 12d1 -p 1c0b -M '55534243123456780000000000000011062000000100000000000000000000' 

Offline

#3 2012-04-14 14:57:54

Jompu
Member
From: Finland
Registered: 2012-04-14
Posts: 14
Website

Re: [SOLVED]Modem-manager won't start with Network manager

Thanks for your quick reply Strike0!

I ran lsusb and usb_modeswitch as you instructed:

[louis@Louis-Laptop ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04f2:b071 Chicony Electronics Co., Ltd 2.0M UVC Webcam / CNF7129
Bus 002 Device 002: ID 045e:00dd Microsoft Corp. Comfort Curve Keyboard 2000 V1.0
Bus 003 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 001 Device 006: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
[louis@Louis-Laptop ~]$ sudo usb_modeswitch -v 12d1 -p 1506 -M '55534243123456780000000000000011062000000100000000000000000000'
Password: 

Looking for default devices ...
   found matching product ID
   adding device
 Found device in default mode, class or configuration (1)
Accessing device 006 on bus 001 ...
Getting the current device configuration ...
 OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: Huawei Technologies
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Looking for active driver ...
 OK, driver found; name unknown, limitation of libusb1
 OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
 OK, message successfully sent
Resetting response endpoint 0x82
Resetting message endpoint 0x01
-> Run lsusb to note any changes. Bye.

It didn't help. Network manager doesn't show anything related 3G.

I don't think it's usb_modeswitch since 3G stick works great with wvdial on same system. Could it be a bug on modem-manager?
I start only the Network manager on boot, but while Network manager tries to start modem-manager, it throws error continuously in dmesg. Error is the same as in first post.

Offline

#4 2012-04-14 17:18:36

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,482

Re: [SOLVED]Modem-manager won't start with Network manager

Ok, lsusb shows the device is detected correctly without manually calling modeswitch. So that part works like it should. I am not sure about the error, maybe someone else.

How did you determine the modem is not available in networkmanager? It is not listed when you

sudo nm-connection-editor

and start to try setup a 3G profile I suppose?

Offline

#5 2012-04-14 19:39:16

Jompu
Member
From: Finland
Registered: 2012-04-14
Posts: 14
Website

Re: [SOLVED]Modem-manager won't start with Network manager

Yes, it's not listed there. And didn't work if tried to setup profile.

When I run 'ip a' there is not ppp0 device, I remember that on previous installations it have been there.

Edit-----------
And I think it should not give error message repeatedly, non-stop. That repeats in /var/log/messages.log:

Apr 14 23:08:33 localhost NetworkManager[719]: <info> trying to start the modem manager...
Apr 14 23:08:33 localhost dbus[665]: [system] Activating service name='org.freedesktop.ModemManager' (using servicehelper)
Apr 14 23:08:33 localhost dbus[665]: [system] Successfully activated service 'org.freedesktop.ModemManager'
Apr 14 23:08:33 localhost NetworkManager[719]: <info> modem-manager is now available
Apr 14 23:08:33 localhost modem-manager: libhal_ctx_init() failed: (null)
Apr 14 23:08:33 localhost NetworkManager[719]: <info> the modem manager disappeared

Last edited by Jompu (2012-04-14 20:13:15)

Offline

#6 2012-04-14 20:39:10

Jompu
Member
From: Finland
Registered: 2012-04-14
Posts: 14
Website

Re: [SOLVED]Modem-manager won't start with Network manager

Okey, now feel embarrassed!

I recognized that I had installed wrong package for modem manager. For some reason I installed network-manager from AUR. I don't know why there is that version, if I understood right it is old versio of modem manager.

The right version is from extra repositoriy named: modemmanager.

Anyway thanks for your help.

Offline

#7 2012-04-15 11:56:58

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,482

Re: [SOLVED]Modem-manager won't start with Network manager

Alrighty & welcome, good you found out. That AUR package is outdated (2009..) indeed, should be flagged out-of-date.

Offline

Board footer

Powered by FluxBB