at time of writing, gentoo TuxOnIce is at sys-kernel/tuxonice-sources-3.0.26 and gentoo sources is at sys-kernel/gentoo-sources-3.3.1.

so after compiling tuxonice-sources (here is my .config for reference) and configuring all the hibernate / suspend scripts referenced here i realized that after resuming from either suspend to ram or hibernating to swap that my function keys were borked.

after doing some googling, it turns out that its a known bug with tuxonice and thinkpads for the function keys to no longer work on resume.

so i decided to just customize a gentoo-sources kernel to support suspending-to-ram and hibernating-to-swap using the thinkpad function keys.

here is my customized .config using a solid foundation from pappy from the gentoo forums. this kernel also has some modified acpi / power configs to help maximize the battery life.

if you decide to use my configurations, make sure that you have sys-power/acpid emerged and set to start on boot or default, and also have sys-power/hibernate-script emerged for all the hibernate and suspend functionality.

now i have a thinkpad that suspends and hibernates without the need of the TuxOnIce patches and works just the same.

here is the bug i found concerning thinkpads and tuxonice even though it says fixed, i have still had issues with it. it could just be use flag vanilla with TuxOnIce, but this was way easier to implement.


so after using my thinkpad x60 for a while i realized that my battery (brand new) was dying to quickly, to start testing i installed powertop (Gentoo: sys-power/powertop, other : http://www.lesswatts.org/projects/powertop/) and started to notice that there were some changes at the kernel level and other minor tweaks that i could do to maximize on my battery.

Here is the kernel .config tweaked with a good foundation from pappy who is awesome on the Gentoo forums with tweaking out kernels. i recomend that you do a diff between my .config, pappy’s .config, and the .config that comes from portage to see the differences.

at the time of writing, current sys-kernel/gentoo-sources was 3.3.1.

some of the other tweaks that i did (after some googling and using powertop) were :
echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
iwconfig wlan0 power timeout 500ms

which after said and done, when my battery is fully charged it went from about 1.75 hours to 3.5 hours (give or take a couple of minutes).