Backport module

Manualy

This is an example for eeepc-laptop, but it also applies to asus-laptop.

You'll need kernel headers and gcc for that.

First, get the source code from http://git.iksaif.net/?p=acpi4asus.git;a=summary

Download the file and save it, making sure that you name it eeepc-laptop.c.

Create a Makefile

echo "obj-m := eeepc-laptop.o" > Makefile

Then just run

make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules

then, as root,

modprobe -r eeepc-laptop
modprobe pciehp
insmod eeepc-laptop.ko

To install the module "permanently" for the current kernel:

mkdir /lib/modules/`uname -r`/updates
cp eeepc-laptop.ko /lib/modules/`uname -r`/updates
depmod -ae

(Note: the updates directory is known good on Debian-based systems.)

Using acpi4asus.py

Download acpi4asus.py from this page, and run it:

# Usage: acpi4asus.py module branch
# module can be eeepc-laptop or asus-laptop
# branch can be any git branch, including acpi4asus, eeepc-laptop, asus-laptop, ...
python acpi4asus.py eeepc-laptop acpi4asus

Then you can use make to build the module, and even make install to install it !

acpi4asus.py - Automated script (1.3 KB) Corentin Chary, 02/02/2010 08:12 am

Also available in: HTML TXT