Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Ralink 3062 wifi speed problems

  1. #1
    Join Date
    Oct 2011
    Beans
    49

    Ralink 3062 wifi speed problems

    Hi.

    Since I've changed my DSL router by a Comtrend AR-5387UN, my wifi connection has slowed down dramatically.

    I've measured the speed in the same place with two laptops, one lubuntu and one windows 7, and the result was twice of my pc connection.

    My wifi card has a Ralink 3062 chipset and I'm using Ubuntu 12.04, which loads rt2800pci as driver module. For compatibility reasons with one of this laptops, the wifi works in 54g mode. I also notice that if the the wifi bandwith is fixed (12, 36, 48 or 54 for instance), and not automatic, it blocks the connection in my pc but not in the others.

    With same pc and connection bandwith but different router, I hadn't have these problems.


    Any idea/suggestion ? Thanks in advance!



    EDIT 1

    I've been playing around with every possible router configuration and disabling the pc's firewall, but the situation still persists. Definetely, I think it's something related with a poor driver implementation...
    Last edited by Jason Pierce; November 22nd, 2012 at 01:40 AM. Reason: Made some tests

  2. #2
    Join Date
    Mar 2010
    Location
    India
    Beans
    7,695
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink 3062 wifi speed problems

    Quote Originally Posted by Jason Pierce View Post
    My wifi card has a Ralink 3062 chipset and I'm using Ubuntu 12.04, which loads rt2800pci as driver module..
    Not sure about performance of current version of rt2800pci, but AFAIK, the proprietary rt3562sta driver works nicely with this chip. You can download it from Ralink's website : http://www.ralinktech.com/en/04_supp...ort.php?sn=501 (download size 800KB)

    Instructions to 'build' the driver are in the package (Readme_Sta_PCI). However, here's a more comprehensive set of instructions by MooPi (first post) : http://ubuntuforums.org/showthread.php?t=1608095
    Please note that the link given in that post has been changed. Correct one is the one I gave above.
    Last edited by varunendra; November 22nd, 2012 at 05:00 PM.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  3. #3
    Join Date
    Oct 2011
    Beans
    49

    Re: Ralink 3062 wifi speed problems

    Thanks!! Problem is solved. Now the signal is always near 100% and the speed is fine.

    But.... My syslog is polluted with this messages although I've blacklisted old modules. Could this be related to my conky script trying to get wireless stats?? I've removed all previous "WLAN0" entries in script by "RA0" in order to get proper stats with new module.


    Code:
    Nov 22 17:29:19 altair kernel: [  295.179406] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:19 altair kernel: [  295.179414] MediaState is connected
    Nov 22 17:29:19 altair kernel: [  295.179417] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:19 altair kernel: [  295.179485] rt28xx_get_wireless_stats --->
    Nov 22 17:29:19 altair kernel: [  295.179488] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:19 altair kernel: [  295.179522] ===>rt_ioctl_giwrange
    Nov 22 17:29:20 altair kernel: [  296.180000] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:20 altair kernel: [  296.180006] MediaState is connected
    Nov 22 17:29:20 altair kernel: [  296.180008] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:20 altair kernel: [  296.180021] rt28xx_get_wireless_stats --->
    Nov 22 17:29:20 altair kernel: [  296.180023] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:20 altair kernel: [  296.180043] ===>rt_ioctl_giwrange
    Nov 22 17:29:21 altair kernel: [  297.180796] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:21 altair kernel: [  297.180805] MediaState is connected
    Nov 22 17:29:21 altair kernel: [  297.180808] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:21 altair kernel: [  297.181072] rt28xx_get_wireless_stats --->
    Nov 22 17:29:21 altair kernel: [  297.181077] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:21 altair kernel: [  297.181135] ===>rt_ioctl_giwrange
    Nov 22 17:29:22 altair kernel: [  298.181124] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:22 altair kernel: [  298.181131] MediaState is connected
    Nov 22 17:29:22 altair kernel: [  298.181134] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:22 altair kernel: [  298.181281] rt28xx_get_wireless_stats --->
    Nov 22 17:29:22 altair kernel: [  298.181286] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:22 altair kernel: [  298.181356] ===>rt_ioctl_giwrange
    Nov 22 17:29:22 altair kernel: [  298.244361] MediaState is connected
    Nov 22 17:29:22 altair kernel: [  298.244371] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:22 altair kernel: [  298.244374] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:22 altair kernel: [  298.244388] rt28xx_get_wireless_stats --->
    Nov 22 17:29:22 altair kernel: [  298.244391] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:23 altair kernel: [  299.181655] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:23 altair kernel: [  299.181662] MediaState is connected
    Nov 22 17:29:23 altair kernel: [  299.181665] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:23 altair kernel: [  299.181691] rt28xx_get_wireless_stats --->
    Nov 22 17:29:23 altair kernel: [  299.181695] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:23 altair kernel: [  299.181742] ===>rt_ioctl_giwrange
    Nov 22 17:29:24 altair kernel: [  300.182208] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:24 altair kernel: [  300.182215] MediaState is connected
    Nov 22 17:29:24 altair kernel: [  300.182218] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:24 altair kernel: [  300.182245] rt28xx_get_wireless_stats --->
    Nov 22 17:29:24 altair kernel: [  300.182248] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:24 altair kernel: [  300.182278] ===>rt_ioctl_giwrange
    Nov 22 17:29:25 altair kernel: [  301.182571] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:25 altair kernel: [  301.182580] MediaState is connected
    Nov 22 17:29:25 altair kernel: [  301.182584] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:25 altair kernel: [  301.182791] rt28xx_get_wireless_stats --->
    Nov 22 17:29:25 altair kernel: [  301.182795] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:25 altair kernel: [  301.182827] ===>rt_ioctl_giwrange
    Nov 22 17:29:26 altair kernel: [  302.183382] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:26 altair kernel: [  302.183392] MediaState is connected
    Nov 22 17:29:26 altair kernel: [  302.183396] ==>rt_ioctl_giwmode(mode=2)
    Nov 22 17:29:26 altair kernel: [  302.183430] rt28xx_get_wireless_stats --->
    Nov 22 17:29:26 altair kernel: [  302.183435] <--- rt28xx_get_wireless_stats
    Nov 22 17:29:26 altair kernel: [  302.183482] ===>rt_ioctl_giwrange
    Nov 22 17:29:27 altair kernel: [  303.184021] ==>rt_ioctl_giwfreq  13
    Nov 22 17:29:27 altair kernel: [  303.184032] MediaState is connected

  4. #4
    Join Date
    Mar 2010
    Location
    India
    Beans
    7,695
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink 3062 wifi speed problems

    Quote Originally Posted by Jason Pierce View Post
    Thanks!! Problem is solved. Now the signal is always near 100% and the speed is fine.
    Great !

    About the syslog messages, I can't say if it is due to conky-script or not, but let's make sure first there are no unnecessary drivers loaded. Please post outputs of -
    Code:
    lsmod
    cat /etc/modprobe.d/blacklist.conf
    And the relevant part(s) of your conky-script (or better, entire conky-script as a compressed zip file). Let me warn you in advance though - I don't have any experience with conky (only used it once with defaults, for testing purpose), nor have very deep understanding of scripts..., so can't say if I'd be able to conclude anything from the script.. . But I'd like to try.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  5. #5
    Join Date
    Oct 2011
    Beans
    49

    Re: Ralink 3062 wifi speed problems

    Ok. I'm on it!


    lsmod

    Code:
    Module                  Size  Used by
    pci_stub               12622  1 
    vboxpci                23200  0 
    vboxnetadp             13382  0 
    vboxnetflt             23441  0 
    vboxdrv               287082  3 vboxpci,vboxnetadp,vboxnetflt
    bnep                   18281  2 
    rfcomm                 47604  0 
    parport_pc             32866  0 
    bluetooth             180104  10 bnep,rfcomm
    ppdev                  17113  0 
    binfmt_misc            17540  1 
    ip6t_LOG               16974  4 
    xt_hl                  12521  6 
    ip6t_rt                12558  3 
    nf_conntrack_ipv6      13906  7 
    nf_defrag_ipv6         13368  1 nf_conntrack_ipv6
    ipt_REJECT             12576  1 
    ipt_LOG                12919  5 
    snd_hda_codec_hdmi     32474  5 
    snd_hda_codec_realtek   224173  1 
    xt_limit               12711  12 
    xt_tcpudp              12603  23 
    xt_addrtype            12713  4 
    snd_hda_intel          33773  7 
    xt_state               12578  14 
    snd_hda_codec         127706  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
    ip6table_filter        12815  1 
    ip6_tables             27864  3 ip6t_LOG,ip6t_rt,ip6table_filter
    snd_hwdep              13668  1 snd_hda_codec
    nf_conntrack_netbios_ns    12665  0 
    nf_conntrack_broadcast    12589  1 nf_conntrack_netbios_ns
    snd_pcm                97188  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
    snd_seq_midi           13324  0 
    joydev                 17693  0 
    usbhid                 47199  0 
    hid                    99592  1 usbhid
    uas                    18180  0 
    nvidia              11257276  50 
    nf_nat_ftp             12704  0 
    nf_nat                 25891  1 nf_nat_ftp
    nf_conntrack_ipv4      19716  9 nf_nat
    nf_defrag_ipv4         12729  1 nf_conntrack_ipv4
    snd_rawmidi            30748  1 snd_seq_midi
    snd_seq_midi_event     14899  1 snd_seq_midi
    nf_conntrack_ftp       13452  1 nf_nat_ftp
    snd_seq                61896  2 snd_seq_midi,snd_seq_midi_event
    nf_conntrack           81926  8 nf_conntrack_ipv6,xt_state,nf_conntrack_netbios_ns,nf_conntrack_broadcast,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp
    i915                  473298  1 
    snd_timer              29990  2 snd_pcm,snd_seq
    iptable_filter         12810  1 
    ip_tables              27473  1 iptable_filter
    x_tables               29846  13 ip6t_LOG,xt_hl,ip6t_rt,ipt_REJECT,ipt_LOG,xt_limit,xt_tcpudp,xt_addrtype,xt_state,ip6table_filter,ip6_tables,iptable_filter,ip_tables
    snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq
    drm_kms_helper         46978  1 i915
    drm                   241921  2 i915,drm_kms_helper
    mei                    41616  0 
    snd                    78855  22 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
    soundcore              15091  1 snd
    snd_page_alloc         18529  2 snd_hda_intel,snd_pcm
    i2c_algo_bit           13423  1 i915
    rt3562sta             990799  1 
    r8169                  62099  0 
    w83627ehf              38805  0 
    mac_hid                13253  0 
    psmouse                97443  0 
    serio_raw              13211  0 
    hwmon_vid              12827  1 w83627ehf
    coretemp               13525  0 
    video                  19596  1 i915
    lp                     17799  0 
    parport                46562  3 parport_pc,ppdev,lp


    /etc/modprobe.d/blacklist.conf

    Code:
    # This file lists those modules which we don't want to be loaded by
    # alias expansion, usually so some other driver will be loaded for the
    # device instead.
    
    # evbug is a debug tool that should be loaded explicitly
    blacklist evbug
    
    # these drivers are very simple, the HID drivers are usually preferred
    blacklist usbmouse
    blacklist usbkbd
    
    # replaced by e100
    blacklist eepro100
    
    # replaced by tulip
    blacklist de4x5
    
    # causes no end of confusion by creating unexpected network interfaces
    blacklist eth1394
    
    # snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
    # hardware on its own (Ubuntu bug #2011, #6810)
    blacklist snd_intel8x0m
    
    # Conflicts with dvb driver (which is better for handling this device)
    blacklist snd_aw2
    
    # causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
    blacklist i2c_i801
    
    # replaced by p54pci
    blacklist prism54
    
    # replaced by b43 and ssb.
    blacklist bcm43xx
    
    # most apps now use garmin usb driver directly (Ubuntu: #114565)
    blacklist garmin_gps
    
    # replaced by asus-laptop (Ubuntu: #184721)
    blacklist asus_acpi
    
    # low-quality, just noise when being used for sound playback, causes
    # hangs at desktop session start (Ubuntu: #246969)
    blacklist snd_pcsp
    
    # ugly and loud noise, getting on everyone's nerves; this should be done by a
    # nice pulseaudio bing (Ubuntu: #77010)
    blacklist pcspkr
    
    # EDAC driver for amd76x clashes with the agp driver preventing the aperture
    # from being initialised (Ubuntu: #297750). Blacklist so that the driver
    # continues to build and is installable for the few cases where its
    # really needed.
    blacklist amd76x_edac
    
    # Driver de control remoto (chip Realtek) que se carga para el lector de
    # tarjetas inteligentes, provocando que no sea identificado correctamente.
    blacklist mceusb
    
    # Drivers no propietarios de la tarjeta wifi (Ralink 3062) que no funcionan
    # correctamente
    blacklist rt2800pci
    blacklist rt2800lib
    blacklist rt2x00pci
    blacklist rt2x00lib

    And the conkyscript as a compressed file.
    Last edited by Jason Pierce; January 9th, 2013 at 06:47 PM.

  6. #6
    Join Date
    Mar 2010
    Location
    India
    Beans
    7,695
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink 3062 wifi speed problems

    Outputs look solid !
    I'll take a look at the conkyscript to see if I can find something there. Shall post back with results.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  7. #7
    Join Date
    Oct 2011
    Beans
    49

    Re: Ralink 3062 wifi speed problems

    I've disabled the conky script at boot up, but messages are still appearing. So... this might not be the guilty.

  8. #8
    Join Date
    Mar 2010
    Location
    India
    Beans
    7,695
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink 3062 wifi speed problems

    I've disabled the conky script at boot up, but messages are still appearing
    Even after a restart ? I was about to ask you to try the same. But if conky is not runnning, please post following outputs -
    Code:
    ifconfig
    cat /etc/udev/rules.d/70-persistent-net.rules
    replace 70-... with whatever number your persistent-net.rules file has.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

  9. #9
    Join Date
    Oct 2011
    Beans
    49

    Re: Ralink 3062 wifi speed problems

    ifconfig

    Code:
    eth0      Link encap:Ethernet  direcciónHW xx:xx:xx:xx:xx:xx  
              ACTIVO DIFUSIÓN MULTICAST  MTU:1500  Métrica:1
              Paquetes RX:0 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:1000 
              Bytes RX:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupción:48 Dirección base: 0x4000 
    
    lo        Link encap:Bucle local  
              Direc. inet:127.0.0.1  Másc:255.0.0.0
              Dirección inet6: ::1/128 Alcance:Anfitrión
              ACTIVO BUCLE FUNCIONANDO  MTU:16436  Métrica:1
              Paquetes RX:1694 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:1694 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:0 
              Bytes RX:151439 (151.4 KB)  TX bytes:151439 (151.4 KB)
    
    ra0       Link encap:Ethernet  direcciónHW xx:xx:xx:xx:xx:xx  
              Direc. inet:192.168.1.2  Difus.:192.168.1.255  Másc:255.255.255.0
              Dirección inet6: fe80::222:f7ff:fe29:25e7/64 Alcance:Enlace
              ACTIVO DIFUSIÓN FUNCIONANDO MULTICAST  MTU:1500  Métrica:1
              Paquetes RX:567633 errores:0 perdidos:0 overruns:0 frame:0
              Paquetes TX:338203 errores:0 perdidos:0 overruns:0 carrier:0
              colisiones:0 long.colaTX:1000 
              Bytes RX:763416654 (763.4 MB)  TX bytes:42563017 (42.5 MB)
              Interrupción:16


    cat /etc/udev/rules.d/70-persistent-net.rules

    Code:
    # This file was automatically generated by the /lib/udev/write_net_rules
    # program, run by the persistent-net-generator.rules rules file.
    #
    # You can modify it, as long as you keep each rule on a single
    # line, and change only the value of the NAME= key.
    
    # PCI device 0x10ec:/sys/devices/pci0000:00/0000:00:1c.5/0000:05:00.0 (r8169)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
    
    # PCI device 0x1814:/sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/0000:04:00.0 (rt2800pci)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"


    By the way. I'm using Gnome's Network Manager and I've previously tried to compile the RT3562 driver without success because of WPA_SUPPLICANT options. So I came back with RT2800 until I decided asking here.

  10. #10
    Join Date
    Mar 2010
    Location
    India
    Beans
    7,695
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ralink 3062 wifi speed problems

    Quote Originally Posted by Jason Pierce View Post
    Code:
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:xx:xx:xx:xx:xx", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
    I don't know why, but I feel like I'm going to try curing the symptoms rather than the cause, let's see what happens.

    Try moving (rather than deleting) the "70-persistent-net.rules" file -
    Code:
    sudo mv /etc/udev/rules.d/70-persistent-net.rules ~/Desktop/
    then reboot > reconnect wireless and check if the file is regenerated -
    Code:
    ls -1 /etc/udev/rules.d/
    If it is, recheck if it has correct logical name for wireless this time -
    Code:
    cat /etc/udev/rules.d/70-persistent-net.rules
    If it didn't help, maybe I could suggest something better after rebooting my brain (which means some sleep and fresh air..)
    By the way, I hope the original problem is solved permanently now (oh, but you'll have to recompile it after each kernel upgrade..!)

    Post back how it goes.
    Varun
    Help others by marking threads as [SOLVED], if they are. (See how)
    Wireless Script | Use Code Tags

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •