Laptop Config


Setup LaptopConfig

Setup user_acpid

There are two different programs, the frontend ltpconf and an user_acpid daemon.

You need the acpid to run on your machine, install it via your distos package-tool ( apt-get install acpid on Debian ) or get it at and follow the installing instructions in the README.

Note for Debian users:

You have to enable socket-support which is disabled by default. Just comment out the folling line in /etc/default/acpid
it needs to be like this:

Afterwards you have to restart the daemon as root with
# /etc/init.d/acpid restart

Unfortunately the acpid only support system-wide settings of the events, so you can't bind commands on a per user base.
To encompass this, this packages contains a tool named user_acpid, which is based on Julien Lerouges asus_acpid. It will be build automatically and you find it under /usr/local/bin. user_acpid handles all acpi events and lets the user choose the action to perform on it.

There is a samples directory in this package which you can put in your $HOME with:

$ cp samples ~/.user_acpi
To start the program you have to add the following line to your ~/.xsession or ~/.xinitrc file:

Note for Debian users: be sure to enable the session "Debian" in your displaymanager, otherwise the .xsession may not be processed.

Check a succesful install with
$ ps -ax
You should find an user_acpid entry!

Setup proper /etc/cpufreqd.conf permissions

LaptopConfig may write all the necessary things to /etc/cpufreqd.conf.
This file is owned by root, so you can't write to it as a normal user.
A possible solution for this is to change cpufreqd.conf's access rights.

We will create a new group called "ltpconf" and hand thr group-ownership to this group.
Then you need to give this group write access to the owning group.
As a last step, you add all user who need to change cpufreqs settings to the group ltpconf.

It follows a step by step instruction:

  1. Open a shell and get root
    $ su
    Password: Type in your root password here!
  2. Create a new group called ltpconf
    # addgrp ltpconf
  3. Change cpufreqd.conf's group ownership to group ltpconf and allow write access to it
    # cd /etc
    # chgrp ltpconf cpufreqd.conf
    # chmod g+w cpufreqd.conf
  4. Add users who are allowed to change the cpufreqds settings
    # adduser userame ltpconf

Mount the sysfs for Linux 2.6

Be sure to load the sysfs on Linux 2.6. As root, add the following line to your /etc/fstab:
sysfs /sys sysfs defaults 0 0

Load the appropriate cpufreq kernel-modules

You need to load the right cpufreq-driver for your system.
Use one of the list below (see /usr/src/linux/Documentation/cpufreq for details):
  1. speedstep-centrino - for Pentium M computers
  2. p4-clockmod - for Pentium 4 computers
  3. powernow-k7 - for Athlon XP computers
  4. powernow-k8 - for Athlon 64 computers
Load them as root with the following line in the shell:
# modprobe <name of the module>
Valid HTML 4.01!