make install also works for Grub. The following steps should work for SUSE also because I believe they are both RPM based. This is what I used to get my Battery monitor to work, I had to re-compile the kernel to include ACPI instead of APM since my Laptop needs ACPI.
* First ensure the source is installed, if using APM just skip to the line with
make mrproper
* Download the patches you need, I believe if you are using APM you don't need to worry about any patches
* The patch for ACPI must match your kernel for eg: For RH 9 running kernel 2.4.20-18.9 I downloaded acpi-20021212-2.4.20.diff.gz from Sourceforge at the following link
Sourceforge ACPI
* Then unzip this file gzip -d acpi*.diff.gz then copy the file acpi-20021212-2.4.20.diff to
/usr/src/linux-2.4.20-18.9
* then go to console or virtual console
su, enter root password, cd /usr/src/linux-2.4.20-18.9
* then you type the following command
patch -p1 -f < acpi-20021212-2.4.20.diff
* then
make mrproper
* then
cd configs choose the config file that matches your PC this is for RH, I don't know if SUSE includes the same.
* then
cp <matching config file> usr/src/linux-2.4.20-18.9/.config this sets everything up for the default that RH passes to its kernel
* then
cd ..
* then you can edit the Makefile in /usr/src/linux-2.4.20-18.9, and put something in extraversion line, I put the date the kernel was compiled on.
* then
make xconfig if in X, or make menuconfig in console
* then after choosing your options here ensure that APM is set to be built in or ACPI one or the other depending what your Laptop needs if unsure then build in both and then in the Grub or Lilo options for the kernel you can say ACPI=on APM=off or vice versa
* then
make dep
* then
make clean
* then
make bzImage
* then
make modules
* then
make modules_install
* then
make install
After this then you double check your lilo or grub conf file and here you can pass the options as noted above to the kernel.
If using lilo I believe if everything looks good then you will have to issue the following command
/sbin/lilo but don't quote me on this I use grub
Reboot your laptop and the battery monitor should work.
PS. Above I used the directory for the kernel I am using, use the directory where your kernel sources are.
Hope this helps
