Page 1 of 1

[SOLVED] Extremely Slow WiFi

Posted: Wed Feb 15, 2017 10:18 pm
by mattzab
SOLUTION:
It works!
I disabled IPV6 and turned off Wi-Fi Power management. I also disabled 11n.
I found my solution here:
https://sites.google.com/site/easylinux ... s-internet

I'll quote it:
Speed up your wireless internet

9. For some wireless chipsets, a simple tweak is sufficient for increasing the speed and the connection quality of your wireless internet. Namely disabling the power management for the wireless chipset. The price you pay is obviously an increase in power consumption, although this increase isn't big.

You can do that as follows:

a. First find out if Ubuntu or Mint applies power management to your wireless chipset:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Type in the terminal:

Code: Select all

iwconfig
Press Enter.

You can then not only see the name for your wireless chipset (for example: wlp2s0), but also whether Power Management is on for it. When it's off, or when no mention is made of Power Management at all, you don't need to do anything.

b. When Power Management is on, proceed as follows.

In order to prevent typo's, copy/paste this line into the terminal (it's one line!):

Code: Select all

gksudo xed /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Press Enter.

Now a text file opens. In that text file, you see the following content:

[connection]
wifi.powersave = 3

Change 3 into 2.

Save the modified file and close it.

c. Reboot your computer.

d. Then check in the terminal, by the command iwconfig, whether Power Management for the wireless chipset is off now.

If so, you're done!

Speed up your Intel wireless chipset

10. If you have a (reasonably) modern wireless chipset from Intel, it'll run on the iwlwifi driver. If so, you'll probably be able to increase its speed noticeably, by turning on Tx AMPDU for it.

The purpose of AMPDU is to improve data transmission by aggregating or grouping together several sets of data. Thus it sharply reduces the amount of transmission overhead.

It used to be "on" by default in the iwlwifi driver. But several years ago, it was turned off because of stability issues on a few wifi chipsets. This problem category is, however, only a minority.

For turning it on, proceed like this:

a. First check whether your chipset runs on the iwlwifi driver:

Launch a terminal window.
(You can launch a terminal window like this: *Click*)

Use copy/paste to transfer this line into the terminal:

Code: Select all

lsmod | grep iwlwifi
Press Enter.

Does the terminal output contain the word iwlwifi (in red letters)? If so, proceed with the next step.

b. Use copy/paste to transfer the following blue line (it's one line!) to the terminal. Don't type it: it's too easy to make typing errors....

Code: Select all

echo "options iwlwifi 11n_disable=8" | sudo tee /etc/modprobe.d/iwlwifi11n.conf
Press Enter and submit your password. Note that your password will remain entirely invisible, not even asterisks will show, which is normal.

c. Reboot your computer.

d. Finally, check your new wireless speed, for example on speedtest.net.

Has your wifi become unstable? Then undo the iwlwifi hack as described below (item 9.1).

Problems? Then undo it like this

10.1. Does the iwlwifi hack create stability issues for your wifi? Then undo it with the following terminal command:

Code: Select all

sudo rm -v /etc/modprobe.d/iwlwifi11n.conf
Then reboot. All should be then, as it was before.

Original complaint:
Hello,

I've just installed Linux Mint 18 Cinnamon, and the WiFi works but it's incredibly slow.

In looking at the Drivers in the System Settings, the only one available to use is for intel microcode, which is enabled.

Here's the output for my wifi-info (from the Ubuntu forums, I guess. I found it while searching these forums and reading several topics of people that had the same problems, but different hardware)

Code: Select all

########## wireless info START ##########

Report from: 15 Feb 2017 19:11 MST -0700

Booted last: 15 Feb 2017 00:00 MST -0700

Script from: 08 Jul 2016 02:16 UTC +0000

##### release ###########################

Distributor ID:	LinuxMint
Description:	Linux Mint 18.1 Serena
Release:	18.1
Codename:	serena

##### kernel ############################

Linux 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, pci=nocrs, vt.handoff=7

##### desktop ###########################

Cinnamon

##### lspci #############################


01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
	DeviceName: Realtek Lan Controller
	Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:1658]

07:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 1000 [Condor Peak] [8086:0084]
	DeviceName:  Condor Peak 1x2 bgn (MA)
	Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN [8086:1315]

##### lsusb #############################

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 5986:02ac Acer, Inc 
Bus 001 Device 003: ID 138a:0018 Validity Sensors, Inc. Fingerprint scanner
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################


##### rfkill ############################

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
1: hp-wifi: Wireless LAN
	Soft blocked: no
	Hard blocked: no

##### lsmod #############################

hp_wmi                 16384  0
sparse_keymap          16384  1 hp_wmi
iwldvm                233472  0
mac80211              737280  1 iwldvm
iwlwifi               200704  1 iwldvm
cfg80211              565248  3 iwlwifi,mac80211,iwldvm
wmi                    20480  1 hp_wmi

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eno1      Link encap:Ethernet  HWaddr 10:1f:74:0f:4d:65  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:c0:00:01  
          inet addr:172.16.131.1  Bcast:172.16.131.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:460 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:c0:00:08  
          inet addr:172.16.19.1  Bcast:172.16.19.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:459 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlo1      Link encap:Ethernet  HWaddr 8c:a9:82:b0:32:a6  
          inet addr:192.168.0.49  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::c4ff:1753:8268:8261/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:90174 errors:0 dropped:0 overruns:0 frame:0
          TX packets:65622 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:83117846 (83.1 MB)  TX bytes:35827068 (35.8 MB)

##### iwconfig ##########################

lo        no wireless extensions.

vmnet1    no wireless extensions.

eno1      no wireless extensions.

vmnet8    no wireless extensions.

wlo1      IEEE 802.11bgn  ESSID:"3584EJ"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 9C:97:26:1A:72:85   
          Bit Rate=14.4 Mb/s   Tx-Power=14 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=70/70  Signal level=-37 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:123  Invalid misc:3848   Missed beacon:0


##### route #############################

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG    600    0        0 wlo1
172.16.19.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet8
172.16.131.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet1
192.168.0.0     0.0.0.0         255.255.255.0   U     600    0        0 wlo1

##### resolv.conf #######################

nameserver 127.0.1.1
search domain

##### network managers ##################

Installed:

	NetworkManager

Running:

root       962     1  0 18:03 ?        00:00:02 /usr/sbin/NetworkManager --no-daemon

##### NetworkManager info ###############

