Getting suspend working - Fedora 10 and EeePC
Post date: Feb 19, 2009 3:09:51 AM
I want to get suspend working so I moved to a 2.6.29 kernel to get it working (yes it works!).
so I grabbed the latest kernel sources and built my own kernel for 2.6.29.
Here is the base kernel files to get ... http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.tar.bz2
Here is the 2.6.29-rc4 patch files... http://kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.29-rc4.bz2
Uncompress both in the same dir (I used the /usr/src/kernels dir ) and do the following...
patch -p1 < ../patch-2.6.29-rc4
mv linux-2.6.28 linux-2.6.29-rc4
ln -s 2.6.29-rc4
Here are the steps in the build
You might need a few extra packages from yum to get everything building
sudo yum install gtk+-devel gtk2-devel qt3-devel libstdc++-devel gcc-c++ libglade2-devel libglade-devel
maybe others depending on your install (everything needed is in the yum repos)
To be honest... I actually don't 'run' my script. I use it a reference and step through the commands manually.
I then step through the commands....
gedit the Makefile and update the EXTRAVERSION to something you can identify with
- I used '-rc4-eeepc-tbg'
save and close (This extraversion gets automatically appended to the kernel files.)
At the 'make xconfig' step in the build sequence
- load my kernel .config (also attached in a post below) ,
- review and tweak it,
- save and move on.
it will get a working build.
The next step in my build script is OPTIONAL but recommended.
I keep a copy of my .configs in a separate dir as spec'd in my script.
Then follow the rest of the steps.
The 1st time I build, it usually doesn't work, because I missed a needed module in the xconfig step, But I think I got most correct, since everything is working!
I think I left USB-DEBUG message on - You might want to go into the xconfig for usb and turn it off. It fills the syslog.
The last step is to add the grub entries, here are mine (you will have to change based on your kernel name)
title My Fedora Console (2.6.29-rc4-eeepc-tbg)
kernel /bzImage-2.6.29-rc4-eeepc-tbg ro root=/dev/sda2 rhgb quiet 3 vga=788
title My Fedora GUI (2.6.29-rc4-eeepc-tbg)
kernel /bzImage-2.6.29-rc4-eeepc-tbg ro root=/dev/sda2 rhgb quiet vga=788
title STOCK Fedora Console (18.104.22.168-159.fc10.i686)
kernel /vmlinuz-22.214.171.124-159.fc10.i686 ro root=UUID=a13e6408-fc51-4a3c-ae2a-c3436bf5829f rhgb quiet 3
title STOCK Fedora GUI (126.96.36.199-159.fc10.i686)
kernel /vmlinuz-188.8.131.52-159.fc10.i686 ro root=UUID=a13e6408-fc51-4a3c-ae2a-c3436bf5829f rhgb quiet vga=788
NOTE: I have some choices to boot to a console login (no x/Gnome login) in case of 'issues' I need to debug.
Once you are done you will have a new choice in your grub boot menu.
Its harmless to your existing system kernel.
eeepc-laptop: use netlink interface
eeepc-laptop: Implement rfkill hotplugging in eeepc-laptop
eeepc-laptop: Check return values from rfkill_register
eeepc-laptop: Add support for extended hotkeys
I now have a F10 system that suspends & resumes with everything working as they were before the suspend (wireless, video, touchpad, audio...)
The EeePC keys even work and I can use the <Fn-F2> key to toggle the wireless.
NOTE: I just found that having compiz desktop effects hangs when resuming. I don't know why... so I just turn it off.