我在 lenovo x200 上运行最新的 arch + i3。唯一不起作用的是休眠。
我目前所做的:
GRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=Linux zswap.enabled=1 zswap.compressor=lz4 resume=/dev/disk/by-uuid/79abb13e-0fcf-47a4-bb0f-f3a461d385ee resume_offset=188416"
读完后将GRUB_CMDLINE_LINUX_DEFAULT 更改为: 拱门维基(我正在使用交换文件,因此需要添加“resume_offset”)在看到描述的错误后,将模块“mei_me”和“mei”列入黑名单在 Arch Wiki 中
休眠仍然不起作用。它似乎让 PC 进入睡眠状态,但启动后它就像正常启动一样,不会恢复硬盘上保存的任何内容。有什么提示吗?我检查了 dmesg 并发现:
[ 3.132571] PM: Checking hibernation image partition /dev/disk/by-uuid/79abb13e-0fcf-47a4-bb0f-f3a461d385ee
[ 3.132574] PM: Hibernation image not present or could not be loaded.
filefrag -v /swapfile 的输出:
Filesystem type is: ef53
File size of /swapfile is 3670016000 (896000 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 0: 188416.. 188416: 1:
1: 1.. 30719: 188417.. 219135: 30719: unwritten
2: 30720.. 40959: 219136.. 229375: 10240: unwritten
3: 40960.. 71679: 231424.. 262143: 30720: 229376: unwritten
4: 71680.. 102399: 262144.. 292863: 30720: unwritten
5: 102400.. 104447: 292864.. 294911: 2048: unwritten
6: 104448.. 135167: 296960.. 327679: 30720: 294912: unwritten
7: 135168.. 165887: 327680.. 358399: 30720: unwritten
8: 165888.. 196607: 358400.. 389119: 30720: unwritten
9: 196608.. 227327: 389120.. 419839: 30720: unwritten
10: 227328.. 258047: 419840.. 450559: 30720: unwritten
11: 258048.. 288767: 450560.. 481279: 30720: unwritten
12: 288768.. 319487: 481280.. 511999: 30720: unwritten
13: 319488.. 331775: 512000.. 524287: 12288: unwritten
14: 331776.. 362495: 612352.. 643071: 30720: 524288: unwritten
15: 362496.. 393215: 643072.. 673791: 30720: unwritten
16: 393216.. 423935: 673792.. 704511: 30720: unwritten
17: 423936.. 454655: 704512.. 735231: 30720: unwritten
18: 454656.. 485375: 735232.. 765951: 30720: unwritten
19: 485376.. 516095: 765952.. 796671: 30720: unwritten
20: 516096.. 538623: 796672.. 819199: 22528: unwritten
21: 538624.. 569343: 821248.. 851967: 30720: 819200: unwritten
22: 569344.. 600063: 851968.. 882687: 30720: unwritten
23: 600064.. 602111: 882688.. 884735: 2048: unwritten
24: 602112.. 632831: 886784.. 917503: 30720: 884736: unwritten
25: 632832.. 663551: 917504.. 948223: 30720: unwritten
26: 663552.. 694271: 948224.. 978943: 30720: unwritten
27: 694272.. 724991: 978944.. 1009663: 30720: unwritten
28: 724992.. 755711: 1009664.. 1040383: 30720: unwritten
29: 755712.. 763903: 1040384.. 1048575: 8192: unwritten
30: 763904.. 794623: 1128448.. 1159167: 30720: 1048576: unwritten
31: 794624.. 825343: 1159168.. 1189887: 30720: unwritten
32: 825344.. 856063: 1189888.. 1220607: 30720: unwritten
33: 856064.. 886783: 1220608.. 1251327: 30720: unwritten
34: 886784.. 895999: 1251328.. 1260543: 9216: last,unwritten,eof
/swapfile: 7 extents found
lsblk -f 的输出:
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs System-reserviert 4CFAF5F7FAF5DCE0
├─sda2 ntfs SYSTEM 701005C8100595EE
└─sda3 ext4 79abb13e-0fcf-47a4-bb0f-f3a461d385ee /
答案1
好的,找到解决方案:我忘记在“/etc/mkinitcpio.conf”中的钩子中添加“resume”,并使用“mkinitcpio -p linux”生成新的 ramdisk。Arch wiki 链接中有关挂起和休眠的所有内容均有说明(见上文)。