I recently installed Arch Linux on a System76 Lemur Pro laptop. The installation seemed to complete successfully, but the console_loglevel
is set to the very high value of 15. The following command allowed me to draw this conclusion:
# cat /proc/sys/kernel/printk
15 4 1 4
The high console_loglevel
causes a flood of kernel messages to be printed to the console, which makes it barely usable. I figured out that I can temporarily change the console_loglevel
by running # echo 4 > /proc/sys/kernel/printk
.
But I have so far been unable to permanently change the console_loglevel
so it maintains its value after every boot. I've tried the following methods to permanently change it:
- creating a
/etc/sysctl.d/20-quiet-printk.conf
file with the contentskernel.printk = 4 4 1 4
and then runningsysctl -p /etc/sysctl.d/20-quiet-printk.conf
(ref1, ref2) - creating a
/etc/sysctl.conf
file with the contentskernel.printk = 4 4 1 4
(ref1, ref2) - adding
quiet loglevel=3
to theGRUB_CMDLINE_LINUX_DEFAULT
entry in/etc/default/grub
, and regenerating the GRUB configuration file usinggrub-mkconfig -o /boot/grub/grub.cfg
(ref1, ref2)
Unfortunately, none of these methods worked, which leads me to believe that there is some other factor at play which is setting the console_loglevel
to 15, and therefore overriding my settings above.
How can I determine what is setting the console_loglevel
?
# echo 4 > /proc/sys/kernel/printk
command automatically each time I boot. But I am trying to figure out what the root cause of this issue is, because this issue makes me suspicious that there is a larger problem going on. – Trevor Aug 08 '20 at 17:28