Broadcast message from username@Desktop (Sun 1919-08-10 11:45:14 CST):
The system is going to reboot NOW!
[756.345947] watchdog: watchdog0: watchdog did not stop!
[756.472889] watchdog: watchdog0: watchdog did not stop!
每次我重新启动时都会发现这样的消息。
有什么办法可以消除这些消息吗?
我曾经有一个/etc/modprobe.d/watchdog.conf
并被列入黑名单:
blacklist iTCO_wdtblacklist
blacklist iTCO_vendor_support
但现在不行了
[firestar@ThinkPad ~]$ inxi -b
System:
Host: ThinkPad Kernel: 5.18.10-1-MANJARO arch: x86_64 bits: 64
Desktop: KDE Plasma v: 5.24.5 Distro: Manjaro Linux
Machine:
Type: Laptop System: LENOVO product: 20WKA000CD v: ThinkPad X13 Gen 2i
serial: <superuser required>
Mobo: LENOVO model: 20WKA000CD v: SDK0L77769 WIN
serial: <superuser required> UEFI: LENOVO v: N35ET47W (1.47 )
date: 05/13/2022
Battery:
ID-1: BAT0 charge: 54.7 Wh (100.0%) condition: 54.7/54.7 Wh (100.0%)
CPU:
Info: quad core 11th Gen Intel Core i7-1165G7 [MT MCP] speed (MHz):
avg: 897 min/max: 400/4700
Graphics:
Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] driver: i915 v: kernel
Device-2: IMC Networks Integrated RGB Camera type: USB driver: uvcvideo
Display: x11 server: X.Org v: 21.1.3 driver: X: loaded: modesetting
gpu: i915 resolution: 2560x1600~60Hz
OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 22.1.3
Network:
Device-1: Intel Ethernet I219-V driver: e1000e
Device-2: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi
Drives:
Local Storage: total: 953.87 GiB used: 29.01 GiB (3.0%)
Info:
Processes: 221 Uptime: 10m Memory: 15.35 GiB used: 2.68 GiB (17.5%)
Shell: Bash inxi: 3.3.19
答案1
您可以通过禁用看门狗来避免它们。列入黑名单还不够,您需要在启动时添加这两个内核参数:
nowatchdog nmi_watchdog=0
如果您使用grub
引导加载程序(最有可能),请添加以下行
/etc/default/grub
:
GRUB_CMDLINE_LINUX_DEFAULT="nowatchdog nmi_watchdog=0"
如果该行已存在,请添加两个参数。
之后执行:(
对于 Debian 和 Ubuntu 等衍生版本)
sudo update-grub2
(其他)
sudo grub-mkconfig -o /{path of grub.cfg file}
您不需要日常使用看门狗,无需担心禁用它。
如果您需要禁用广播消息,您还可以添加loglevel=3
(或降低,不推荐) το GRUB_CMDLINE_LINUX_DEFAULT
。它不会禁用广播,但控制台上显示的消息较少。