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.

I have a netbook with a wireless card that doesn't work out of the box in Ubuntu, and I was wondering if I could use any profiling tools to observe what the kernel is doing when it tries to enable the card.

I'm interested in figuring out what the problem is so I can have a stab at fixing it in the code rather than using a workaround such as ndiswrapper, and I'm currently trying to figure out where to begin.

I'm hoping to see something along the lines of this:

startingSoundCard() - Success
startingWirelessCard() - Failed
//A whole bunch of diagnostic data here
startingSomethingElse()

I know it won't be as easy or as simple as that, but you get the idea.

Bonus points if your suggestion is general purpose and can be used to generally observe the behaviour/output of the kernel.

share|improve this question
2  
Have you tried dmesg|tail? It prints the kernel ring buffer. also tail /var/log/syslog is useful too. –  Matt Oct 26 '11 at 17:01

1 Answer 1

up vote 3 down vote accepted

/var/log/syslog contains all general logging information, including what happens during boot.

It's quite large though so sifting through it can require some filtering.

Try running the command

cat /var/log/syslog | grep wlan0

Assuming wlan0 is the interface you are interested in, you can also try

cat /var/log/syslog | grep NetworkManager

To enable extra logging add these lines to your NetworkManager config file - /etc/NetworkManager/NetworkManager.conf

[logging]
level=DEBUG

For more information see man syslog, man NetworkManager

share|improve this answer

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.