You are not logged in.

#1 2015-06-25 16:57:22

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

[Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Hi,

sorry for my english, I try to explain my problem...

I'm using Arch testing repos, and since few days my Huawei 3G modem doesn't appear in Network-Manager-Applet and I can't connect to the net...
BUT when I starting my laptop with a usb-live-cd (Fedora 22, Manjaro, etc.) I can configure the mobilinternet connection and it works AND after reboot it works in my installed Arch, too...

lsusb shows:

[burkonattila@burkon64 ~]$ lsusb
Bus 002 Device 003: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 064e:8123 Suyin Corp.
Bus 001 Device 003: ID 0a5c:21bc Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

In my installed Arch my system recognize the modem as "Mass Storage"...

Any ideas?

Thanks! smile

Last edited by attila1964 (2015-06-25 21:09:32)

Offline

#2 2015-06-25 18:07:55

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

You need usb_modeswitch.

Offline

#3 2015-06-25 18:13:29

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Installed.

Offline

#4 2015-06-25 18:33:22

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Installed.

Do you mean you have modeswitch installed in arch but still your modem remains in mass storage mode? If so, check if there is a config file in /usr/share/usb_modeswitch/ corresponding to the id of the un-switched, mass storage device (12d1:1506 is already in modem mode).
If there is, you could enable debugging in usb_modeswitch to get more information on why switching fails.

Last edited by hokasch (2015-06-25 18:34:42)

Offline

#5 2015-06-25 18:58:55

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

In /usr/share/usb_modeswitch is only 12d1:1505 and not 1506...

Offline

#6 2015-06-25 19:12:59

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

12d1:1506 is the device id in modem mode (switched, this is what you want). you said

In my installed Arch my system recognize the modem as "Mass Storage"...

but didn't post what the id is when your device is in mass storage mode. you need a config file corresponding to the un-switched, mass-storage mode device id (so, not 12d1:1506 but whatever it is when you first plug it in under Arch).

Offline

#7 2015-06-25 19:26:31

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Sorry, I didn't understand well, what your wrote, my english isn't good...

So, the unswitched is 12d1:1505 (now I'm writing from Manjaro-live...)

Last edited by attila1964 (2015-06-25 19:27:14)

Offline

#8 2015-06-25 19:38:16

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

no worries. so there is a config file, but for some reason it is not applied / switching doesnt work. you can try to call usb modeswitch manually, something like

usb_modeswitch -W -J -v 12d1 -p 1505

should reproduce what is in the config file for this device id (-J is "new" switching procedure for huawei devices, see --help for more info).

EDIT: you could also check if manjaro or wahtever distro it's working with has the same settings in the usb modeswitch config file for the device, on arch it currently is:

# Huawei EC156, Huawei E372u-8
TargetVendor=0x12d1
TargetProductList="140b,140c,1506,150f,150a"
HuaweiNewMode=1

Last edited by hokasch (2015-06-25 19:40:19)

Offline

#9 2015-06-25 19:53:45

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

I doen what you suggested:

[burkonattila@burkon64 ~]$ sudo usb_modeswitch -W -J -v 12d1 -p 1505
Take all parameters from the command line


* usb_modeswitch: handle USB devices with multiple modes
* Version 2.2.0 (C) Josua Dietze 2014
* Based on libusb1/libusbx

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1505
HuaweiNewMode=1
NeedResponse=0

Look for default devices ...
  found USB ID 8087:0024
  found USB ID 1d6b:0002
  found USB ID 064e:8123
  found USB ID 0a5c:21bc
  found USB ID 12d1:14fe
   vendor ID matched
  found USB ID 8087:0024
  found USB ID 1d6b:0002
No devices in default mode found. Nothing to do. Bye!

Offline

#10 2015-06-25 20:25:19

The Loko
Member
From: Spain
Registered: 2014-07-23
Posts: 100

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Do you have modemmanager installed and running?

Offline

#11 2015-06-25 20:28:33

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Yes, I'm using modemmanager and the stick since years...

Offline

#12 2015-06-25 20:32:48

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

I wrote in my first post:

"...when I starting my laptop with a usb-live-cd (Fedora 22, Manjaro, etc.) I can configure the mobilinternet connection and it works AND after reboot it works in my installed Arch, too..."

At the moment my modem works this way... But when I shut my system down AND boot again, my modem doesn't work anymore...

Offline

#13 2015-06-25 20:36:29

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

found USB ID 12d1:14fe
   vendor ID matched

this is the unswitched ID of a Huawei modem. where did you get the 1505 from? try running usb_modeswitch as before but with 14fe as product id.

Offline

#14 2015-06-25 21:03:30

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

Thanks, "sudo usb_modeswitch -W -J -v 12d1 -p 14fe" solved the problem, my modem works! wink

Offline

#15 2015-06-26 17:00:04

novica
Member
Registered: 2013-04-29
Posts: 20

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

I can confirm that executing

usb_modeswitch -W -J -v 12d1 -p 14fe

as root is needed to switch the device after every reboot. This doesn't happen automatically, but it used to. I cannot be sure when this change happened.

running:
linux 4.0.6-1
modemmanager 1.4.8-2
usb_modeswitch 2.2.1-1

Offline

#16 2015-06-27 04:51:45

attila1964
Member
From: Esztergom / Hungary
Registered: 2011-10-23
Posts: 33

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

It works automatically, I wrote "sudo usb_modeswitch -W -J -v 12d1 -p 14fe" to Autostarted applications and it starts with Xfce4.

Offline

#17 2015-06-29 10:08:16

IncredibleLaser
Member
From: Germany, NRW
Registered: 2008-07-16
Posts: 158

Re: [Solved] Network-Manager-Applet doesn't show Huawei 3G modem

I think the change is related to an update to systemd and to be more precise the udev part as it's supposed to trigger when the unswitched device is plugged in. I have the same problem and there is already a bug report in the tracker.

Offline

Board footer

Powered by FluxBB