/usr/sbin/pm-hibernate这里也加了:HOOKS="……sata resume ……"
grub里也加了:sleep 5
resume=/dev/sda8
/etc/suspend.conf里也修改成:
可为什么还黑屏呢?resume device = /dev/sda8
/usr/sbin/pm-hibernate这里也加了:HOOKS="……sata resume ……"
grub里也加了:sleep 5
resume=/dev/sda8
可为什么还黑屏呢?resume device = /dev/sda8
然后再维基上找到:PM: Hibernation image not present or could not be loaded.
我是加了resume的,但把scsi去掉了……难道是这个原因?加上试试。(lvm2在我系统配置上是没有的)等结果……If your system still doesn't resume from hibernation, even after you've added the proper lines to your grub config files, your system may require the resume hook be added to the initrd image (even if you use LVM), otherwise the kernel will not resume. You can see if this is happening if the hibernation works fine, no error messages appear in /var/log/pm-suspend.log and the kernel logs the following message: "PM: Hibernation image not present or could not be loaded." To add the resume hook, edit /etc/mkinitcpio.conf as root and add resume to the HOOKS array:
HOOKS="base udev autodetect ide scsi sata lvm2 resume filesystems "
username ALL = (ALL) NOPASSWD: /usr/sbin/pm-hibernate
username ALL = (ALL) NOPASSWD: /usr/sbin/pm-suspend
待观察…………# gpasswd -a username power
#!/bin/sh
#
case "$1" in
suspend)
;;
resume)
sleep 5
vbetool dpms off
vbetool dpms on
;;
*) exit $NA
;;
esac