GENERAL.DEVICE:                         wlo1
GENERAL.TYPE:                           wifi
GENERAL.NM-TYPE:                        NMDeviceWifi
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        Centrino Wireless-N 1000 [Condor Peak] (Centrino Wireless-N 1000 BGN)
GENERAL.DRIVER:                         iwlwifi
GENERAL.DRIVER-VERSION:                 4.4.0-53-generic
GENERAL.FIRMWARE-VERSION:               39.31.5.1 build 35138
GENERAL.HWADDR:                         8C:A9:82:B0:32:A6
GENERAL.MTU:                            0
GENERAL.STATE:                          100 (connected)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.1/0000:07:00.0/net/wlo1
GENERAL.IP-IFACE:                       wlo1
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     Auto 3584EJ
GENERAL.CON-UUID:                       28ded2ad-a7e8-47bb-9431-6d8474281411
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/0
GENERAL.METERED:                        no (guessed)
CAPABILITIES.CARRIER-DETECT:            no
CAPABILITIES.SPEED:                     18 Mb/s
CAPABILITIES.IS-SOFTWARE:               no
WIFI-PROPERTIES.WEP:                    yes
WIFI-PROPERTIES.WPA:                    yes
WIFI-PROPERTIES.WPA2:                   yes
WIFI-PROPERTIES.TKIP:                   yes
WIFI-PROPERTIES.CCMP:                   yes
WIFI-PROPERTIES.AP:                     no
WIFI-PROPERTIES.ADHOC:                  yes
WIFI-PROPERTIES.2GHZ:                   yes
WIFI-PROPERTIES.5GHZ:                   no
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/{0}
CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   28ded2ad-a7e8-47bb-9431-6d8474281411 | Auto 3584EJ
IP4.ADDRESS[1]:                         192.168.0.49/24
IP4.GATEWAY:                            192.168.0.1
IP4.DNS[1]:                             192.168.0.1
IP4.DOMAIN[1]:                          domain
DHCP4.OPTION[1]:                        requested_ms_classless_static_routes = 1
DHCP4.OPTION[2]:                        requested_domain_search = 1
DHCP4.OPTION[3]:                        requested_host_name = 1
DHCP4.OPTION[4]:                        requested_time_offset = 1
DHCP4.OPTION[5]:                        requested_domain_name = 1
DHCP4.OPTION[6]:                        requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[7]:                        requested_broadcast_address = 1
DHCP4.OPTION[8]:                        requested_wpad = 1
DHCP4.OPTION[9]:                        requested_netbios_scope = 1
DHCP4.OPTION[10]:                       time_servers = 192.168.0.1
DHCP4.OPTION[11]:                       broadcast_address = 192.168.0.255
DHCP4.OPTION[12]:                       requested_interface_mtu = 1
DHCP4.OPTION[13]:                       requested_subnet_mask = 1
DHCP4.OPTION[14]:                       expiry = 1487213441
DHCP4.OPTION[15]:                       dhcp_message_type = 5
DHCP4.OPTION[16]:                       next_server = 0.0.0.0
DHCP4.OPTION[17]:                       requested_static_routes = 1
DHCP4.OPTION[18]:                       domain_name = domain
DHCP4.OPTION[19]:                       ip_address = 192.168.0.49
DHCP4.OPTION[20]:                       requested_domain_name_servers = 1
DHCP4.OPTION[21]:                       requested_routers = 1
DHCP4.OPTION[22]:                       requested_ntp_servers = 1
DHCP4.OPTION[23]:                       subnet_mask = 255.255.255.0
DHCP4.OPTION[24]:                       dhcp_lease_time = 3600
DHCP4.OPTION[25]:                       domain_name_servers = 192.168.0.1 192.168.0.1
DHCP4.OPTION[26]:                       requested_netbios_name_servers = 1
DHCP4.OPTION[27]:                       network_number = 192.168.0.0
DHCP4.OPTION[28]:                       routers = 192.168.0.1
DHCP4.OPTION[29]:                       dhcp_server_identifier = 192.168.0.1
IP6.ADDRESS[1]:                         fe80::c4ff:1753:8268:8261/64
IP6.GATEWAY:                            

GENERAL.DEVICE:                         eno1
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                         Realtek Semiconductor Co., Ltd.
GENERAL.PRODUCT:                        RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
GENERAL.DRIVER:                         r8169
GENERAL.DRIVER-VERSION:                 2.3LK-NAPI
GENERAL.FIRMWARE-VERSION:               
GENERAL.HWADDR:                         10:1F:74:0F:4D:65
GENERAL.MTU:                            1500
GENERAL.STATE:                          20 (unavailable)
GENERAL.REASON:                         2 (Device is now managed)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/net/eno1
GENERAL.IP-IFACE:                       
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     yes
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            yes
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               off
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: 

GENERAL.DEVICE:                         vmnet1
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                         
GENERAL.PRODUCT:                        
GENERAL.DRIVER:                         unknown
GENERAL.DRIVER-VERSION:                 
GENERAL.FIRMWARE-VERSION:               
GENERAL.HWADDR:                         00:50:56:C0:00:01
GENERAL.MTU:                            1500
GENERAL.STATE:                          10 (unmanaged)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/virtual/net/vmnet1
GENERAL.IP-IFACE:                       vmnet1
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     no
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            no
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               on
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: 
IP4.ADDRESS[1]:                         172.16.131.1/24
IP4.GATEWAY:                            
IP6.ADDRESS[1]:                         fe80::250:56ff:fec0:1/64
IP6.GATEWAY:                            

