红联Linux门户
Linux帮助

Note about s2mem and s2disk under Linux

发布时间:2008-10-06 00:32:16来源:红联作者:Oiqetz
With the help of thinkwiki, s2mem cost a little time to work fine. If your computer resume immediately after s2mem, you should try:

modprobe -r uhci_hcd

modprobe -r ehci_hcd

This remove the modules which would awake the computer aumatically. Surely, after your computer resume, you must load these modules for your USB devices.

S2mem is easy and S2disk is not.

First, I got a error “write error: no such device” and i didn’t understand it . Which device is needed? Once I reboot the computer and found a message “Unable find swap signature”. Oh , I havn’t allocate swap space.

Such a stupid error. So

mkswap /dev/sda7

swapon -v /dev/sda7
OK, let me try

echo disk > /sys/power/state

Now, my computer can suspend. But when I press the power button to resume, it boot as like it never suspend. Why?”Unable find swap signature” reminds me. I should modify /etc/initramfs-tools/conf.d/resume. It should be like this: RESUME=/dev/sda7. Then

update-initramfs -u

OK, after these, my computer suspend and resume fine.
文章评论

共有 0 条评论