Author Topic: [Ubuntu] Slow wifi connection - Ralink  (Read 7882 times)

0 Members and 1 Guest are viewing this topic.

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
[Ubuntu] Slow wifi connection - Ralink
« on: March 26, 2016, 07:55:37 am »
Hello,
total linux noob here. I have got problem with internet connection. I have laptop HP Probook 4540s and I get 5-10 Mbps max, but when I try on Windows 8 I have got 40-50 Mbps. I don't have idea where is the problem, I tried many solutions that I find on google, nothing works. Ubuntu version is 14.04 LTS.

Here is information about the wifi:

Code: [Select]
*-network               
       description: Wireless interface
       product: RT3290 Wireless 802.11n 1T/1R PCIe
       vendor: Ralink corp.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: wlan0
       version: 00
       serial: 54:35:30:61:3e:e9
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rt2800pci driverversion=4.2.0-34-generic firmware=0.37 ip=192.168.0.101 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:19 memory:d0610000-d061ffff


Thanks.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #1 on: March 26, 2016, 01:17:50 pm »
Does running these 3 commands in sequence make any diifference
Code: [Select]
sudo modprobe -r rt2800pci
then
Code: [Select]
sudo modprobe rt2800pci nohwcrypt=1
?

Be aware, this will NOT survive a reboot, so if you reboot you'll have to run those commands again .. but if it helps, we can make it permanent.

If it makes no difference, please post the output from:
Code: [Select]
iwconfig
« Last Edit: March 26, 2016, 01:19:56 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #2 on: March 26, 2016, 01:31:07 pm »
Hello,
after running these 2 commands, it disconnected me from the WIFI and I couldn't connect anymore.

Here is the output from the iwconfig:

Code: [Select]
eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"TP-LINK_B59046" 
          Mode:Managed  Frequency:2.452 GHz  Access Point: E8:94:F6:B5:90:46   
          Bit Rate=108 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=46/70  Signal level=-64 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:75  Invalid misc:56   Missed beacon:0

lo        no wireless extensions.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #3 on: March 26, 2016, 01:44:22 pm »
okay try this
Code: [Select]
echo "options rt2800pci nohwcrypt=1" | sudo tee /etc/modprobe.d/rt2800pci.conf
then REBOOT.

Now test wireless.



If that leaves you unable to connect, running:
Code: [Select]
sudo rm -v /etc/modprobe.d/rt2800pci.conf
then rebooting, should get you back to where you are now.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #4 on: March 26, 2016, 01:54:18 pm »
Now it is little bit better. It makes 15-20 Mbps, but on Windows is still 40-50 Mbps.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #5 on: March 26, 2016, 04:08:46 pm »
what's the output from
Code: [Select]
iwconfig
again ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #6 on: March 26, 2016, 04:13:24 pm »
Code: [Select]
eth0      no wireless extensions.

wlan0     IEEE 802.11bgn  ESSID:"TP-LINK_B59046" 
          Mode:Managed  Frequency:2.452 GHz  Access Point: E8:94:F6:B5:90:46   
          Bit Rate=108 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=44/70  Signal level=-66 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2744  Invalid misc:2102   Missed beacon:0

lo        no wireless extensions.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #7 on: March 26, 2016, 04:20:15 pm »
Where are you getting your figures of

15 - 20mbps from ?

as that output suggests you have a wireless link speed to your router of

Quote
Bit Rate=108 Mb/s

But the "Tx excessive retries" and  "Invalid misc" count has actually risen since we applied that "fix" .. so if I were you I'd remove the fix with:
Code: [Select]
sudo rm -v /etc/modprobe.d/rt2800pci.conf
then log off/on (or reboot)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #8 on: March 26, 2016, 04:38:44 pm »
I am testing it at speedtest.net

Windows:


Linux:

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #9 on: March 26, 2016, 05:14:23 pm »
Are these tests both on the same machine, or two different ones ?

Are they both full installs ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #10 on: March 26, 2016, 05:21:14 pm »
Are these tests both on the same machine, or two different ones ?

Are they both full installs ?

It's the same machine.
And they are full installs - I'm not using virtual machine - if that is the question.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #11 on: March 26, 2016, 05:27:08 pm »
Try setting IPv6 to "Ignore" in networkmanager.

and how do they compare when the tests are run using an ethernet cable rather than wireless ?
« Last Edit: March 26, 2016, 05:28:54 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #12 on: March 26, 2016, 05:47:25 pm »
With cable on Ubuntu: http://www.speedtest.net/my-result/5200157161 - everything is fine.

I wasn't able to find networkmanager - is this will do the job: http://askubuntu.com/questions/440649/how-to-disable-ipv6-in-ubuntu-14-04 ? (I think I disabled it, when I was searching for the problem from google, but I am not sure)

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17261
  • Karma: 436
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #13 on: March 26, 2016, 05:51:10 pm »
Networkmanager is an icon by your clock .. you should be able to right-click it and select "edit connections"

then select your wireless profile and click "Edit"

then on the IPv6 tab, change

Method: Ignore

then save the connection.

then log off/on.



But you can disable IPv6 altogether by your method if you wish



If no improvement, can you post the output from:
Code: [Select]
lspci -vnn | grep -i net
« Last Edit: March 26, 2016, 05:55:37 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline valkone

  • Jr. Member
  • **
  • Posts: 16
  • Karma: -1
  • I've just joined!
    • View Profile
    • Awards
Re: [Ubuntu] Slow wifi connection - Ralink
« Reply #14 on: March 26, 2016, 05:58:17 pm »
There is little improvement - http://www.speedtest.net/my-result/5200187692

Here is the output:
Code: [Select]
04:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290]
05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 07)

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal