How to properly unplug/plug mobile broadband dongle?

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
marfig
Level 1
Level 1
Posts: 27
Joined: Wed Sep 23, 2015 2:02 pm

How to properly unplug/plug mobile broadband dongle?

Post by marfig »

Hello everyone.

Question:
How should I properly unplug my 3G mobile broadband USB dongle and not lose the ability to connect to the internet after I plug it back?

Mint: 17.2
Hardware: HUAWEI E173

Problem:
When I unplug the dongle and plug it back in, I can no longer see my Mobile Broadband connection on Network Settings. I can no longer connect through the Network applet in the taskbar. Furthermore, even after a system shutdown, I can no longer get access to Mobile Broadband.

Known workaround:
The only way I can recover my mobile broadband connection is, strangely enough, boot into Windows or into the Mint Live CD. After booting the computer back into Mint, I fnally can see my Mobile Broadband connection back and can access the internet.

Why this is bad:
I need to carry this dongle everyday with me to work. So it needs to be unplugged/plugged at least once a day. Another problem is that here in Angola mobile broadband services are of poor quality. Some days I am switched back to UMTS mode and need to unplug and plug the usb modem back on in order to reaquire HTPS mode after the ISP restores the service. This can happen several times in a day.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
marfig
Level 1
Level 1
Posts: 27
Joined: Wed Sep 23, 2015 2:02 pm

Re: How to properly unplug/plug mobile broadband dongle?

Post by marfig »

I'm adding the sys.log after a boot in which the USB stick isn't being recognized by Linux Mint, hoping you can help finding what the issue is.

I've trimmed it leaving only the parts I think may be of relevance. But I'm new to Linux. So let me know if there is anything more you need.
Sep 23 20:44:11 arch kernel: [ 6.533664] usb 2-1.2: new high-speed USB device number 5 using ehci-pci
Sep 23 20:44:11 arch kernel: [ 7.019362] usb 2-1.2: New USB device found, idVendor=12d1, idProduct=1c0b
Sep 23 20:44:11 arch kernel: [ 7.019369] usb 2-1.2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Sep 23 20:44:11 arch kernel: [ 7.019373] usb 2-1.2: Product: HUAWEI Mobile
Sep 23 20:44:11 arch kernel: [ 7.019376] usb 2-1.2: Manufacturer: HUAWEI
Sep 23 20:44:11 arch kernel: [ 13.597168] Adding 4190204k swap on /dev/sda6. Priority:-1 extents:1 across:4190204k FS
Sep 23 20:44:11 arch kernel: [ 13.869683] systemd-udevd[386]: starting version 204

[...]

Sep 23 20:44:11 arch kernel: [ 14.081178] snd_hda_intel 0000:01:00.1: Handle VGA-switcheroo audio client
Sep 23 20:44:11 arch kernel: [ 14.086824] ACPI Warning: SystemIO range 0x00000828-0x0000082f conflicts with OpRegion 0x00000800-0x0000084f (\PMRG) (20140424/utaddress-258)
Sep 23 20:44:11 arch kernel: [ 14.086828] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Sep 23 20:44:11 arch kernel: [ 14.086832] ACPI Warning: SystemIO range 0x00000530-0x0000053f conflicts with OpRegion 0x00000500-0x0000053f (\GPS1) (20140424/utaddress-258)
Sep 23 20:44:11 arch kernel: [ 14.086834] ACPI Warning: SystemIO range 0x00000530-0x0000053f conflicts with OpRegion 0x00000500-0x0000053f (\GPS0) (20140424/utaddress-258)
Sep 23 20:44:11 arch kernel: [ 14.086837] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Sep 23 20:44:11 arch kernel: [ 14.086838] ACPI Warning: SystemIO range 0x00000500-0x0000052f conflicts with OpRegion 0x00000500-0x0000053f (\GPS1) (20140424/utaddress-258)
Sep 23 20:44:11 arch kernel: [ 14.086840] ACPI Warning: SystemIO range 0x00000500-0x0000052f conflicts with OpRegion 0x00000500-0x0000053f (\GPS0) (20140424/utaddress-258)
Sep 23 20:44:11 arch kernel: [ 14.086843] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
Sep 23 20:44:11 arch kernel: [ 14.086863] lpc_ich: Resource conflict(s) found affecting gpio_ich
Sep 23 20:44:11 arch kernel: [ 14.104486] sound hdaudioC0D0: autoconfig: line_outs=4 (0x24/0x25/0x26/0x27/0x0) type:line

