发布于2026-07-11 阅读(0)
扫一扫,手机访问
dmesg(全称 display message 或 driver message)是 Linux 系统里一个非常实用的命令——它能帮我们查看内核启动信息和运行时的各种状态。当硬件出问题、驱动不兼容时,翻翻 dmesg 日志往往能快速定位。下面列出一些常见的硬件故障提示,你可以对照自己的日志看看有没有类似情况。

内存相关错误
内存不足或分配失败是最常见的,典型的日志包括:
Memory cgroup out of memory: Kill processOut of memory: Kill processCannot allocate memoryMemory allocation failedCPU 相关错误
CPU 异常往往体现在中断处理上,比如:
CPU#0: Exception 0x80 (external interrupt) at ffffffff810a0000CPU#1: Exception 0x80 (external interrupt) at ffffffff810a0000CPU#2: Exception 0x80 (external interrupt) at ffffffff810a0000CPU#3: Exception 0x80 (external interrupt) at ffffffff810a0000磁盘相关错误
硬盘或 SSD 的 I/O 失败会留下类似这样的记录:
ata1.00: exception Emask 0x0 SAct 0x10 SErr 0x0 action 0x0sd 2:0:0:0: [sda] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSEsd 2:0:0:0: [sda] tag#1 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSEsd 2:0:0:0: [sda] tag#2 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE网络相关错误
网络不通或响应超时,dmesg 里会显示:
eth0: no IPv4 response from 192.168.1.1eth0: no linkwlan0: no IPv4 response from 192.168.1.1wlan0: no link显卡相关错误
Intel 核显或独显的初始化失败,通常会有类似:
[drm:intel_modeset_init [i915]] *ERROR* Failed to initialize modesetting for connector [drm:intel_modeset_init [i915]] *ERROR* Failed to initialize modesetting for connector [drm:intel_modeset_init [i915]] *ERROR* Failed to initialize modesetting for connector 其他硬件错误
一些外设(如触摸板、电源按钮、盖子开关)的检测信息也会出现在 dmesg 里:
input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input0input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input1input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input2input: Lid Switch as /devices/platform/lid.0/input/input3这些提示只是参考,实际故障还取决于具体的硬件型号、驱动版本和系统配置。遇到问题,最稳妥的做法是查阅对应硬件的官方文档,或者找有经验的人帮忙看看。
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
正版软件
正版软件
正版软件
正版软件
正版软件
1
2
3
7
8