You are not logged in.

#1 2017-12-05 04:31:53

capitan
Member
From: /var/
Registered: 2017-11-09
Posts: 9

[SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

I recently upgraded my arch and after reboot, my USB modem (Huawei) is not working anymore, it always shows as 'flash memory storage'. I've followed instructions here but still not work.

I cannot downgrade to the previous package because i already remove old packages before i try to use my USB modem, i don't know is it kind of bug or not but i just want to get my USB modem to work again.

Any help would be appreciated.

Last edited by capitan (2017-12-11 13:12:28)

Offline

#2 2017-12-05 08:44:54

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

Why do you think those instructions, which appear tailored towards a ZTE modem, are applicable to your Huawei device? For starters, reverse the changes you did following that wiki entry and have a look at this. Then best let us now how you connect to the internet (manually, netctl, NetworkManager, ...?) and if the appropriate method under ''Connection" works for you. If not, please post the exact commands you issued along with all the output.

Offline

#3 2017-12-05 09:12:37

capitan
Member
From: /var/
Registered: 2017-11-09
Posts: 9

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

Thanks for your response. Actually my USB modem is worked before upgrade, and of course i already follow all instructions on this wiki. I usually connect to the internet from NetworkManager and sometimes i connect to the internet using wvdial, but now both of it do not work, $ lsusb command always show my USB modem as 'flash memory storage'

Offline

#4 2017-12-06 08:33:15

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

capitan wrote:

...of course i already follow all instructions on this wiki...

There is no way for us to know if you do not mention it.

I am afraid that not owning a usb modem myself, I won't be able to assist you much beyond what I already suggested. However having a quick glance at the involved packages, it would appear that usb_modeswitch had some changes affecting Huawei devices in the latest update. I would suggest to you to

- disable all network services
- try to run usb_modeswitch manually (see here for instructions) and get your modem recognized as such
- then start NetworkManager and try connecting to the internet

This will at least make sure that your modem is recognized again. Then you can move on to making these changes permanent.

Last edited by robg (2017-12-06 09:01:52)

Offline

#5 2017-12-09 14:24:48

capitan
Member
From: /var/
Registered: 2017-11-09
Posts: 9

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

I already followed your instruction and official usb_modeswitch instructions but still no result, my USB modem is always shown as Mass Storage.

I'm using Huawei E3276 LTE, here is $ lsusb command result:

Bus 001 Device 007: ID 12d1:14fe Huawei Technologies Co., Ltd. Modem (Mass Storage Mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And here is usb_modeswitch result when i run it manually:

$ sudo usb_modeswitch -v 0x12d1 -p 0x14fe -W

Take all parameters from the command line


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

 ! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x14fe

Look for default devices ...
  found USB ID 1d6b:0003
  found USB ID 8087:0a2b
  found USB ID 04f2:b57a
  found USB ID 046d:c52f
  found USB ID 12d1:14fe
   vendor ID matched
   product ID matched
  found USB ID 1d6b:0002
 Found devices in default mode (1)
Access device 007 on bus 001
Get the current device configuration ...
Current configuration number is 1
Use interface number 0
 with class 8

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
     Product: HUAWEI Mobile
  Serial No.: not provided
-------------------------
Warning: no switching method given. See documentation
-> Run lsusb to note any changes. Bye!

==============================================================

$ sudo usb_modeswitch -c /etc/usb_modeswitch.conf -W

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

 ! PLEASE REPORT NEW CONFIGURATIONS !


No default vendor/product ID given. Abort

==============================================================

$ cat /etc/usb_modeswitch.conf

DisableSwitching=0
DisableMBIMGlobal=0
EnableLogging=1
HuaweiAltModeGlobal=0

==============================================================

$ sudo usb_modeswitch -c /usr/share/usb_modeswitch/12d1\:14fe -W

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

 ! PLEASE REPORT NEW CONFIGURATIONS !

TargetVendor=   0x12d1
TargetProductList="1506,150f,151d,1c1e"
HuaweiNewMode=1

No default vendor/product ID given. Abort

==============================================================

$ cat /usr/share/usb_modeswitch/12d1\:14fe

# Huawei E352 (T-Mobile NL), E173s (Variant)
TargetVendor=0x12d1
TargetProductList="1506,150f,151d,1c1e"
HuaweiNewMode=1

Then i check on /lib/udev/rules.d/40-usb_modeswitch.rules and cannot found my modem vendor & product number, and also removing that rules according to troubleshooting page still not working. Btw, after this upgrade, i also cannot use wvdial command anymore, it'll show an error "Cannot open /dev/ttyUSB0: No such file or directory".

Last edited by capitan (2017-12-10 08:41:39)

Offline

#6 2017-12-09 14:51:11

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

Please post command outputs in code instead of quote tags.

Just to make sure that it is indeed the usb_modeswitch package that's causing trouble, why don't you downgrade to the previous version? (Just build the package manually using makepkg, following the previous PKGBUILD.) If things work after downgrading, blacklist the package for pacman and have a look at what changed upstream; it might be that this issue should be reported there. If after downgrading the device is still not recognized properly, we can continue here.

Last edited by robg (2017-12-09 14:51:41)

Offline

#7 2017-12-09 15:03:17

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

robg wrote:

why don't you downgrade to the previous version? (Just build the package manually using makepkg, following the previous PKGBUILD.)

It's much easier to just use pacman to reinstall the old version from /var/cache/pacman, if you don't have the older version then use the archive. No need to be building things.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#8 2017-12-09 15:11:29

robg
Member
Registered: 2015-03-05
Posts: 218

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

capitan wrote:

I cannot downgrade to the previous package because i already remove old packages...

which is why I suggested the manual build. Completely forgot about the archive though, thank you for the valuable reminder.

Offline

#9 2017-12-11 13:11:30

capitan
Member
From: /var/
Registered: 2017-11-09
Posts: 9

Re: [SOLVED] Issue with usb_modeswitch-2.5.1-1 USB Mode Switch Not Working

Well guys, thank you so much for your help. Actually, i just want to make it works with the new version but i give up for now big_smile Just completed downgrade and everything works again.

Offline

Board footer

Powered by FluxBB