Results 1 to 10 of 17

Thread: Wireless not connecting?

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    London
    Beans
    11
    Distro
    Kubuntu 8.04 Hardy Heron

    Wireless not connecting?

    Hi folks, I have a bit of a weird problem with my wireless connections on two machines.

    What's happening is that i'm trying to connect to a wireless network (my home one, which i've tried with and without encryption - makes no difference), and though wicd or wlassistant or network-manager all show my network, I just can't connect to them. Checking the output of the terminal after running /opt/wicd/gui.py from within it seems to show that i'm not getting an IP address, but even when I give myself one (192.168.1.234), I don't get any internet access.

    This all happens with the latest kernel - on my laptop I can go back to kernel version 2.4.20-16 using grub and wireless works fine, but as soon as I move up to the latest install on my laptop, it (wireless) just refuses to work.

    My desktop machine I suspect may have the same problem (since i'm using the same USB wireless adapter between the two of them), but I can't confirm it because my display drivers go very odd if I try and login with anything but the latest kernel.

    Here's a pastebin of the usual suspects taken from my desktop machine (which is more important to be wireless, since everyone else in the house seems to object to trailing lengths of Cat5...):

    http://pastebin.ubuntu.com/34837/

    I'm using an Asus WL-167g USB wireless adapter which I believe uses the rt2500 series of drivers.

    Thanks in advance for any help

  2. #2
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Wireless not connecting?

    First of all, what are eth1 and eth2 (and why don't you have eth0)? Are they both wired ethernet?

    That aside, wlan1 does appear to be functioning correctly insofar as it seems to be able to associate with your network. Does this command get you an IP:
    Code:
    sudo dhclient wlan1
    If that doesn't help, please post the output of these commands so that we can confirm which driver you're using. It could very well be the case that there's just a bug with the latest release of the driver:
    Code:
    lshw -C Network
    lsusb
    lspci -nn

  3. #3
    Join Date
    May 2008
    Location
    London
    Beans
    11
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Wireless not connecting?

    eth1 and eth2 are the two wired network adapters in my motherboard (an Asus board with an nVidia chipset that gives me two ethernet ports instead of the usual one) - I have no idea at all why I don't have an eth0 (or a wlan0, for that matter).

    Here's the output of sudo dhclient wlan1, run after Wicd had tried to connect. I see from looking at the last line that it's saying it has received no DHCP offers, which is odd - in windows, the same USB adapter works fine on exactly the same network.

    Code:
    craig@craigsdesktop:~$ sudo dhclient wlan1
    There is already a pid file /var/run/dhclient.pid with pid 134519072
    Internet Systems Consortium DHCP Client V3.0.6
    Copyright 2004-2007 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/
    
    wmaster0: unknown hardware address type 801
    wmaster0: unknown hardware address type 801
    Listening on LPF/wlan1/00:11:2f:6b:e9:70
    Sending on   LPF/wlan1/00:11:2f:6b:e9:70
    Sending on   Socket/fallback
    DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 8
    DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 21
    DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 2
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    Output from lshw -C Network (and sudo lshw -C Network):

    Code:
    craig@craigsdesktop:~$ lshw -C Network
    WARNING: you should run this program as super-user.
      *-network               
           description: Wireless interface
           physical id: 2
           logical name: wlan1
           serial: 00:11:2f:6b:e9:70
           capabilities: ethernet physical wireless
           configuration: broadcast=yes multicast=yes wireless=IEEE 802.11g
    craig@craigsdesktop:~$ sudo lshw -C Network
      *-network               
           description: Wireless interface
           physical id: 1
           logical name: wlan1
           serial: 00:11:2f:6b:e9:70
           capabilities: ethernet physical wireless
           configuration: broadcast=yes multicast=yes wireless=IEEE 802.11g
    Output from lsusb:

    Code:
    craig@craigsdesktop:~$ lsusb
    Bus 002 Device 005: ID 0b05:1706 ASUSTek Computer, Inc. WL-167G 802.11g Adapter [ralink]
    Bus 002 Device 002: ID 0d49:3200 Maxtor 
    Bus 002 Device 001: ID 0000:0000  
    Bus 001 Device 005: ID 046d:092e Logitech, Inc. 
    Bus 001 Device 004: ID 0dba:3000  
    Bus 001 Device 001: ID 0000:0000  
    craig@craigsdesktop:~$
    Output from lspci -nn:

    Code:
    craig@craigsdesktop:~$ lspci -nn
    00:00.0 Host bridge [0600]: nVidia Corporation C55 Host Bridge [10de:03a3] (rev a2)
    00:00.1 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03ac] (rev a1)
    00:00.2 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03aa] (rev a1)
    00:00.3 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03a9] (rev a1)
    00:00.4 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03ab] (rev a1)
    00:00.5 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03a8] (rev a2)
    00:00.6 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b5] (rev a1)
    00:00.7 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b4] (rev a1)
    00:01.0 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03ad] (rev a1)
    00:01.1 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03ae] (rev a1)
    00:01.2 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03af] (rev a1)
    00:01.3 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b0] (rev a1)
    00:01.4 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b1] (rev a1)
    00:01.5 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b2] (rev a1)
    00:01.6 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b3] (rev a1)
    00:02.0 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03b6] (rev a1)
    00:02.1 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03bc] (rev a1)
    00:02.2 RAM memory [0500]: nVidia Corporation C55 Memory Controller [10de:03ba] (rev a1)
    00:03.0 PCI bridge [0604]: nVidia Corporation C55 PCI Express bridge [10de:03b7] (rev a1)
    00:06.0 PCI bridge [0604]: nVidia Corporation C55 PCI Express bridge [10de:03b9] (rev a1)
    00:07.0 PCI bridge [0604]: nVidia Corporation C55 PCI Express bridge [10de:03bb] (rev a1)
    00:09.0 RAM memory [0500]: nVidia Corporation MCP55 Memory Controller [10de:0369] (rev a2)
    00:0a.0 ISA bridge [0601]: nVidia Corporation MCP55 LPC Bridge [10de:0360] (rev a3)
    00:0a.1 SMBus [0c05]: nVidia Corporation MCP55 SMBus [10de:0368] (rev a3)
    00:0b.0 USB Controller [0c03]: nVidia Corporation MCP55 USB Controller [10de:036c] (rev a1)
    00:0b.1 USB Controller [0c03]: nVidia Corporation MCP55 USB Controller [10de:036d] (rev a2)
    00:0d.0 IDE interface [0101]: nVidia Corporation MCP55 IDE [10de:036e] (rev a1)
    00:0e.0 IDE interface [0101]: nVidia Corporation MCP55 SATA Controller [10de:037f] (rev a3)
    00:0e.1 IDE interface [0101]: nVidia Corporation MCP55 SATA Controller [10de:037f] (rev a3)
    00:0e.2 IDE interface [0101]: nVidia Corporation MCP55 SATA Controller [10de:037f] (rev a3)
    00:0f.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI bridge [10de:0370] (rev a2)
    00:0f.1 Audio device [0403]: nVidia Corporation MCP55 High Definition Audio [10de:0371] (rev a2)
    00:11.0 Bridge [0680]: nVidia Corporation MCP55 Ethernet [10de:0373] (rev a3)
    00:12.0 Bridge [0680]: nVidia Corporation MCP55 Ethernet [10de:0373] (rev a3)
    00:13.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI Express bridge [10de:0376] (rev a3)
    00:14.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI Express bridge [10de:0374] (rev a3)
    00:15.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI Express bridge [10de:0374] (rev a3)
    00:16.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI Express bridge [10de:0378] (rev a3)
    00:17.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI Express bridge [10de:0375] (rev a3)
    00:18.0 PCI bridge [0604]: nVidia Corporation MCP55 PCI Express bridge [10de:0377] (rev a3)
    01:00.0 VGA compatible controller [0300]: nVidia Corporation G70 [GeForce 7600 GT] [10de:0391] (rev a1)
    04:0b.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. IEEE 1394 Host Controller [1106:3044] (rev c0)
    craig@craigsdesktop:~$

  4. #4
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Wireless not connecting?

    There do seem to be some strange things going on--for instance, I don't know why "lshw -C Network" only mentions your wireless device, not the ethernet as well. Normally it should mention all detected devices, whether they're currently in use or not.

    Anyway, since you do indeed have a Ralink card, one solution would be to compile the legacy Ralink drivers to replace the mac80211 ones (the ones that come by default in Ubuntu), which seem to be broken. The legacy drivers work just as well as the newer ones and tend to be more reliable. If you want to install the legacy driver for your card, run these commands (make sure you have a wired connection first):

    Code:
    sudo apt-get install rutilt build-essential
    wget http://rt2x00.serialmonkey.com/rt2500-cvs-daily.tar.gz
    tar -xzvf rt2570*
    cd rt2570*/Module
    make
    sudo make install
    sudo -s
    sudo -s
    echo 'blacklist rt2500usb' >> /etc/modprobe.d/blacklist
    echo 'blacklist rt2500pci' >> /etc/modprobe.d/blacklist
    echo 'blacklist rt61pci' >> /etc/modprobe.d/blacklist
    echo 'blacklist rt2x00pci' >> /etc/modprobe.d/blacklist
    echo 'blacklist rt2400pci' >> /etc/modprobe.d/blacklist
    echo 'blacklist rt2x00lib' >> /etc/modprobe.d/blacklist
    echo 'blacklist rt2x00usb' >> /etc/modprobe.d/blacklist
    exit
    This should fix the wireless. An important point to note is that you'll no longer be able to use Network Manager to connect; you'll have to use Rutilt, which will be available under System>Administration>Rutilt Wireless Manager.

    This will leave your mac80211 drivers intact--they'll just be blacklisted and ignored by the system--so you can easily switch back to them when you want, if the issue with the broken driver gets fixed later.

  5. #5
    Join Date
    Jul 2008
    Beans
    90
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Wireless not connecting?

    check your firewall if you have one .......

  6. #6
    Join Date
    May 2008
    Location
    London
    Beans
    11
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Wireless not connecting?

    pytheas22,

    I ran the commands as illustrated in your code box - it seems that it installed succesfully (at least, no errors were generated either while I was compiling them or blacklisting the rt2500 ones), along with rutilt.

    However, when I run rutilt (or sudo rutilt), I can't poll for wireless networks - it seems to start to, but before any networks appear the application seems to crash - the graphical window itself greys out and a dialogue box appears telling me the application has crashed and I have the option of cancelling or force quitting. Running from the terminal gives no information at all apart from 'Killed' when I force quit rutilt.

    Creating a profile with the settings I know are correct (and DHCP IP settings) and applying that, bypassing entirely the 'scanning for networks' stage doesn't seem to work - I click 'apply', and the utility seems to 'just sit there' - no console output, no disk activity, no wireless activity from the USB adapter's status light, either.

    jkid - do you mean a software firewall? If so, I don't think I have one installed - if I did, would the difference between wireless and wired connections make a difference to it? I'm writing this post on the machine in question through a cable, you see.

    Thanks for your help so far, guys

  7. #7
    Join Date
    Aug 2007
    Location
    Paris
    Beans
    5,538
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Wireless not connecting?

    hmmm, I'm not sure what's going on Rutilt. Could you please post the output of:
    Code:
    lsmod | grep rt
    so that we can be sure it's using the correct driver? Also, try rebooting your computer and see if that helps (you should have done this after compiling the new driver; sorry for forgetting to mention it in my instructions).

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
  •