如何调试特定内核从挂起唤醒时崩溃的原因?

如何调试特定内核从挂起唤醒时崩溃的原因?

我正在运行带有 3.x 系列内核的 Linux Mint 17。今天我记得推荐的内核升级已经搁置了几周,所以我认为它可能值得升级(在 Mint 中,系统更新根据重要性和稳定性分为 1-5 级,其中 1 是最重要或最稳定的)这些更新是 5)。

此次升级将我的系统从内核 3.13.0-139-generic 迁移到 linux-headers-3.13.0-149-generic。我在 VirtualBox 与窗口管理器交互方面遇到了一些长期存在的小问题,我隐约希望这能解决这些问题。然而,我很快注意到机器无法从睡眠中唤醒。

当我合上笔记本电脑的盖子时,机器似乎成功进入睡眠状态(只要适配器未插入,电源指示灯就会熄灭)。使用新内核时,打开笔记本电脑时,显示屏不会亮起,并且按下 Caps Lock 键不会影响按键上 LED 的状态。简而言之,这看起来像是一次非常严重的崩溃。我必须按住电源按钮关闭系统,然后再打开,才能再次使用机器。

然后,我尝试使用旧内核(通过在启动时按住 Esc,然后从 Grub 菜单中进行选择),这修复了它(暂时,无论如何,直到下一次系统重新启动)。

我想报告这个错误,或者确保它被报告。然而,从我得到的结果来看,搜索“挂起唤醒 Linux Mint 17”和类似的变体似乎不够具体。我希望能够通过找出问题所在(例如查看是否存在硬件驱动程序错误)来进一步确定问题。

我想像 syslog 和 dmesg 这样的东西在这里会有所帮助,但是我没有看到太多看起来像罪魁祸首的东西。这是我的系统日志的一部分,看起来记录了睡眠/唤醒事件:

May 25 21:24:44 jon-XPS13-9333 kernel: [  121.489960] Suspending console(s) (use no_console_suspend to debug)
May 25 21:24:44 jon-XPS13-9333 kernel: [  121.490642] wlan0: deauthenticating from 28:be:03:xx:xx:xx by local choice (reason=3)
May 25 21:24:44 jon-XPS13-9333 kernel: [  121.507089] cfg80211: Calling CRDA to update world regulatory domain
May 25 21:24:44 jon-XPS13-9333 kernel: [  121.507309] sd 2:0:0:0: [sda] Synchronizing SCSI cache
May 25 21:24:44 jon-XPS13-9333 kernel: [  121.509927] sd 2:0:0:0: [sda] Stopping disk
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.203071] PM: suspend of devices complete after 1711.072 msecs
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.219102] PM: late suspend of devices complete after 16.014 msecs
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.235145] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.267087] xhci_hcd 0000:00:14.0: System wakeup enabled by ACPI
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.283399] PM: noirq suspend of devices complete after 64.243 msecs
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.283836] ACPI: Preparing to enter system sleep state S3
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.284529] PM: Saving platform NVS memory
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.285057] Disabling non-boot CPUs ...
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.286339] kvm: disabling virtualization on CPU1
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.387156] smpboot: CPU 1 is now offline
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.387699] Broke affinity for irq 60
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.388709] kvm: disabling virtualization on CPU2
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.491238] smpboot: CPU 2 is now offline
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.491752] Broke affinity for irq 23
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.491754] Broke affinity for irq 56
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.491755] Broke affinity for irq 57
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.492762] kvm: disabling virtualization on CPU3
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.595317] smpboot: CPU 3 is now offline
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.597437] ACPI: Low-level resume complete
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.597500] PM: Restoring platform NVS memory
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.598008] Enabling non-boot CPUs ...
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.598044] x86: Booting SMP configuration:
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.598045] smpboot: Booting Node 0 Processor 1 APIC 0x1
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.610387] kvm: enabling virtualization on CPU1
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.612817] CPU1 is up
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.612836] smpboot: Booting Node 0 Processor 2 APIC 0x2
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.624985] kvm: enabling virtualization on CPU2
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.627356] CPU2 is up
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.627375] smpboot: Booting Node 0 Processor 3 APIC 0x3
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.639441] kvm: enabling virtualization on CPU3
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.641803] CPU3 is up
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.645965] ACPI: Waking up from system sleep state S3
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.813893] xhci_hcd 0000:00:14.0: System wakeup disabled by ACPI
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.861939] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.894081] PM: noirq resume of devices complete after 234.451 msecs
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.894287] PM: early resume of devices complete after 0.185 msecs
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.894375] usb usb2: root hub lost power or was reset
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.894377] usb usb3: root hub lost power or was reset
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.895481] xhci_hcd 0000:00:14.0: irq 56 for MSI/MSI-X
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.895533] mei_me 0000:00:16.0: irq 59 for MSI/MSI-X
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.895639] snd_hda_intel 0000:00:1b.0: irq 61 for MSI/MSI-X
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.895764] snd_hda_intel 0000:00:03.0: irq 62 for MSI/MSI-X
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.998226] dpm_run_callback(): pnp_bus_resume+0x0/0xa0 returns -19
May 25 21:24:44 jon-XPS13-9333 kernel: [  123.998227] PM: Device 00:06 failed to resume: error -19
May 25 21:24:44 jon-XPS13-9333 kernel: [  124.122152] usb 1-1: reset high-speed USB device number 2 using ehci-pci

dmesg 文件也没有看起来所有相关的东西 - 取消挂起是可见的,但没有错误。

为了能够查看错误是否已被记录,我还可以调查哪些其他事情?

(另外,我计划在某个时候升级到 Linux Mint 18.x,这有望解决这个问题,但短期内我可能只是将内核降级到旧的工作内核)。

相关内容