LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   wifi USB dongle "wlan0 no scan results" (https://www.linuxquestions.org/questions/linux-newbie-8/wifi-usb-dongle-wlan0-no-scan-results-4175434374/)

arijspieter 10-27-2012 10:41 AM

wifi USB dongle "wlan0 no scan results"
 
first of all, hello everyone! i'm a belgian student and i'm new to linux and new to this forum (but i am an experienced Windows tweaker)

I started with Debian Squeeze a few days ago and i already love it (minimal installation with XFCE)
The problem is that i want my wireless lan to work in debian, but it doesn't :(

My USB Wifi dongle: D-Link DWL-G122 (USB: 07D1:3C0F)
Debian wiki told me i needed the RT2870 driver so i went to this page and followed the steps: http://wiki.debian.org/rt2870sta

It now looks as if the adapter works as its light blinks and it is listed
- lsusb lists my wifi dongle correct
- iwconfig show it to (and it shows "managed access point: not associated"
- iwlist scanning returns no results as i said earlier...

anybody who can help me out? thanks in advance

floppy_stuttgart 10-29-2012 01:32 AM

First step: make an extensive posting here of diverse outputs.
Which outputs? look at "troubleshooting wireless networking" in the internet and you will find diverse pages with recommendations http://www.linuxhomenetworking.com/w...ess_Networking or http://www.ubuntugeek.com/how-to-tro...in-ubuntu.html or..
My first Idea would be: have you loaded all modules required? In TinyCoreLinux you would need wireless_tools.tcz, wireless-3.0.21-tinycore.tcz, firmware.tcz, libiw.tcz, wpa_supplicant.tcz, openssl-1.0.0.tcz
For the reason I never installed wifi on debian, I dont know what is needed. Have a look at the debian wiki. Here http://wiki.debian.org/de/WiFi.
Personally, I would load WICD: I had sucess with it on ubuntu.

arijspieter 10-29-2012 05:56 AM

thanks your help

unfortunately i have don't have a menu bar in the terminal so i can't copy anything from terminal in here (problem posted here: http://www.linuxquestions.org/questi...nu-4175434340/)

anyway, i installed debian squeeze as minimal as possible and then added the following packages:
xorg xfce4 synaptic gdebi wicd slim iceweasel geany wireless-tools firmware-ralink

as you can see wicd is installed and wireless-tools and firmware-ralink to
as soon as i've got a terminal menu (i never had one, still don't know why) i'll post the output of several commands

floppy_stuttgart 10-30-2012 01:44 AM

Post an output? use the ">" command sign.
In a terminal, make for example "dmesg". You can create the output in a file with "dmesg > dmesgfile.txt".
Then with "leafpad dmesgfile.txt" you can edit that file with leafpad.
This file can be putted onto an usb stick or send via a mail application (howto? this is another story..).
The file from the usb stick can be loaded on another PC.

arijspieter 10-30-2012 07:12 AM

1 Attachment(s)
ifconfig
Code:

eth0      Link encap:Ethernet  HWaddr 54:04:a6:da:5f:58 
          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)
          Interrupt:20 Memory:f6500000-f6520000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)

wlan0    Link encap:Ethernet  HWaddr f0:7d:68:61:03:ca 
          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)

iwconfig
Code:

wlan0    IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated  Tx-Power=8 dBm 
          Retry  long limit:7  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:on

lsusb
Code:

Bus 004 Device 009: ID d904:0003 
Bus 004 Device 006: ID 0b05:179c ASUSTek Computer, Inc.
Bus 004 Device 005: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 004 Device 003: ID 07d1:3c0f D-Link System AirPlus G DWL-G122 Wireless Adapter(rev.E) [Ralink RT2870]    <------------------- WIFI DONGLE
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

/etc/network/interfaces (i've tried changing this file without success)
Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

you can find dmesg in attachment (too long to post here)

floppy_stuttgart 10-30-2012 02:08 PM

with google "firmware requesting rt2870.bin" of your dmesg you find few indications.
here http://wiki.debian.org/rt2870sta say you should have at least the firmware-ralink 0.17 and...
Troubleshooting
You may be required to blacklist the in-tree rt2800usb driver to allow your device to be claimed by rt2870sta.
...
Here http://forums.opensuse.org/english/g...ng-11-2-a.html
here http://www.linuxquestions.org/questi...see-it-809590/
1. as root, edit the file "/etc/modprobe.d/blacklist.conf" and add the line "blacklist rt2800usb" to the end of the file.
2. turn your computer off and back on again. (shutdown and reboot, don't just yank the cord out!)
So, I think, blacklist in debian ? Had you done it? or not..?

arijspieter 10-30-2012 03:52 PM

thanks man! got it working now

i gave google another try with the dmesg output and i found a complete answer here: http://forums.debian.net/viewtopic.p...f5647&start=30
this is what i did
Code:

/etc/modprobe.d/blacklist-rt2800usb.conf
    blacklist rt2800usb

/etc/NetworkManager/NetworkManager.conf
    [main]
    plugins=ifupdown,keyfile

    [ifupdown]
    managed=true

Run this command as root:
    update-initramfs -u


floppy_stuttgart 11-02-2012 12:52 PM

Can you please put here the result of "lsmod | grep rt" here ?
I am having myself an issue with the debian testing version.. http://www.linuxquestions.org/questi...cd-4175435256/

arijspieter 11-11-2012 02:18 PM

i'm sorry about the late reply, copletely forgot about your question

anyway, i'm using wheezy now and everything works
here is the output you requested:

Code:

snd_virtuoso          34917  1
snd_oxygen_lib        32809  1 snd_virtuoso
snd_mpu401_uart        13507  1 snd_oxygen_lib
rt2800usb              17753  0
rt2x00usb              17679  1 rt2800usb
snd_rawmidi            23060  2 snd_seq_midi,snd_mpu401_uart
rt2800lib              43713  1 rt2800usb
rt2x00lib              38335  3 rt2800lib,rt2x00usb,rt2800usb
mac80211              192768  3 rt2x00lib,rt2800lib,rt2x00usb
cfg80211              137193  2 mac80211,rt2x00lib
iTCO_vendor_support    12704  1 iTCO_wdt
crc_ccitt              12347  1 rt2800lib
snd                    52850  13 snd_timer,snd_seq_device,snd_seq,snd_hda_codec,snd_pcm,snd_hwdep,snd_rawmidi,snd_hda_intel,snd_mpu401_uart,snd_oxygen_lib,snd_virtuoso,snd_hda_codec_hdmi
usbcore              128640  7 ehci_hcd,xhci_hcd,usbhid,ath3k,rt2x00usb,rt2800usb



All times are GMT -5. The time now is 06:53 AM.