Custom CSS

Friday, June 4, 2010

Getting thinkpad_acpi to work in a X100e on Debian Lenny

When I booted up my X100e, I got a message that said thinkpad_acpi: Not yet supported thinkpad detected. To fix this, I had to apply a patch to the linux kernel. I was already using the 2.6.30-bpo.2-amd64 kernel from lenny-backports, so I could just copy my old kernel configuration over (because I'm too lazy to tweak what comes with the stock kernel).

There's a nice newbie friendly tutorial that teaches you how to use make-kpkg, but the skinny is this:

cd /usr/src/linux
cp /boot/config-2.6.30-bpo.2-amd64 .config
make oldconfig
fakeroot make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=.20100604 kernel_image

Incidentally, the only file I needed to change was thinkpad_acpi.c, and it is a module, so if anybody knows how I can do this without compiling the entire kernel, I'd love to know.