IBM Thinkpad (Z60t, Z60*)

Additional Repositories

f /etc/apt/sources.list.d/medibuntu.list

## Medibuntu - Ubuntu 8.10 "intrepid ibex"
## Please report any bug on https://bugs.launchpad.net/medibuntu/
deb http://packages.medibuntu.org/ intrepid free non-free
#deb-src http://packages.medibuntu.org/ intrepid free non-free

Ubuntu 8.10 install

IBM Z60t specific work-around fixes

Wireless stops working after resume

1. added MODULES="ath_hal" to /etc/defaults/acpi-support (not sure if this is significant)
2. added STOP_SERVICES="networking" to /etc/defaults/acpi-support

3. added "ifconfig wifi0 up" to /usr/lib/pm-utils/sleep.d/10NetworkManager (see code block below)

case "$1" in
        hibernate|suspend)
                suspend_nm
                ;;
        thaw|resume)
                ifconfig wifi0 up <-----
                resume_nm
                ;;
        *) exit $NA
                ;;
esac

Sound problem after resume

Sound too low

/etc/modprobe.d/alsa-base

...
# ADD AT THE END OF FILE
options snd-hda-intel model=thinkpad

Resuming
 killall pulseaudio
 /usr/bin/pulseaudio -D --log-target=syslog

After suspend I only need to run ' pasuspender echo' to restore my sound, even in Firefox, which had required a closedown and restart to work.

Brightness control on battery power

By default, when unplugging the AC power while the system is running, the brightness of the display goes down even when you have set not to in the Power Management settings and you are not able to reach a brightness level as high as possible when connected to AC power. This is not a software setting or GNOME bug, but a BIOS setting. In the BIOS you can find a brightness setting in the Power section. Set it to high for normal, expected behavior. You can let the GNOME Power Manager still lower the brightness, but you will be able to increase it when needed.

Battery control by tp_smapi

You need to load a kernel module first:

 sudo modprobe tp_smapi

Now, you will be able to have significantly more control over your battery charging via /sys/devices/platform/smapi.

For example, you could set a threshold value of 90% for charging (this should help against the loss of capacity through charging cycles).

 echo "90" | sudo tee -a /sys/devices/platform/smapi/BAT0/stop_charge_thresh

Or, view the number of charge cycles your battery has had in its lifetime:

 cat /sys/devices/platform/smapi/BAT0/cycle_count

Or, while AC connected, force discharging of your battery:

 echo "1" | sudo tee -a /sys/devices/platform/smapi/BAT0/force_discharge

For convenience, you could load the kernel module at boot time by adding it to /etc/modules.

 echo "tp_smapi" | sudo tee -a /etc/modules

Disk Encryption

f /etc/initramfs-tools/scripts/local-top/cryptoroot

PREREQ="udev"

prereqs()
{
        echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
        prereqs
        exit 0
        ;;
esac

/bin/loadkeys -q /etc/console-setup/boottime.kmap.gz
modprobe -Qb dm_crypt
modprobe -Qb sha256

# The following command will ensure that the kernel is aware of
# the partition before we attempt to open it with cryptsetup.
/sbin/udevadm settle

if grep -q splash /proc/cmdline; then
    /bin/chvt 1
fi
/sbin/cryptsetup luksOpen CRYPTOROOT cryptoroot
if grep -q splash /proc/cmdline; then
       /sbin/usplash -c &
       sleep 1
fi

 chmod +x /etc/initramfs-tools/scripts/local-top/cryptoroot

f /etc/initramfs-tools/hooks/cryptoroot

PREREQ=""

prereqs()
{
        echo "$PREREQ"
}

case $1 in
prereqs)
        prereqs
        exit 0
        ;;
esac

if [ ! -x /sbin/cryptsetup ]; then
        exit 0
fi

. /usr/share/initramfs-tools/hook-functions

mkdir -p ${DESTDIR}/etc/console-setup
cp /etc/console-setup/boottime.kmap.gz ${DESTDIR}/etc/console
copy_exec /bin/loadkeys /bin
copy_exec /bin/chvt /bin
copy_exec /sbin/cryptsetup /sbin
copy_exec /sbin/vol_id /sbin

 chmod +x /etc/initramfs-tools/hooks/cryptoroot

IBM Fingerprint Reader

Reduce power consumption

linux/ibm-z60t.txt · Last modified: 2009/05/25 00:35 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 ipv6 ready