Bug 270772 - Mobile broadband modem is not found
Summary: Mobile broadband modem is not found
Status: RESOLVED FIXED
Alias: None
Product: Network Management
Classification: Miscellaneous
Component: Plasma Widget (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 16:33 UTC by oscar.rentzhog
Modified: 2012-06-19 02:39 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Script to get information about the modem (700 bytes, application/x-shellscript)
2011-04-12 20:35 UTC, Lamarque V. Souza
Details
output from modem.sh script (933 bytes, text/plain)
2011-04-13 14:01 UTC, oscar.rentzhog
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oscar.rentzhog 2011-04-12 16:33:00 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

Since upgrading to networkmanager 0.8.998-2 my 3g modem is not found. Using nm-applet at the moment, works perfectly, but the plasma widget does not show the connection and if I press 'Manage connections' and try to add a new, it does not find any modems. 

Reproducible: Always

Steps to Reproduce:
Upgrade networkmanager.

Actual Results:  
3g modem not found.

Expected Results:  
3g modem found and working

Distro: Arch Linux, fully updated, testing repository enabled.
Comment 1 Lamarque V. Souza 2011-04-12 20:35:19 UTC
Created attachment 58859 [details]
Script to get information about the modem

Can you execute the attached script and send me the file /tmp/modem.txt?

To execute the script you must save it somewhere and change its permissions (chmod 755 modem.sh).
Comment 2 oscar.rentzhog 2011-04-13 14:01:33 UTC
Created attachment 58886 [details]
output from modem.sh script
Comment 3 oscar.rentzhog 2011-04-13 14:02:34 UTC
Also, got this error message when I ran the script, don't know if it's useful:

oscar@arch-laptop: [~] >>> ./modem.sh 
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Comment 4 Lamarque V. Souza 2011-05-20 21:22:31 UTC
You need to use Plasma NM for NetworkManager 0.9 when using NetworkManager 0.9. Networkmanager 0.8.998-2 is a beta version of NM-0.9.

Plasma NM for NM-0.9 is not stable yet but works with my 3G connection. The biggest problem is that it saves secrets (passwords, encryption keys, etc) unencrypted for now and VPN does not work yet. I do not recommend using it until we fix those two problems.
Comment 5 Lamarque V. Souza 2011-05-27 06:47:34 UTC
This is working in nm09 branch now.
Comment 6 oscar.rentzhog 2011-06-09 16:30:58 UTC
It still doesn't work here. I just built kdeplasma-applets-networkmanagement from nm09 git, using fully updated kde 4.7 beta1. Modem is now recognized but when trying to connect it immediately says 'connection failed'. I now have a little box in the applet to enable/disable mobile broadband, just as for wireless, but it's impossible to check it. Networkmanager 0.8.9997-1, applet from git.
Comment 7 oscar.rentzhog 2011-06-09 17:18:31 UTC
Never mind my last post, it works as it should. Made a stupid error when testing.
Comment 8 oscar.rentzhog 2011-06-25 21:58:35 UTC
Hm. I don't know if I do anything wrong, but it's still not working for me. I'm quite sure I'm using the right version of the plasmoid. I found this in /var/log/everything.log:

Jun 25 23:48:03 arch-laptop NetworkManager[1692]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...

Jun 25 23:48:03 arch-laptop NetworkManager[1692]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...

Jun 25 23:48:03 arch-laptop NetworkManager[1692]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <warn> GSM connection failed: (32) Serial command timed out

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> (ttyUSB0): device state change: prepare -> failed (reason 'unknown') [40 120 1]

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> Marking connection 'Tre 3G' invalid.

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <warn> Activation (ttyUSB0) failed.

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> (ttyUSB0): deactivating device (reason: 0).
 
Modem is Huawei E180.
Comment 9 oscar.rentzhog 2011-06-25 21:59:08 UTC
Hm. I don't know if I do anything wrong, but it's still not working for me. I'm quite sure I'm using the right version of the plasmoid. I found this in /var/log/everything.log:

Jun 25 23:48:03 arch-laptop NetworkManager[1692]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) scheduled...

Jun 25 23:48:03 arch-laptop NetworkManager[1692]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) started...

Jun 25 23:48:03 arch-laptop NetworkManager[1692]: <info> Activation (ttyUSB0) Stage 1 of 5 (Device Prepare) complete.

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <warn> GSM connection failed: (32) Serial command timed out

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> (ttyUSB0): device state change: prepare -> failed (reason 'unknown') [40 120 1]

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> Marking connection 'Tre 3G' invalid.

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <warn> Activation (ttyUSB0) failed.

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> (ttyUSB0): device state change: failed -> disconnected (reason 'none') [120 30 0]

Jun 25 23:48:24 arch-laptop NetworkManager[1692]: <info> (ttyUSB0): deactivating device (reason: 0).
 
Modem is Huawei E180.
Comment 10 Lamarque V. Souza 2011-06-26 02:33:26 UTC
If you use Fedora then y(In reply to comment #9)
> Hm. I don't know if I do anything wrong, but it's still not working for me. I'm
> quite sure I'm using the right version of the plasmoid. I found this in
> /var/log/everything.log:

If you use Fedora 15 you probably hit this bug: 

https://bugzilla.redhat.com/show_bug.cgi?id=698975
Comment 11 oscar.rentzhog 2011-06-26 08:09:00 UTC
(In reply to comment #10)
> If you use Fedora then y(In reply to comment #9)
> > Hm. I don't know if I do anything wrong, but it's still not working for me. I'm
> > quite sure I'm using the right version of the plasmoid. I found this in
> > /var/log/everything.log:
> 
> If you use Fedora 15 you probably hit this bug: 
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=698975

I am using Arch Linux. The problem in the bug you link to seems to be to create a connection profile. I can do that without problems. The problem now is that it tries to dial but fails.
Comment 12 Lamarque V. Souza 2011-06-26 08:18:49 UTC
Well, my Sony MD300 modem works with NM-0.8.9997. Do you have PIN enabled? Did you enabled the "Mobile Broadband" checkbox in main window before trying to connect?
Comment 13 oscar.rentzhog 2011-06-26 08:20:56 UTC
(In reply to comment #12)
> Well, my Sony MD300 modem works with NM-0.8.9997. Do you have PIN enabled? 
No pin.

>Did you enabled the "Mobile Broadband" checkbox in main window before trying to
> connect?

Yes.
Comment 14 Lamarque V. Souza 2011-06-26 09:55:02 UTC
Which ModemManager version do you use?

Well, the message "Serial command timed out" suggests the modem is not responding. Can you send me the log when connecting with nm-applet?
Comment 15 oscar.rentzhog 2011-06-26 10:39:41 UTC
It does not work with nm-applet either. The log is identical except for one line. Before the serial command time out message there is this line:
Dbus[854]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Does this mean the problem is elsewhere? When rebooting to windows 7 it works, so it's not a problem with signal strength or modem.
Modemmanager version is 0.4.997-1.
Comment 16 Lamarque V. Souza 2011-06-26 15:20:32 UTC
I use ModemManager 0.4 here, maybe the new MM does not work with your modem. Anyway, if it does not work with nm-applet then the problem is elsewhere. Maybe you do not have usb_modeswitch installed. Several modems, including yours and mine, need to be switched to modem state to be used as modem, usb_modeswitch does that for your modem.