I am on Ubuntu 18.04 LTS and updated the sysytem to the latest. I use Huawei E3131 USB dongle to connect to the Internet. Recently I noticed that the dongle is not detected as a modem. When I run the command lsusb
it shows as mass storage device.
I have also installed usb_modeswitch on my system. I searched the Internet but could not find a solution. How to fix this issue to use this device as a modem.
With the help of Jos I could solve the problem. So I am posting it as an answer.
dmesg
.It will show how the device has been detected. In my case it shows as a mass storage device.
Run
lsusb
to view the vendor and the product ID.Then install
libusb-xx
if it is not on your system already. Download tarball and follow the steps on the terminal. Goto the folder where the file was downloaded and run,Then Download latest usb_modeswitch tarball and install it.
Follow the same steps to download and install usb-modeswitch-data-(your_version).tar.bz2
After that run the below command
It will probably correct the problem and should start showing mobile broadband signal.
lsusb
command now shows the device as a modem.Reference