it doesn’t output anything
i tried LC_ALL=C systemctl status ModemManager.service
and it showed this:
● ModemManager.service - Modem Manager
Loaded: loaded (/usr/lib/systemd/system/ModemManager.service; enabled; preset: disabled)
Active: active (running) since Thu 2023-08-31 22:52:37 +03; 18min ago
Main PID: 440 (ModemManager)
Tasks: 4 (limit: 4572)
Memory: 11.0M
CPU: 17min 5.683s
CGroup: /system.slice/ModemManager.service
└─440 /usr/bin/ModemManager
أغسطس 31 22:55:45 souimasta ModemManager[440]: <info> [base-manager] port ttyUSB0 released by device '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3'
أغسطس 31 22:55:45 souimasta ModemManager[440]: <info> [base-manager] port wwp0s20u3i1 released by device '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3'
أغسطس 31 22:55:45 souimasta ModemManager[440]: <info> [device /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3] creating modem with plugin 'huawei' and '1' ports
أغسطس 31 22:55:45 souimasta ModemManager[440]: <warn> [plugin/huawei] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type
أغسطس 31 22:55:45 souimasta ModemManager[440]: <warn> [base-manager] couldn't create modem for device '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3': Failed to find>
أغسطس 31 23:01:05 souimasta ModemManager[440]: <info> [base-manager] port ttyUSB0 released by device '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3'
أغسطس 31 23:01:05 souimasta ModemManager[440]: <info> [base-manager] port wwp0s20u3i1 released by device '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3'
أغسطس 31 23:01:05 souimasta ModemManager[440]: <info> [device /sys/devices/pci0000:00/0000:00:14.0/usb3/3-3] creating modem with plugin 'huawei' and '1' ports
أغسطس 31 23:01:05 souimasta ModemManager[440]: <warn> [plugin/huawei] could not grab port cdc-wdm0: Cannot add port 'usbmisc/cdc-wdm0', unhandled port type
أغسطس 31 23:01:05 souimasta ModemManager[440]: <warn> [base-manager] couldn't create modem for device '/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3': Failed to find>
I don’t know - I don’t have such device so …
You really need learn how to search the internet for the device name or vendor id
https://sx.nix.dk/search?q=linux huawei modem 12d1:1506
The first result is
https://forums.linuxmint.com/viewtopic.php?t=248504
Another one from another search is
this is not the problem i am facing my modem IS recognized as networkcard but i can’t connect to it
Try with usb_modesetting - there is a few Huawei related settings
Unless I missed something that was said already
perhaps this will help you to set it up:
and, further (and linked from there)
There should be no PIN set on the SIM in the modem … is one point that might be important.
Work through the article, step by step.
installing usb_modeswitch
is likely needed
I have used modems in the distant past - but only ever either external devices connected through the serial port
or cards inserted into a slot in the laptop that worked with a telephone connection - never a modem that used a wireless connection / the mobile network.
Sorry not sure what you mean
but isn’t this only needed if my device is in storage mode?
Well mine IS connected by usb…
I guess this should be investigated a bit further… Indeed it has found the modem, but for what ever reason it cannot create a modem device from it. Failed to find>
what? This cut off because it uses a pager and the terminal was not big enough. That would be an important note.
I found for example this here: Huawei K5160 - Page 2 - USB_ModeSwitch
I don’t know if that is your model, only you can tell, but here it was solved by setting “DisableMBIMGlobal” to 1 in /etc/usb_modeswitch.conf
.
Probably ModemManager hangs there while still believing it is in storage mode, but it is in modem mode? Just a guess.
THANK YOU SO MUCH TO @linux-aarhus @megavolt @Nachlese i finally got it to work…
Weirdly it says that i am not connected to anything but i can access the internet.
Here’s how i did it:
1 - type in the terminal LC_ALL=C ip link
to get this:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether b0:83:fe:b6:fe:bf brd ff:ff:ff:ff:ff:ff
4: wwp0s20u6i1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN mode DEFAULT group default qlen 1000
link/ether 00:1e:10:1f:00:00 brd ff:ff:ff:ff:ff:ff
here wwp0s20u6i1
is my modem.
make sure it is up by typing sudo ip link set <your device> up
2 - type sudo dhcpcd <your device>
to be honest not sure what exactly this does ( if somebody knows please tell me ) but it made me connect although my network manager shows that i am not connected
thank you all once again
If I understand your device, it is essentially a mobile hotspot that you have connect via USB. If that is the case, you must disable ModemManager, otherwise ModemManager thinks your device is an acutal modem when in fact it is just an access point.
If ModemManager service is running, this will cause the system to think the USB device is a modem, like a DSL modem, or something to that effect.
Check to see if the service is running:
sudo systemctl status ModemManager
If it is running, temporarily disable using:
sudo systemctl stop ModemManager
If it fixes the issue, disable it from starting at boot:
sudo systemctl disable ModemManager
To start the service again
sudo systemctl start ModemManager
I turned it off but still can’t connect to my device.