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: 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.
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
- If course, had I started
rsyslog, these messages would not go to the console, and got written in
/var/log/sysloginstead. 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.