Linux Mint keeps losing internet connection

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
africanlion

Linux Mint keeps losing internet connection

Post by africanlion »

This happens a lot and especially when i open a new app/program and the internet connection just disappears and i have to reboot

Please help
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.
User avatar
kc1di
Level 18
Level 18
Posts: 8146
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Linux Mint keeps losing internet connection

Post by kc1di »

Give us a little more info to work with.
type the following command in a terminal and post the output (in code tags please).

Code: Select all

inxi -Fxz
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608
africanlion

Re: Linux Mint keeps losing internet connection

Post by africanlion »

Code: Select all

System:    Host: darkchild101-RC522AA-ABU-SR1937UK-GB630 Kernel: 3.13.0-37-generic i686 (32 bit, gcc: 4.8.2) 
           Desktop: Cinnamon 2.6.13  Distro: Linux Mint 17.2 Rafaela
Machine:   System: Compaq Presario 061 product: RC522AA-ABU SR1937UK GB630 version: 0nx0411RE101ASTE200
           Mobo: Hewleet-Packard model: Asterope2 version: 1.0 Bios: American Megatrends version: 3.14 date: 05/22/2006
CPU:       Dual core Intel Pentium D CPU (-MCP-) cache: 2048 KB flags: (lm nx pae sse sse2 sse3 vmx) bmips: 12796.9 
           Clock Speeds: 1: 2400.00 MHz 2: 2400.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] RC410 [Radeon Xpress 200/1100] bus-ID: 01:05.0 
           X.Org: 1.15.1 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: 1280x1024@60.0hz 
           GLX Renderer: Gallium 0.4 on ATI RC410 GLX Version: 2.1 Mesa 10.1.3 Direct Rendering: Yes
Audio:     Card: Advanced Micro Devices [AMD/ATI] IXP SB4x0 High Definition Audio Controller 
           driver: snd_hda_intel bus-ID: 00:14.2 
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-37-generic
Network:   Card-1: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter 
           driver: 8139too ver: 0.9.28 port: e800 bus-ID: 02:05.0
           IF: eth0 state: down mac: <filter>
           Card-2: Ralink RT5370 Wireless Adapter driver: rt2800usb ver: 2.3.0 usb-ID: 001-004
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 250.1GB (23.9% used) 1: id: /dev/sda model: ST3250823A size: 250.1GB 
Partition: ID: / size: 229G used: 56G (26%) fs: ext4 ID: swap-1 size: 1.01GB used: 0.00GB (0%) fs: swap 
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 158 Uptime: 3 min Memory: 451.4/938.3MB Runlevel: 2 Gcc sys: 4.8.4 
           Client: Shell (bash 4.3.11) inxi: 1.9.17 
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint keeps losing internet connection

Post by JeremyB »

Also post results for

Code: Select all

iwconfig
zb21

Re: Linux Mint keeps losing internet connection

Post by zb21 »

I am having a similar problem of losing the connection using the same driver, rt5370. A difference seems to be that it happens intermittently without any user interaction.

Code: Select all

iwconfig
lo        no wireless extensions.

wlx7cdd90e0ba66  IEEE 802.11bgn  ESSID:"xxxxxx"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 18:1B:EB:F8:1B:53   
          Bit Rate=65 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=49/70  Signal level=-61 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:734  Invalid misc:357   Missed beacon:0

enp0s7    no wireless extensions.
My general question is what can an end user do when an update seems to cause a rock solid usb wifi device to intermittently lose connectivity other than reinstall 18.1 or perhaps 18.2?
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint keeps losing internet connection

Post by JeremyB »

Wifi power management causing issues

Code: Select all

sudo sed -i "s/wifi.powersave = 3/wifi.powersave = 2/g" /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Code: Select all

sudo systemctl restart network-manager.service
zb21

Re: Linux Mint keeps losing internet connection

Post by zb21 »

JeremyB wrote:Wifi power management causing issues

Code: Select all

sudo sed -i "s/wifi.powersave = 3/wifi.powersave = 2/g" /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Code: Select all

sudo systemctl restart network-manager.service
Thank you, JeremyB!
africanlion

Re: Linux Mint keeps losing internet connection

Post by africanlion »

JeremyB wrote:Wifi power management causing issues

Code: Select all

sudo sed -i "s/wifi.powersave = 3/wifi.powersave = 2/g" /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Code: Select all

sudo systemctl restart network-manager.service
Here is what i got when i ran those commands

Code: Select all

darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ sudo sed -i "s/wifi.powersave = 3/wifi.powersave = 2/g" /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
[sudo] password for darkchild101: 
sed: can't read /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf: No such file or directory
darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ sudo systemctl restart network-manager.service
sudo: systemctl: command not found
darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ 
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Linux Mint keeps losing internet connection

Post by Spearmint2 »

try this

Code: Select all

sudo system network-manager start
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
mr_raider
Level 7
Level 7
Posts: 1897
Joined: Sun Jun 20, 2010 9:50 am
Location: Montreal, QC

Re: Linux Mint keeps losing internet connection

Post by mr_raider »

He is using mint 17 which does not use systemd.
Image
africanlion

Re: Linux Mint keeps losing internet connection

Post by africanlion »

Spearmint2 wrote:try this

Code: Select all

sudo system network-manager start

Code: Select all

darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ sudo system network-manager start
[sudo] password for darkchild101: 
sudo: system: command not found
darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ sudo system network-manager start
sudo: system: command not found
darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ 
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Linux Mint keeps losing internet connection

Post by Spearmint2 »

