在我刚安装的 Ubuntu 18.04 上,我总是听到通常在连接 USB 棒或其他东西时出现的声音。好像有什么东西一直在连接和断开,每隔几分钟。我该如何检查那是什么?
答案1
在命令行上运行该dmesg
命令,查看内核日志。如果确实有设备连接和断开连接,则会记录在那里。
答案2
该sudo udevadm monitor
命令始终给我以下输出。
KERNEL[16948.130453] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
UDEV [16948.134911] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
KERNEL[17020.165977] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
UDEV [17020.170337] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
KERNEL[17023.290368] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
UDEV [17023.294819] change /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/ADP1 (power_supply)
后来我发现我的充电器输入有问题。断开充电器后,那个声音又出现了。