Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed an "upstream kernel" (downloaded deb and installed with dpkg) because of an issue I have with the default kernel (see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/956918) Now the custom battery settings I had are lost. I used the kernel modukle tp-smapi to change this settings on a thinkpad. If I try to load this module now, it fails because it was not built for this kernel. The installed packages are "tp-smapi-dkms" and "tp-smapi-source". Automatic rebuilding seems not to have been triggered. How can I do it manually?

share|improve this question

1 Answer 1

Besides installing the linux-image-... package, you also need linux-headers-... . After installation of the headers, the modules for that kernel should be build automatically. If not, manually trigger a installation of modules for the current loaded kernel:

sudo dkms autoinstall -k $(uname -r)
share|improve this answer
1  
It should be noted that with some modules if the compiler version used to build the mainline kernel and the one on the target system do not match there is a small possibility that the module will not function correctly. –  Andy Apr 17 '12 at 14:17
    
@Andy I've only had issues with such kernels/ modules when trying to rmmod it, but it in theory it can indeed happen. –  Lekensteyn Apr 17 '12 at 14:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.