HowTo: Debian Jessie & Huawei E3131 Mobile Broadband
Before:
# lsusb | grep -i huawei
Bus 002 Device 007: ID 12d1:14fe Huawei Technologies Co., Ltd
Fix it with command:
usb_modeswitch -v 12d1 -p 14fe -J
After:
# lsusb | grep -i huawei
Bus 008 Device 005: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
You can also create a udev rule:
vi /etc/udev/rules.d/75-usb-modeswitch.rules
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14fe", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 14fe -J"