Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: . (Read 890 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

.

.

Re: How Do I Suppress Console Output in TTY1?

Reply #1
Well, that seems to be a bug related to wireless managers which work with NetworkManager, wpa_supplicant in the first place. Actually, it spams messages not to tty1 directly, but to /dev/console. There is a recipe somewhere on the forum, but in a brief. Here how I overcame this issue.

First, install iwd and make NetworkManager use it instead of wpa_supplicant:

/etc/NetworkManager/conf.d/iwd.conf
Code: [Select]
[device]
wifi.backend=iwd

This feature is described as "experimental", but it works. Then, enable logging for iwd service:

/etc/runit/sv/iwd/log/run
Code: [Select]
#!/bin/sh
exec svlod -t /var/log/iwd
(Make this file executable, of course)

And then, enable iwd service as usual:
Code: [Select]
ln -sf /etc/runit/sv/iwd /run/runit/service

NetworkManager enables wpa_supplicant automatically, and you don't need to activate it, but iwd must be activated. With logging is enabled for iwd, no messages appear in /dev/console.

Re: How Do I Suppress Console Output in TTY1?

Reply #2
You need to pass this argument to the linux kernel on boot:

console=tty3

(or any other tty you wish except tty1)

To do this in grub edit the file  /etc/default/grub
Add at the end of the line:

GRUB_CMDLINE_LINUX_DEFAULT=" .... console=tty3"

finally run update-grub to apply the change


Re: How Do I Suppress Console Output in TTY1?

Reply #3
If you are using NetworkManager with wpa_supplicant:

For some reason systemd-free patch removes -s flag from wpa_supplicant service.

Try adding -s option to Exec path in /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service.