挂起之后黑屏是怎么回事?

其他Linux/Unix/BSD/OSX等发行版讨论
回复
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边

挂起之后黑屏是怎么回事?

#1

帖子 momova » 2012-07-03 11:53

HOOKS="……sata resume ……"
/usr/sbin/pm-hibernate这里也加了:
sleep 5
grub里也加了:
resume=/dev/sda8

/etc/suspend.conf里也修改成:
resume device = /dev/sda8
可为什么还黑屏呢?
我来了,我看见了,我征服了!
求勾搭,不管饭。
头像
枫叶饭团
帖子: 14683
注册时间: 2010-06-16 1:05
系统: Mac OS X
来自: Tencent
联系:

Re: 挂起之后黑屏是怎么回事?

#2

帖子 枫叶饭团 » 2012-07-03 11:57

因为人品。。。 :em06
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边

Re: 挂起之后黑屏是怎么回事?

#3

帖子 momova » 2012-07-03 12:36

枫叶饭团 写了:因为人品。。。 :em06
因为爱情,所以悲伤……
因为在人群里多看渣了一眼……
我来了,我看见了,我征服了!
求勾搭,不管饭。
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边

Re: 挂起之后黑屏是怎么回事?

#4

帖子 momova » 2012-07-05 9:55

看了下dmesg.log,里面有这样的内容:
PM: Hibernation image not present or could not be loaded.
然后再维基上找到:
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 "
我是加了resume的,但把scsi去掉了……难道是这个原因?加上试试。(lvm2在我系统配置上是没有的)等结果……
我来了,我看见了,我征服了!
求勾搭,不管饭。
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边

Re: 挂起之后黑屏是怎么回事?

#5

帖子 momova » 2012-07-05 10:41

还是不可以。
username ALL = (ALL) NOPASSWD: /usr/sbin/pm-hibernate
username ALL = (ALL) NOPASSWD: /usr/sbin/pm-suspend
# gpasswd -a username power
待观察…………
我来了,我看见了,我征服了!
求勾搭,不管饭。
头像
momova
帖子: 3381
注册时间: 2007-07-11 21:43
系统: archlinux
来自: 东江边

Re: 挂起之后黑屏是怎么回事?

#6

帖子 momova » 2012-07-05 10:43

失败……

creating a quirk in /etc/pm/sleep.d/ with this content (requires vbetool): :
#!/bin/sh
#
case "$1" in
suspend)
;;
resume)
sleep 5
vbetool dpms off
vbetool dpms on
;;
*) exit $NA
;;
esac
我来了,我看见了,我征服了!
求勾搭,不管饭。
回复