Add support for Huawei
======================
I'm using Void Linux with the usb-modeswitch package update my USB modem model support is removed.
The package maintainer's email doesn't work to report the fact.
============================================================================================
$ xbps-query -S usb-modeswitch
architecture: x86_64
conf_files:
/etc/usb_modeswitch.conf
filename-sha256: 00491e5d1393a23285c980cfb60a18c44709dae516308a1549c67180efbf460f
filename-size: 46KB
homepage: https://www.draisberghof.de/usb_modeswitch/
install-date: 2022-09-27 14:07 -03
installed_size: 118KB
license: GPL-2.0-or-later, BSD-2-Clause
maintainer: Enno Boland <gottox@voidlinux.org>
metafile-sha256: 28cf56a298ffd95139981d413d30c7908fffe1badbb5e3d55abf384ef6dffd2d
pkgname: usb-modeswitch
pkgver: usb-modeswitch-2.6.0_2
repository: https://repo-default.voidlinux.org/current
run_depends:
tcl>=0
usb-modeswitch-data>=0
libusb>=1.0.0_1
glibc>=2.32_1
shlib-requires:
libusb-1.0.so.0
libc.so.6
short_desc: Mode switching tool for controlling multi-mode USB devices
source-revisions: usb-modeswitch:9602e3373a
state: installed
============================================================================================
I manually added the USB modem model Huawei E156B
kernel
$ uname -r
5.15.124_1
Modem USB
$ lsusb
Bus 005 Device 003: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
$ cat /usr/lib/udev/rules.d/40-usb_modeswitch.rules | grep -i 1003
# ATTR{idVendor}=="0922", ATTR{idProduct}=="1003", RUN+="usb_modeswitch '/%k'"
# Bus 002 Device 004: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1003", RUN+="usb_modeswitch '/%k'"
As you can see in the file /usr/lib/udev/rules.d/40-usb_modeswitch.rules there is a conflict with "idProduct" for 1003
conflict (0922):
https://devicehunt.com/search/type/usb/ ... device/any
[imguploaddeimagens.com.br/imagens/UtiRHmk[/img]
https://uploaddeimagens.com.br/imagens/UtiRHmk
nm-applet did not recognize the device.
installed packages:
network-manager-applet-1.32.0_1
usb-modeswitch-2.6.0_2
usb-modeswitch-data-20191128_2
usbutils-015_1
ModemManager-1.18.12_1
mobile-broadband-provider-info-20220511_1
https://voidlinux.org/