DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th August 2013
DaBSD DaBSD is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 46
Thanked 0 Times in 0 Posts
Default turn off error notifications

I'm using NetBSD 6.1. When there is an error (f.ex. network card inaccessible), a notification about it appears on console marked with green color, even when I'm typing login/password or working in 'vi'. How do I turn off these annoying notifications?
Reply With Quote
  #2   (View Single Post)  
Old 11th August 2013
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 595
Thanked 9 Times in 9 Posts
Default

There may be several ways to deal with the messages:
1) Turn off and ignore Portmap messages FAQ

2) Address the hardware issue. My attempts to use NetBSD with an atheros wireless network card generate frequent error messages regarding the device timing out. Setting
Code:
hw.ath0.txintrperiod=1
in /etc/sysctl.conf helps. You might want to either post your error messages or paste the message into your favorite search engine
Reply With Quote
  #3   (View Single Post)  
Old 11th August 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,156
Thanked 182 Times in 149 Posts
Default

From syslog.conf(5)
Code:
     # Log all kernel messages, authentication messages of
     # level notice or higher and anything of level err or
     # higher to the console.
     # Don't log private authentication messages!
     *.err;kern.*;auth.notice;authpriv.none  /dev/console
Put a '#' in front of the last line and restart syslogd
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #4   (View Single Post)  
Old 17th August 2013
DaBSD DaBSD is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 46
Thanked 0 Times in 0 Posts
Default

Thank you everyone for your advice! Sadly, neither recipe helped. The main message I'm getting is the following one which comes when my laptop has no LAN cable:

alc0: wathcdog timeout (missed link)

I commented both lines in /etc/syslog.conf:

#*.err;kern.*;auth.notice;authpriv.none /dev/console
#*.notice;auth.debug root

and nothing happened, the messages keep on appearing. I also put a line "hw.alc0.txintrperiod=1" to /etc/sysctl.conf, nothing changed either.

Of course I always can switch to a user account and enjoy myself there. But I'm using this NetBSD installation mostly for hacking the system (it's not my main OS) and sometimes stay under root for quite a while, so I need to know what's going wrong.
Reply With Quote
  #5   (View Single Post)  
Old 17th August 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,717
Thanked 214 Times in 189 Posts
Default

These are kernel messages. Changing syslog settings only affects what is logged, not what is presented to the console. So, switch to an alternate tty. The kernel will continue to post messages to the console, but you won't see them until you switch back to it.
Reply With Quote
  #6   (View Single Post)  
Old 26th August 2013
DaBSD DaBSD is offline
Fdisk Soldier
 
Join Date: Jan 2013
Posts: 46
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by jggimi View Post
These are kernel messages. Changing syslog settings only affects what is logged, not what is presented to the console. So, switch to an alternate tty. The kernel will continue to post messages to the console, but you won't see them until you switch back to it.
Thank you, this seems to be the only way to go so far. These notifications keep coming on tty1 no matter whether I'm logged as root or user. The other terminals are safe from it indeed, be it root or user.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to turn off the screen of my laptop? fender0107401 OpenBSD General 2 2nd April 2012 02:45 AM
Can't turn mixerctl all the way down claytonl OpenBSD General 5 17th February 2011 05:01 AM
obsd 4.6 on mbp turn of screen vdubjunkie OpenBSD General 0 4th April 2010 07:48 PM
Can't turn off laptop speaker GullibleJones OpenBSD General 5 22nd November 2008 03:40 AM
To Administrators: I am not getting any email notifications php111 Feedback and Suggestions 4 28th October 2008 01:17 PM


All times are GMT. The time now is 03:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick