Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Annoying log messages.

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
leyvi
l33t
l33t
Posts: 718
Joined: Fri Sep 08, 2023 1:22 pm

Annoying log messages.

  • Quote

Post by leyvi » Fri Nov 21, 2025 9:18 am

I'd like to clarify: this is entirely a matter of preference, my system works fine. On boot, I get prompted for the password needed to decrypt my root filesystem, and then my kernel tries to probe a bunch of USB devices and logs all the warnings and errors to the terminal I'm entering my password on. This is harmless (it's mostly just checking if my charging cable is actually a keyboard or a smartphone), but I don't like looking at those while I'm typing my password. I'd still like those messages to be logged somewhere, just in case. Is there a kernel argument for that?
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Nov 21, 2025 9:49 am

To disable kernel messages on the console try

Code: Select all

echo "kernel.printk = 1 4 1 7" | sudo tee /etc/sysctl.d/no-console-messages.conf
sudo sysctl -p /etc/sysctl.d/no-console-messages.conf
They are still logged in dmesg.
:)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Nov 21, 2025 11:17 am

leyvi,

What alamahant suggested is close but it will be too late for you.
/etc is on the root filesystem so cannot be read until after root is mounted.

However, most sysctls can be passed on the kernel command line too.
That will be early enough for you.
It will be somewhere in /usr/src/linux/Documentation/Admin-guide/kernel-parameters
Check the spelling, that's from memory.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
runem
n00b
n00b
Posts: 41
Joined: Fri Sep 08, 2006 3:36 pm
Contact:
Contact runem
Website

  • Quote

Post by runem » Fri Nov 21, 2025 12:03 pm

You could pass the option 'quiet' to the boot loader. That will silence most messages. It removes the Tux logo too, in case you have that configured.
Top
leyvi
l33t
l33t
Posts: 718
Joined: Fri Sep 08, 2023 1:22 pm

  • Quote

Post by leyvi » Sun Nov 23, 2025 2:54 pm

Will the loglevel option accomplish what I want?
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic