systemctl hibernate - 执行时崩溃

systemctl hibernate - 执行时崩溃

systemctl hibernate或任何类似的东西(即挂起和混合睡眠)都会导致 PC 在调用时崩溃。当被调用时,它首先正确执行所有脚本system-sleep,然后注销所有非 root 用户,之后屏幕变为空白,PC 崩溃。电源按钮仍然发光,但在这种状态下电脑无法恢复;每次发生这种情况我都必须按住电源按钮6秒强行关闭它。此后电脑完全正常启动,并在登录通知管理器时告诉我systemctl hibernate completed succesfully。调用free -m告诉我交换文件完全是空的。

我不确定这个问题的发生是由于交换文件不正确,还是 systemctl 在尝试挂起 PC 内存进行交换之前就崩溃了。考虑到通知告诉我 systemctl 成功执行,我认为这可能是前者,我不确定为什么它会崩溃但电脑会关闭。

我已经使用手动设置了我的交换文件教程,之后重启多次。我之前尝试过使用交换分区,结果相同。

我的 fstab 文件如下所示:

/dev/mapper/fedora_auditorium--hg--dock--1--156-root /     ext4    defaults        1 1
UUID=947C-7EF0          /boot/efi                          vfat    umask=0077,shortname=winnt 0 0
/dev/mapper/fedora_auditorium--hg--dock--1--156-home /home ext4    defaults        1 2
/dev/mapper/fedora_auditorium--hg--dock--1--156-var  /var  ext4    defaults        1 2
/dev/sda5 /mnt/sda5 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/swapfile none swap defaults 0 0

这是输出的一部分lsblk -f

└─sda8  LVM2_member            r3BdLl-j14c-2V1r-BNVL-bMP8-3sCZ-AeT2Ae 
  ├─fedora_auditorium--hg--dock--1--156-swap
  │     swap                   aee59aff-f827-4038-83b7-3d19f2249257   

dmesg | grep swap

[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.1.10-200.fc22.x86_64 root=/dev/mapper/fedora_auditorium--hg--dock--1--156-root ro rd.lvm.lv=fedora_auditorium-hg-dock-1-156/swap rd.lvm.lv=fedora_auditorium-hg-dock-1-156/root rhgb quiet resume=/dev/mapper/fedora_auditorium--hg--dock--1--156-swap
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.1.10-200.fc22.x86_64 root=/dev/mapper/fedora_auditorium--hg--dock--1--156-root ro rd.lvm.lv=fedora_auditorium-hg-dock-1-156/swap rd.lvm.lv=fedora_auditorium-hg-dock-1-156/root rhgb quiet resume=/dev/mapper/fedora_auditorium--hg--dock--1--156-swap
[    0.506987] PM: Checking hibernation image partition /dev/mapper/fedora_auditorium--hg--dock--1--156-swap
[    4.074893] Adding 10485756k swap on /swapfile.  Priority:-1 extents:12 across:12886012k SSFS

dmesg | grep hiber

[    0.506987] PM: Checking hibernation image partition /dev/mapper/fedora_auditorium--hg--dock--1--156-swap
[    1.553385] systemd[1]: Created slice system-systemd\x2dhibernate\x2dresume.slice.
[    1.553390] systemd[1]: Starting system-systemd\x2dhibernate\x2dresume.slice.
[    3.078912] PM: Looking for hibernation image.

的一些输出dmesg | grep -i acpi。我没有把它们全部列出来;我得到了一些我认为可能有助于回答这个问题的内容:

[    0.141326] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150410/hwxface-580)
[    0.141335] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150410/hwxface-580)
[    0.141342] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20150410/hwxface-580)
[    0.141355] ACPI: (supports S0 S4 S5)
[    0.141356] ACPI: Using IOAPIC for interrupt routing
[    0.141392] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.142937] ACPI: Power Resource [PG00] (on)
[    0.143284] ACPI: Power Resource [PG01] (on)
[    0.143598] ACPI: Power Resource [PG02] (on)
[    0.155912] ACPI: Power Resource [FN00] (off)
[    0.155983] ACPI: Power Resource [FN01] (off)
[    0.156043] ACPI: Power Resource [FN02] (off)
[    0.156101] ACPI: Power Resource [FN03] (off)
[    0.156158] ACPI: Power Resource [FN04] (off)
[    0.156935] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-3e])
[    0.156940] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[    0.157378] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME AER PCIeCapability]
[    0.157379] acpi PNP0A08:00: FADT indicates ASPM is unsupported, using BIOS configuration
[    0.158209] pci 0000:00:14.0: System wakeup disabled by ACPI
[    0.158514] pci 0000:00:1c.0: System wakeup disabled by ACPI
[    0.158663] pci 0000:00:1c.3: System wakeup disabled by ACPI
[    0.159500] pci 0000:01:00.0: System wakeup disabled by ACPI
[    0.161586] pci 0000:02:00.0: System wakeup disabled by ACPI

[……依此类推,直到……]

[    0.158209] pci 0000:00:14.0: System wakeup disabled by ACPI
[    0.158514] pci 0000:00:1c.0: System wakeup disabled by ACPI
[    0.158663] pci 0000:00:1c.3: System wakeup disabled by ACPI
[    0.159500] pci 0000:01:00.0: System wakeup disabled by ACPI
[    0.161586] pci 0000:02:00.0: System wakeup disabled by ACPI

最后,这是一个仅仅复制的块,因为它说“警告”。不知道这是否与冬眠有关。

[    3.950838] ACPI Warning: \_SB_.IETM._ART: Return Package type mismatch at index 0 - found Integer, expected Reference (20150410/nspredef-297)
[    3.950844] ACPI: Invalid package element [0]: got number, expecting [R]
[    4.116950] ACPI Warning: SystemIO range 0x000000000000F040-0x000000000000F05F conflicts with OpRegion 0x000000000000F040-0x000000000000F04F (\_SB_.PCI0.SBUS.SMBI) (20150410/utaddress-254)

老实说dmesg,我不知道我在寻找什么,但也许 - 或者更确切地说,最有可能 - 这对更有经验的人看到这篇文章很有帮助。

相关内容