Code: Select all

aptitude show network-manager
to see if it's installed. If not, do so.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
africanlion

Re: Linux Mint keeps losing internet connection

Post by africanlion »

Code: Select all

Package: network-manager                 
State: installed
Automatically installed: no
Version: 0.9.8.8-0ubuntu7.3
Priority: optional
Section: net
Maintainer: Ubuntu Core Dev Team <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Uncompressed Size: 2036 k
Depends: libc6 (>= 2.4), libdbus-1-3 (>= 1.0.2), libdbus-glib-1-2 (>= 0.88),
         libglib2.0-0 (>= 2.31.8), libgudev-1.0-0 (>= 146), libmm-glib0 (>=
         0.7.991), libnl-3-200 (>= 3.2.7), libnl-genl-3-200 (>= 3.2.7),
         libnl-route-3-200 (>= 3.2.7), libnm-glib4 (>= 0.9.8.0), libnm-util2 (>=
         0.9.6.0+git201212071413.8a9759a), libpolkit-gobject-1-0 (>= 0.99),
         libsoup2.4-1 (>= 2.26.1), libsystemd-login0 (>= 31), sysv-rc (>=
         2.88dsf-24) | file-rc (>= 0.8.16), lsb-base (>= 3.2-14), wpasupplicant
         (>= 0.7.3-1), dbus (>= 1.1.2), udev, isc-dhcp-client (>= 4.1.1-P1-4),
         iproute2, dnsmasq-base, policykit-1, iputils-arping
PreDepends: multiarch-support
Recommends: network-manager-pptp, network-manager-gnome |
            plasma-widget-networkmanagement | plasma-nm, ppp (>= 2.4.5),
            iptables, modemmanager, systemd-services, crda
Suggests: avahi-autoipd, python
Conflicts: connman
Breaks: network-manager-gnome (< 0.9), network-manager-kde (< 1:0.9),
        network-manager-openconnect (< 0.9), network-manager-openvpn (< 0.9),
        network-manager-pptp (< 0.9), network-manager-vpnc (< 0.9),
        plasma-widget-networkmanagement (< 0.9~), ppp (< 2.4.5)
Description: network management framework (daemon and userspace tools)
 NetworkManager is a system network service that manages your network devices
 and connections, attempting to keep active network connectivity when available.
 It manages ethernet, WiFi, mobile broadband (WWAN), and PPPoE devices, and
 provides VPN integration with a variety of different VPN services. 
 
 This package provides the userspace daemons and a command line interface to
 interact with NetworkManager. 
 
 Optional dependencies: 
 * ppp: Required for establishing dial-up connections (e.g. via GSM). 
 * avahi-autoipd: Used for IPv4LL, a protocol for automatic Link-Local IP
   address configuration.
Homepage: http://www.gnome.org/projects/NetworkManager/
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Linux Mint keeps losing internet connection

Post by Spearmint2 »

Code: Select all

sudo system network-manager start
sudo: system: command not found
You are using a version 17 and that command should have worked. I think you have a bad install. Was this installed recently? Did you check the sha256sum of the install ISO you downloaded?
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
africanlion

Re: Linux Mint keeps losing internet connection

Post by africanlion »

Spearmint2 wrote:

Code: Select all

sudo system network-manager start
sudo: system: command not found
You are using a version 17 and that command should have worked. I think you have a bad install. Was this installed recently? Did you check the sha256sum of the install ISO you downloaded?
No its been installed like 2 years or so
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Linux Mint keeps losing internet connection

Post by Spearmint2 »

I don't know what you did to lose it, maybe removed some package it was considered a dependency for and elected to have all those files removed too.

You need to reinstall it. It says it's installed, but maybe doing the reinstall will restore what's missing (dependencies) with it.

Code: Select all

sudo apt-get install network-manager
Or can do using the Package Manager instead.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
africanlion

Re: Linux Mint keeps losing internet connection

Post by africanlion »

Also the mouses freezes once every three times i use the computer and i have to reboot. I think maybe the install was a poor one. Is there a way of repairing it without a fresh install

Code: Select all

darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ sudo apt-get install network-manager
[sudo] password for darkchild101: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
network-manager is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 44 not upgraded.
darkchild101@darkchild101-RC522AA-ABU-SR1937UK-GB630 ~ $ 
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Linux Mint keeps losing internet connection

Post by Spearmint2 »

You can do a fresh install, or a dirty install, similar to when one installs windows on top of itself. It's your choice. Just make sure if you install it on top of itself, you backup your home profile to a FAT32 partition (avoids permission and owner problems later), then allow the dirty install to overwrite all files, make sure you use same user name on install, then be careful of what you add back into the profile folder. I would advise only adding one thing at a time in case something there cause the problem. That way if things go badly again when one is added back, you know where the problem was. Most would advise a clean install however from a known good ISO, an ISO that passed the sha256sum check.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
cdgoldin

Re: Linux Mint keeps losing internet connection

Post by cdgoldin »

JeremyB wrote: Sat Nov 11, 2017 8:20 am Wifi power management causing issues

Code: Select all

sudo sed -i "s/wifi.powersave = 3/wifi.powersave = 2/g" /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf

Code: Select all

sudo systemctl restart network-manager.service
Thank you very much. This solved my problem. But what does the first command (sudo sed...) actually do?
JeremyB
Level 21
Level 21
Posts: 13771
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint keeps losing internet connection

Post by JeremyB »

That disables Network Managers ability to enable wifi power management as it usually causes problems
Locked

Return to “Networking”