so recently i realized that i needed suspend-to-disk and suspend-to-ram on my laptop. after much research i realized that i should use the tuxonice gentoo kernels (sys-kernel/tuxonice-sources).

so first thing i did was compile 2.6.36-tuxonice with thinkpad-acpi and all the suspend-to-ram, suspend-to-disk and tuxonice configs. (grab my .conf file here for your reference)
once you have compiled the kernel, check /proc/acpi/ to make sure that dir ibm is there.

before continuing it should be noted that i dont use initramfs or genkernel, so if you plan on using fbsplash or fbcondecor make sure to make the proper changes to your kernel.

with emerging tuxonice-sources, we also have to emerge sys-apps/tuxonice-userui, which is the user interface for tuxonice.

we also have to make sure that we have acpid installed and running.

for the thinkpad keyboard events:

fn + f2 (lock screen with xscreensaver-command –lock)

event=ibm/hotkey HKEY 00000080 00001002


su -c "xscreensaver-command -lock" user #change user to your standard user

fn + f4 (suspend to ram)

event=ibm/hotkey HKEY 00000080 00001004



fn + f9 (eject cdrom)

event=ibm/hotkey HKEY 00000080 00001009


/usr/bin/eject cdrom

fn + f12 (suspend to disk)

event=ibm/hotkey HKEY 00000080 0000100c



for the power button to suspend-to-disk

power button (suspend to disk)




vi /etc/acpi/default.sh
change /sbin/init 0 to /usr/sbin/hibernate

save all this, now give acpid a restart and make sure that you are in your kernel.

when done, after kernel is confirmed working, dont forget to emerge --unmerge gentoo-sources so you can free up some space.

1 comment so far

Add Your Comment
  1. […] (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 […]