GENERAL.DEVICE:                         vmnet8
GENERAL.TYPE:                           ethernet
GENERAL.NM-TYPE:                        NMDeviceEthernet
GENERAL.VENDOR:                         
GENERAL.PRODUCT:                        
GENERAL.DRIVER:                         unknown
GENERAL.DRIVER-VERSION:                 
GENERAL.FIRMWARE-VERSION:               
GENERAL.HWADDR:                         00:50:56:C0:00:08
GENERAL.MTU:                            1500
GENERAL.STATE:                          10 (unmanaged)
GENERAL.REASON:                         0 (No reason given)
GENERAL.UDI:                            /sys/devices/virtual/net/vmnet8
GENERAL.IP-IFACE:                       vmnet8
GENERAL.IS-SOFTWARE:                    no
GENERAL.NM-MANAGED:                     no
GENERAL.AUTOCONNECT:                    yes
GENERAL.FIRMWARE-MISSING:               no
GENERAL.NM-PLUGIN-MISSING:              no
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     --
GENERAL.CON-UUID:                       --
GENERAL.CON-PATH:                       --
GENERAL.METERED:                        unknown
CAPABILITIES.CARRIER-DETECT:            no
CAPABILITIES.SPEED:                     unknown
CAPABILITIES.IS-SOFTWARE:               no
WIRED-PROPERTIES.CARRIER:               on
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: 
IP4.ADDRESS[1]:                         172.16.19.1/24
IP4.GATEWAY:                            
IP6.ADDRESS[1]:                         fe80::250:56ff:fec0:8/64
IP6.GATEWAY:                            


SSID                           BSSID              MODE   CHAN  FREQ      RATE       SIGNAL  BARS  SECURITY   ACTIVE  * 
CasetaDemo-AP                  4C:5E:0C:14:65:94  Infra  3     2422 MHz  54 Mbit/s  94      ▂▄▆█  --         no        
3584EJ                         9C:97:26:1A:72:85  Infra  11    2462 MHz  54 Mbit/s  74      ▂▄▆_  WPA2       yes     * 
CenturyLink4519                20:76:00:81:1A:65  Infra  11    2462 MHz  54 Mbit/s  37      ▂▄__  WPA1 WPA2  no        
xfinitywifi                    00:71:C2:F7:8B:BA  Infra  1     2412 MHz  54 Mbit/s  35      ▂▄__  --         no        
HOME-A664-2.4                  00:71:C2:F7:8B:B8  Infra  1     2412 MHz  54 Mbit/s  35      ▂▄__  WPA1 WPA2  no        
DIRECT-C1-HP ENVY 5540 series  DC:4A:3E:21:33:C2  Infra  1     2412 MHz  54 Mbit/s  25      ▂___  WPA2       no        

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########


Thanks ya'll. I look forward to getting this fixed and using LM as my primary OS. (I've just replaced windows- irrevocably)

Re: Extremely Slow WiFi

Posted: Thu Feb 16, 2017 4:03 am
by willieaames
I'm still quite the noob myself when it comes to Linux, but your problem seems like the same problem that I had.
Can you try opening a terminal (Ctrl+Alt+T) and then type in

Code: Select all

lspci | grep "Network"?
Then hit Enter, and it should print a line saying something with "Network controller: ".
It says "Broadcom" after that, for me. If that's the same for you, then the same fix which worked for me could work for you as well.

Re: [SOLVED] Extremely Slow WiFi

Posted: Thu Feb 16, 2017 10:06 pm
by mattzab
I've found a fix!

Thanks! I hope this fixes other people's slow Wi-Fi.

Re: [SOLVED] Extremely Slow WiFi

Posted: Sat Mar 20, 2021 8:36 am
by guwrt
this works for me :) on a old Acer Aspire. Linux Mint 19.3 64 bits Mate. Thanks for help.

Re: [SOLVED] Extremely Slow WiFi

Posted: Sat Mar 20, 2021 1:30 pm
by mattzab
Great! Glad my old post up there could help you out! Linux mint is what got me into Linux 100% and off dual booting. I've since switched to Arch, but I'm glad for everything along the way.

Re: [SOLVED] Extremely Slow WiFi

Posted: Thu Jun 10, 2021 10:11 am
by AMAN47
Speed Before was 4Mbps
After Speed is 24Mbps

Code: Select all

sudo modprobe -rv iwlmvm
sudo modprobe iwlwifi 11n_disable=1