[...]

Sep 23 20:44:12 arch NetworkManager[832]: <info> NetworkManager (version 0.9.8.8) is starting...
Sep 23 20:44:12 arch NetworkManager[832]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
Sep 23 20:44:12 arch NetworkManager[832]: <info> WEXT support is enabled
Sep 23 20:44:12 arch NetworkManager[832]: <info> VPN: loaded org.freedesktop.NetworkManager.pptp
Sep 23 20:44:12 arch NetworkManager[832]: <info> DNS: loaded plugin dnsmasq

[...]

Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: init!
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: update_system_hostname
Sep 23 20:44:13 arch NetworkManager[832]: interface-parser: parsing file /etc/network/interfaces
Sep 23 20:44:13 arch NetworkManager[832]: interface-parser: finished parsing file /etc/network/interfaces
Sep 23 20:44:13 arch NetworkManager[832]: SCPluginIfupdown: management mode: unmanaged
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1c.7/0000:02:00.0/net/eth0, iface: eth0)
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1c.7/0000:02:00.0/net/eth0, iface: eth0): no ifupdown configuration found.
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/lo, iface: lo)
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration found.
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: end _init.
Sep 23 20:44:13 arch NetworkManager[832]: <info> Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
Sep 23 20:44:13 arch NetworkManager[832]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ofono: Acquired D-Bus service com.canonical.NMOfono
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ofono: init!
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ofono: end _init.
Sep 23 20:44:13 arch NetworkManager[832]: <info> Loaded plugin (null): (null)
Sep 23 20:44:13 arch NetworkManager[832]: Ifupdown: get unmanaged devices count: 0
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: (136427408) ... get_connections.
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ifupdown: (136427408) ... get_connections (managed=false): return empty list.
Sep 23 20:44:13 arch NetworkManager[832]: keyfile: parsing Unitel Default 1 ...
Sep 23 20:44:13 arch NetworkManager[832]: keyfile: read connection 'Unitel Default'
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ofono: (136470040) ... get_connections.
Sep 23 20:44:13 arch NetworkManager[832]: SCPlugin-Ofono: (136470040) connections count: 0
Sep 23 20:44:13 arch NetworkManager[832]: Ifupdown: get unmanaged devices count: 0
Sep 23 20:44:13 arch NetworkManager[832]: <info> monitoring kernel firmware directory '/lib/firmware'.
Sep 23 20:44:13 arch NetworkManager[832]: <info> WiFi enabled by radio killswitch; enabled by state file
Sep 23 20:44:13 arch NetworkManager[832]: <info> WWAN enabled by radio killswitch; enabled by state file
Sep 23 20:44:13 arch NetworkManager[832]: <info> WiMAX enabled by radio killswitch; enabled by state file
Sep 23 20:44:13 arch NetworkManager[832]: <info> Networking is enabled by state file
Sep 23 20:44:13 arch NetworkManager[832]: <warn> failed to allocate link cache: (-12) Object not found
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): carrier is OFF
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): new Ethernet device (driver: 'r8169' ifindex: 2)
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/0
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): bringing up device.

[...]

Sep 23 20:44:13 arch ntpdate[1043]: Can't find host ntp.ubuntu.com: Name or service not known (-2)
Sep 23 20:44:13 arch ntpdate[1043]: no servers can be used, exiting
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): preparing device.
Sep 23 20:44:13 arch NetworkManager[832]: <info> (eth0): deactivating device (reason 'managed') [2]
Sep 23 20:44:13 arch NetworkManager[832]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Sep 23 20:44:13 arch NetworkManager[832]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Sep 23 20:44:13 arch NetworkManager[832]: <info> urfkill disappeared from the bus

[...]

Sep 23 20:44:14 arch ModemManager[727]: <warn> Couldn't find support for device at '/sys/devices/pci0000:00/0000:00:1c.7/0000:02:00.0': not supported by any plugin
naik2902

Re: How to properly unplug/plug mobile broadband dongle?

Post by naik2902 »

marfig wrote:Hello everyone.

Question:
How should I properly unplug my 3G mobile broadband USB dongle and not lose the ability to connect to the internet after I plug it back?

Mint: 17.2
Hardware: HUAWEI E173

Problem:
When I unplug the dongle and plug it back in, I can no longer see my Mobile Broadband connection on Network Settings. I can no longer connect through the Network applet in the taskbar. Furthermore, even after a system shutdown, I can no longer get access to Mobile Broadband.

