hibernate-disk 命令无法休眠,且未产生任何错误或有用的调试输出

hibernate-disk 命令无法休眠,且未产生任何错误或有用的调试输出

运行后我看到的行为sudo hibernate-disk -v4是一堆输出,然后切换到控制台,打印几行,以“预分配图像内存......”结尾,然后切换回 X11 VT,计算机恢复正常运行。

这是标准输出:

hibernate-disk: Using implicit configuration file /etc/hibernate/disk.conf
hibernate-disk:Warning: Tuxonice binary signature file not found.
hibernate-disk: Trying method in ususpend-disk.conf...
hibernate-disk: Including configuration from common.conf
hibernate-disk: [01] Executing CheckLastResume ...
hibernate-disk: [01] Executing CheckRunlevel ...
hibernate-disk: [01] Executing LockFileGet ...
hibernate-disk: [01] Executing NewKernelFileCheck ...
hibernate-disk: [10] Executing EnsureUSuspendCapable ...
hibernate-disk: [11] Executing XHacksSuspendHook1 ...
hibernate-disk: [59] Executing RemountXFSBootRO ...
hibernate-disk: [89] Executing SaveKernelModprobe ...
Saved /proc/sys/kernel/modprobe is /sbin/modprobe
hibernate-disk: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
Module version for ipw2100 is 2
Module version for ipw2200 is 2
Module version for snd_bt_sco is
Module version for ndiswrapper is
Unloading blacklisted module mac80211 (and dependencies)
Unloading rtl8723ae ...
Removing modules with rmmod.
Unloading rtl_pci ...
Unloading rtlwifi ...
Unloading mac80211 ...
hibernate-disk: [95] Executing XHacksSuspendHook2 ...
xhacks: changing console from 7 to 15
hibernate-disk: [98] Executing CheckRunlevel ...
hibernate-disk: [99] Executing DoUSuspend ...
hibernate-disk: Running /usr/sbin/s2disk ...
hibernate-disk: [90] Executing ModulesLoad ...
Loading module rtl8723ae (from auto)...
Loading module rtl_pci (from auto)...
Loading module rtlwifi (from auto)...
Loading module mac80211 (from auto)...
hibernate-disk: [89] Executing RestoreKernelModprobe ...
hibernate-disk: [85] Executing XHacksResumeHook2 ...
xhacks: changing console back to 7
hibernate-disk: [70] Executing ClockRestore ...
hibernate-disk: [59] Executing RemountXFSBootRW ...
hibernate-disk: [11] Executing XHacksResumeHook1 ...
hibernate-disk: [01] Executing NoteLastResume ...
hibernate-disk: [01] Executing LockFilePut ...

这是 stdout 和 stderr 一起(大):http://pastebin.com/AWDt5xZn

以下是休眠期间的 dmesg 输出:

[196345.773202] wlan1: deauthenticating from c8:d7:19:8c:78:9f by local choice (reason=3)
[196345.839413] cfg80211: Calling CRDA to update world regulatory domain
[196345.845045] cfg80211: World regulatory domain updated:
[196345.845053] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[196345.845057] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[196345.845088] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[196345.845092] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[196345.845095] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[196345.845099] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[196346.158150] Syncing filesystems ... done.
[196346.165319] Freezing user space processes ... (elapsed 0.002 seconds) done.
[196346.167703] PM: Marking nosave pages: [mem 0x0009d000-0x000fffff]
[196346.167741] PM: Marking nosave pages: [mem 0xcaee2000-0xcaee8fff]
[196346.167775] PM: Marking nosave pages: [mem 0xcb6a8000-0xcb919fff]
[196346.167821] PM: Marking nosave pages: [mem 0xdb2d1000-0xdb358fff]
[196346.167856] PM: Marking nosave pages: [mem 0xdb4b6000-0xdbffefff]
[196346.167945] PM: Marking nosave pages: [mem 0xdc000000-0xffffffff]
[196346.168625] PM: Basic memory bitmaps created
[196346.168688] PM: Preallocating image memory... 
[196356.699599] PM: Basic memory bitmaps freed
[196356.699620] Restarting tasks ... done.
[196356.715564] video LNXVIDEO:00: Restoring backlight state
[196356.876309] rtl8723ae: Using firmware rtlwifi/rtl8723fw_B.bin
[196356.883980] ieee80211 phy13: Selected rate control algorithm 'rtl_rc'
[196356.884220] rtlwifi: wireless switch is on
[196356.919095] systemd-udevd[26647]: renamed network interface wlan0 to wlan1
[196357.323242] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[196357.324443] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[196358.397233] wlan1: authenticate with c8:d7:19:8c:78:9f
[196358.413738] wlan1: send auth to c8:d7:19:8c:78:9f (try 1/3)
[196358.416989] wlan1: authenticated
[196358.418088] wlan1: associate with c8:d7:19:8c:78:9f (try 1/3)
[196358.421525] wlan1: RX AssocResp from c8:d7:19:8c:78:9f (capab=0x411 status=0 aid=4)
[196358.421844] wlan1: associated
[196358.421914] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

有什么想法吗?不知道接下来该怎么做。

答案1

我到处都看到过关于 Ubuntu/Linux 上的休眠功能总体上没有得到很好的支持,并且对于 Ubuntu 内核团队来说优先级较低。

我建议尝试其他替代方案,例如 tuxonice 补丁。这里有一个适用于 tuxonice 的 ppa:https://launchpad.net/~tuxonice/+archive/ubuntu/ppa

Tuxonice 是一组内核补丁,它提供了一种不同于原版内核的休眠方法。我以前使用 tuxonice 成功过,所以值得一试。祝你好运!

答案2

Linux 内核文档针对挂起/休眠问题的调试过程。

您应该阅读完整的文档,但它的要点是......您应该反复尝试休眠的测试模式 - ,,,和-freezer从最不具侵入性的()开始,一直到最具侵入性的()。devicesplatformprocessorscorefreezercore

# echo <test mode> > /sys/power/pm_test
# echo platform > /sys/power/disk
# echo disk > /sys/power/state

从您的日志中我怀疑问题可能与 ACPI 有关 - 似乎一切都正常,直到 CPU 必须暂停的那一刻 - 如果是这样,那么可能可以通过添加一些内核命令行选项来解决。

答案3

我没有安装休眠磁盘,但您可以尝试像这样休眠系统:

echo disk > /sys/power/state 

或者你可以暂停到低功耗模式(S3),使用以下命令在 Windows 上睡眠:

echo mem > /sys/power/state 

也许你必须先 sudo ..

希望有帮助,,

干杯,k

相关内容