Welcome to http://www.marssoft.de/
 
Tuesday, 11th December 2018 21:38:49 (GMT+1) 

Table of Contents

Linux Power Management

For debian Sid (page last updated 2009.1.12)

Set up

aptitude remove tpb
aptitude install xbacklight ethtool gnome-power-manager gddccontrol acpi-support
aptitude install libhal1 libhal-storage1 hal-info hal hal-device-manager
<code>

To set the background lightness, use the gnome-power-manager, use Fn-Home/Fn-End or
call xbacklight -set XX.

Sadly, xbacklight does not recognize values set using Fn-Home/Fn-End.

cat /etc/modprobe.d/thinkpad_acpi
<code>
# Mario Emmenlauer, 2009.1.12
#
# the thinkpad_acpi option 'fan_control=1' is based on the forum entry
# http://ubuntuforums.org/showthread.php?t=523022&page=5
# additional options would be: brightness_enable=1 brightness_mode=3
options thinkpad_acpi fan_control=1

cat /etc/modprobe.d/video

# Mario Emmenlauer, 2009.1.12
#
# disabling the video brightness handling is needed
# on Thinkpad with kernel 2.6.26.1 as of
# http://www.mail-archive.com/ibm-acpi-devel@lists.sourceforge.net/msg01469.html 
options video brightness_switch_enabled=0

ls -la /etc/acpi/{battery,ac}.d/10-*

-rwxr-xr-x 1 root root 1880 2009-01-11 13:05 /etc/acpi/ac.d/10-thinkpad.sh
-rwxr-xr-x 1 root root 1946 2009-01-11 13:03 /etc/acpi/battery.d/10-thinkpad.sh

cat /etc/init.d/acpi-init-mario

#!/bin/sh
### BEGIN INIT INFO
# Provides:          acpi-init
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# X-Start-Before:    kdm gdm xdm hal
# X-Stop-After:      kdm gdm xdm hal
# Default-Start:     2 3 4 5
# Default-Stop:      1
# Short-Description: Initialize ACPI state on boot
# Description:       On booting, the ACPI state is not set to be battery or performance
#                    optimized.
### END INIT INFO
#
# Mario Emmenlauer, Jan. 2009
#

# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

# ACPI scripts
test -f /usr/share/acpi-support/key-constants || exit 0

. /etc/default/acpi-support
. /usr/share/acpi-support/power-funcs


case "$1" in
  start)
    log_begin_msg "Initializing ACPI state..."
    # Get the power state (AC/BATTERY) into STATE
    getState;

    if [ "$STATE" = "BATTERY" ] ; then
      . /etc/acpi/battery.d/10-thinkpad.sh
    else
      . /etc/acpi/ac.d/10-thinkpad.sh
    fi
    log_end_msg $?
    ;;
  stop)
    ;;
  *)
    log_success_msg "Usage: /etc/init.d/acpi-init {start|stop}"
    exit 1
esac
for I in rc2.d rc3.d rc4.d rc5.d ; do
  ln -s '../init.d/acpi-init-mario' /etc/$I/S20acpi-init-mario || break
done
scratch/linux_power_management.txt · Last modified: 2014/04/02 22:39 (external edit)