PDA

View Full Version : [ubuntu] Installing a Kernel Module?



Skerious
May 23rd, 2008, 10:45 PM
Ok i want to try to install the omnibook/toshiba module i downloaded here:

http://omnibook.sourceforge.net/doku.php


to see if it will fix my battery life/lcd dimming problem on my Toshiba M45


I downloaded the file but have no idea how to install it. Can someone help me out. I am a newbie.

commands and all would be appreciated, thanks.

Skerious
May 27th, 2008, 01:59 AM
Any help? I can't find help for this anywhere. I am desperate.

dstew
May 27th, 2008, 06:46 PM
Translating the installation instructions (http://omnibook.sourceforge.net/doku.php?id=install), it sounds like you might need to have the full kernel source code in order for the kernel module to compile correctly -- at least that is what he says. Usually, the headers are enough. The full kernel source is pretty huge.

I would try with the headers only first. Find out what your kernel version is using
uname -rThen, use Synaptic and install the linux-kernel-headers package that corresponds to the kernel. I am not sure, but I think you might be able to install just "linux-kernel-headers" and the package management software will get the right one. If the headers are not enough, you will need to get the linux-kernel-source package.

You also need to install the compiler (gcc) and the standard libraries. These are contained in the package build-essential.

Once you have installed these, download the source tarball, untar it (double click it), and enter the source directory. From there, do the commands as in the instructions.