Known workaround:
The only way I can recover my mobile broadband connection is, strangely enough, boot into Windows or into the Mint Live CD. After booting the computer back into Mint, I fnally can see my Mobile Broadband connection back and can access the internet.

Why this is bad:
I need to carry this dongle everyday with me to work. So it needs to be unplugged/plugged at least once a day. Another problem is that here in Angola mobile broadband services are of poor quality. Some days I am switched back to UMTS mode and need to unplug and plug the usb modem back on in order to reaquire HTPS mode after the ISP restores the service. This can happen several times in a day.

the same problem here. i have my huawei usb tata indicom E1261. I tried xubuntu, mint xfce and cinamon mint. it detects my usb and connection is fine too. however internet drops every couple of hours and it fails to autoconnect. i kept autoconnect in edit settings but it doesnt work. also if i remove and reinsert my usb dongle then it fails to detects unless i log out or reboot.

but this bug doesnt exist on kubuntu kde edition or netrunner 16 kde distro. there it automatically redials within 5 sec if connection drops. even if i remove usb modem and put it back it quickly reconnects. my data connection remains on 24x7 without any trouble.

i dont know why dev are not fixing this on xfce and cinamon. i wanted to keep lighter distro but due to this bug i unistalled mint and switched to netrunner 16.
User avatar
Pierre
Level 21
Level 21
Posts: 13215
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: How to properly unplug/plug mobile broadband dongle?

Post by Pierre »

if in a windows environment, you would "safely remove" the dongle before removing it.
but in the Linux environment, there is no such facility.

it sounds as if the switch from the virtual-cd over to the 3g modem is failing.
in the Linux environment, try using the Sakis3g script to 'force switch' the change over to the 3g modem.
http://www.sakis3g.com/#howto
or
http://linuxconfig.org/mobile-broadband ... nd-sakis3g

this worked well on my E173 & later with my E3131 modem
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
naik2902

Re: How to properly unplug/plug mobile broadband dongle?

Post by naik2902 »

Pierre wrote:if in a windows environment, you would "safely remove" the dongle before removing it.
but in the Linux environment, there is no such facility.

it sounds as if the switch from the virtual-cd over to the 3g modem is failing.
in the Linux environment, try using the Sakis3g script to 'force switch' the change over to the 3g modem.
http://www.sakis3g.com/#howto
or
http://linuxconfig.org/mobile-broadband ... nd-sakis3g

this worked well on my E173 & later with my E3131 modem
i think i found the reason why it frequently disconnects. whenever usb dongle is connected the system tries to auto mount it as storage device and not modem. so i unselected all auto mount options in setting > removable storage devices. now there is no disconnect or drop in data connection since 8 hours overnight.
naik2902

[ SOLVED] : How to properly unplug/plug mobile broadband don

Post by naik2902 »

marfig wrote:Hello everyone.

Question:
How should I properly unplug my 3G mobile broadband USB dongle and not lose the ability to connect to the internet after I plug it back?

Mint: 17.2
Hardware: HUAWEI E173

Problem:
When I unplug the dongle and plug it back in, I can no longer see my Mobile Broadband connection on Network Settings. I can no longer connect through the Network applet in the taskbar. Furthermore, even after a system shutdown, I can no longer get access to Mobile Broadband.

Known workaround:
The only way I can recover my mobile broadband connection is, strangely enough, boot into Windows or into the Mint Live CD. After booting the computer back into Mint, I fnally can see my Mobile Broadband connection back and can access the internet.

Why this is bad:
I need to carry this dongle everyday with me to work. So it needs to be unplugged/plugged at least once a day. Another problem is that here in Angola mobile broadband services are of poor quality. Some days I am switched back to UMTS mode and need to unplug and plug the usb modem back on in order to reaquire HTPS mode after the ISP restores the service. This can happen several times in a day.

BELOW IS THE SIMPLE SOLUTION FOR THE PROBLEM . IT AUTORECONNECTS IF U UNPLUG AND REINSERT YOUR 3G MODEM AND ALSO STARTS YOUR CONNECTION AT BOOT. NO NEED FOR SAKIS3G.

I FOUND THIS IN SOME UBUNTU FORUM. IT WORKED VERY WELL FOR ME.

http://askubuntu.com/questions/82255/ho ... nd-on-boot

INSTRUCTIONS...

In a terminal,

sudo gedit /etc/rc.local

Now add this below line just above exit 0

(while :; do nmcli -t nm wwan on; sleep 1; done)&

Save the file and exit.
Locked

Return to “Networking”