LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2012, 08:37 AM   #1
evtooms
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian
Posts: 14

Rep: Reputation: Disabled
Question How to "mute" kernel errors?


Hello

Every 5 or 10 seconds, I get a kernel error related to my PCMCIA Wireless Adapter.

Dump of the last line of /var/kern.log:
Code:
Jan  5 15:20:28 LAP-TRAVELMATE kernel: [ 1556.500188] phy0 -> rt2500pci_set_device_state: Error - Device failed to enter state 1 (-16)
I don't think this is a severe problem, as my wireless adapter works perfectly, but it is really annoying and prevents me to work outside of X, because of the error showing up frequently.

What do you think? Is there a simple way to troubleshoot this particular problem or should I just disable the display of errors (and if so how to do that)?

Thanks in advance,
eugene

Last edited by evtooms; 01-06-2012 at 10:44 AM. Reason: Title was not enough explicit
 
Old 01-07-2012, 08:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Sometimes the device driver has a setting for verbosity and if any 'modinfo [modulename]' should show. Else some modern Syslog replacements allow for filtering out messages. For Rsyslog a filter line would look like this:
Code:
:msg, contains, "Device failed to enter state" ~
or
Code:
:msg, contains, "rt2500pci_set_device_state" ~
 
1 members found this post helpful.
Old 01-07-2012, 06:56 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If you want to mute kernel messages from being sent to the ttys when not running X, "dmesg -n 1" should do it. The errors will still be written to the /var/log/kern.log (or wherever syslog sends them), but won't clutter up the console.
 
1 members found this post helpful.
Old 01-08-2012, 08:13 AM   #4
evtooms
LQ Newbie
 
Registered: Jul 2011
Distribution: Debian
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thank you btmiller and unSpawn for your helpful answers.

Indeed, "dmesg -n 1" did it (actually even -n 3) and provided a quick solution to the problem.

As lowering the general verbosity level muted the relevant errors as well, I will try to figure out how to set a filter asap. I have never used tools like rsyslogd but I have understood the idea from your answer (unSpawn) and I will read the doc as soon as I have the time.
 
  


Reply

Tags
asus, errors, kernel, pcmcia, wireless


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Device 00:0a failed to resume: error -19 samineru Linux - Newbie 1 10-06-2011 11:47 AM
error when trying to run airodump " (i0ctlsiocgifindex) failed no such device anthony_mack Linux - Newbie 4 02-25-2011 12:52 PM
Partially solved-broadcom b43 no mac phy0 error-broadcom tnrooster Linux - Wireless Networking 3 03-06-2008 11:44 AM
device sd13 failed to power up error son_t Solaris / OpenSolaris 4 09-28-2006 02:57 AM
lpadmin: add-printer (set device) failed: client-error-not-possible Peca Linux - Hardware 7 08-14-2004 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration