0

I usually switch between Xorg and (framebuffer) text console a lot. But every time I switch to text console, I got a message like this on the text console:

acpid: client 7251[0:0] has disconnected

And every time I plug in a USB mouse, I got something like this on the text console:

udevd[27899]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1 3 11': No such file or directory

Of course, these messages are of trivial matters; but nevertheless, they ruined whatever that's displaying on the text mode screen; which is really, really annoying.

Using dmesg -D, dmesg -n alert, or even sysctl -w kernel.printk="0 4 0 3" don't seem to stop these messages from going into the console; as they are not kernel messages, but rather syslog messages.

As a single-user desktop system with no network service, I do not make use of syslog at all; so I disabled the syslog daemon (rsyslog) on startup to reduce the base number of unnecessary background processes that I have to glance over when running ps auxfww.

  • If course, had I started rsyslog, these messages would not go to the console, and got written in /var/log/syslog instead. But I want neither extra process nor extra log files that I don't read.

How do I stop these syslog messages from printing on the console (i.e. sending them to /dev/null), without running an actual syslog daemon?

Note: The machine in question is running Debian GNU/Linux-based system, Linux 3.2.x kernel, with classic SystemV init and BSD rc.d startup scripts.

  • I'm not sure if this helps, but you could try reassigning the console to a different tty. For example, one used to be able to run xterm -C and console messages would appear in it instead. The screen command has a config option console on to do this too. See man tty_ioctl for TIOCCONS. These days permissions on /dev/console make this more difficult. – meuh Sep 11 '19 at 19:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.