Page 1 of 1

Linux Mint keeps losing internet connection

Posted: Wed Nov 01, 2017 12:05 pm
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

Re: Linux Mint keeps losing internet connection

Posted: Thu Nov 02, 2017 7:32 am
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

Re: Linux Mint keeps losing internet connection

Posted: Thu Nov 09, 2017 6:43 pm
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 

Re: Linux Mint keeps losing internet connection

Posted: Thu Nov 09, 2017 6:44 pm
by JeremyB
Also post results for

Code: Select all

iwconfig

Re: Linux Mint keeps losing internet connection

Posted: Fri Nov 10, 2017 7:09 pm
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?

Re: Linux Mint keeps losing internet connection

Posted: Sat Nov 11, 2017 8:20 am
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

Re: Linux Mint keeps losing internet connection

Posted: Sat Nov 11, 2017 1:32 pm
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!

Re: Linux Mint keeps losing internet connection

Posted: Tue Nov 21, 2017 7:50 pm
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 ~ $ 

Re: Linux Mint keeps losing internet connection

Posted: Tue Nov 21, 2017 9:03 pm
by Spearmint2
try this

Code: Select all

sudo system network-manager start

Re: Linux Mint keeps losing internet connection

Posted: Tue Nov 21, 2017 9:44 pm
by mr_raider
He is using mint 17 which does not use systemd.

Re: Linux Mint keeps losing internet connection

Posted: Wed Nov 22, 2017 7:22 pm
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 ~ $ 

Re: Linux Mint keeps losing internet connection

Posted: Wed Nov 22, 2017 7:45 pm
by Spearmint2

Code: Select all

aptitude show network-manager
to see if it's installed. If not, do so.

Re: Linux Mint keeps losing internet connection

Posted: Tue Nov 28, 2017 8:29 pm
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/

Re: Linux Mint keeps losing internet connection

Posted: Tue Nov 28, 2017 8:37 pm
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?

Re: Linux Mint keeps losing internet connection

Posted: Sun Dec 03, 2017 11:39 pm
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

Re: Linux Mint keeps losing internet connection

Posted: Mon Dec 04, 2017 1:21 am
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.

Re: Linux Mint keeps losing internet connection

Posted: Thu Dec 07, 2017 7:47 pm
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 ~ $ 

Re: Linux Mint keeps losing internet connection

Posted: Thu Dec 07, 2017 8:17 pm
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.

Re: Linux Mint keeps losing internet connection

Posted: Thu Aug 30, 2018 6:10 pm
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?

Re: Linux Mint keeps losing internet connection

Posted: Thu Aug 30, 2018 6:12 pm
by JeremyB
That disables Network Managers ability to enable wifi power management as it usually causes problems