QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 654|回复: 0

内核2.6.10的FC3上的休眠笔记

[复制链接]
发表于 2005-3-21 18:16:05 | 显示全部楼层 |阅读模式
内核2.6.10-1.766或者2.6.10-1.760, 此处用的是2.6.10-1.766.
--------------------------- install kernel source ---------------------------------
rpm -ivh kernel-2.6.10-1.766_FC3.src.rpm
rpmbuild -bp --target=i686 /usr/src/redhat/SPECS/kernel-2.6.spec
mv /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/ /usr/src/
cd /usr/src/
ln -s linux-2.6.10 linux
cd linux-2.6.10
cp config/.kernel-2.6.10-i686.config ./.config
--------------------- patch and compile kernel source ------------------------
download http://www.suspend2.net/fedora/010-2.6.10-1.760_FC3-to-2.1.5.15-pre
download http://www.suspend2.net/fedora/990-2.6.10-1.760_FC3-to-2.1.5.15-post
download http://www.suspend2.net/downloads/all/software-suspend-2.1.5.15-for-2.6.10.tar.bz2
tar jxf software-suspend-2.1.5.15-for-2.6.10.tar.bz2 -C /usr/src/
cp 010-2.6.10-1.760_FC3-to-2.1.5.15-pre /usr/src/software-suspend-2.1.5.15-for-2.6.10/
cp 990-2.6.10-1.760_FC3-to-2.1.5.15-post /usr/src/software-suspend-2.1.5.15-for-2.6.10/
cd /usr/src/linux-2.6.10/
/usr/src/software-suspend-2.1.5.15-for-2.6.10/apply
make oldconfig
make menuconfig
make
make modules_install
make install
------------------------------------ initrd magic ------------------------------------
login as root
mkdir myinitrd
cd myinitrd
gzip -dc < /boot/initrd-2.6.10-prep.img | cpio -i
vi init
add "echo > /proc/software_suspend/do_resume" after mounting /proc system
find . | cpio -o -c | gzip -9 > /boot/initrd-2.6.10-prep.img
------------------------- GRUB kernel parameter --------------------------------
add "resume2=swap:/dev/hda3" --- /dev/hda3就是swap分区!
------------------------------ hibernate script -------------------------------------
download http://www.suspend2.net/downloads/all/hibernate-script-1.05.tar.gz
tar zxf hibernate-script-1.05.tar.gz -C /usr/src/
/usr/src/hibernate-script-1.05/install.sh
------------------------------------- sudoers -----------------------------------------
user            ALL=NOPASSWD: /usr/local/sbin/hibernate
--------------------------------------- acpi --------------------------------------------
/etc/acpi/events/sleep.conf:
event=button[/]sleep
action=sudo /usr/local/sbin/hibernate

可以到http://www.suspend2.net/fedora/和http://www.suspend2.net/HOWTO-3.html去看看.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-13 04:30 , Processed in 0.056708 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表