Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I get started with debugging my wireless problem?

  • How can I tell whether or not Linux has recognized my wireless hardware at all?
  • What are the main programs/daemons associated with wireless connectivity?
  • Where are the log files for those programs?
  • Do those programs have debug modes that I can access?
  • How can I tell whether a bug is in a userspace program or in a driver?

Edit: This was originally a more complex question with other inquiries about wireless driver hacking and debugging. I have removed those bullet points and plan to create another question to cover them, possibly on Unix & Linux SE.

share|improve this question
1  
You really need to split these up into multiple questions, there's just too much to cover here in one question. –  Jorge Castro Feb 26 '13 at 0:08
    
@JorgeCastro, good idea. What do you suggest? User-land driver diagnostics and Intel driver hacking? –  InkBlend Feb 26 '13 at 5:01
    
askubuntu.com/questions/14008/… at least covers some, the rest you can probably ask seperate –  Jorge Castro Feb 26 '13 at 13:38
add comment

1 Answer

Behold the power of the terminal!

List PCI devices / wifi network relevant portion only

$ lspci -v | grep -iA 7 network
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000 [Condor Peak]
    Subsystem: Intel Corporation Centrino Wireless-N 1000 BGN
    Flags: bus master, fast devsel, latency 0, IRQ 43
    Memory at f0500000 (64-bit, non-prefetchable) [size=8K]
    Capabilities: <access denied>
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi

Look for correctly loading modules

$ lsmod | grep <your module>

In this case, the module is iwlwifi.

Show kernel messages related to your module

$ dmesg | grep <your module>

List hardware config for your network

$ sudo lshw -c network

Show and/or configure network interface(s)

$ ifconfig

Show and/or configure wireless interface(s)

$ iwconfig

Scan your network

$ iwlist scan

Network-manager configuration

$ nm-tool

Show switches for your wifi device

$ rfkill list all

If you want more detailed info/debug options you can run man <command> for each of them.

If you have wireless problems, post the output of these commands and we'll help you. Not all of them are necessary, but the more info the better.

For log files, check out the /var/log/ directory. The dmesg, boot and xorg.0.log files are generally the most useful ones, at least in my experience. For wifi stuff dmesg will do.

share|improve this answer
1  
+1 for the nice overview. Maybe a method might be nice here too. Something like step 1, step 2, .... –  don.joey Feb 28 '13 at 7:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.