====== IBM Thinkpad (Z60t, Z60*) ======
===== Additional Repositories =====
* http://www.medibuntu.org/
* https://help.ubuntu.com/community/Medibuntu
* Adobe Acrobat Reader 8.x
* Skype 2.x
## 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 ===
* [[https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/272300]]
* [[https://bugs.launchpad.net/ubuntu/+source/linux-restricted-modules/+bug/275692]]
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 ==
...
# ADD AT THE END OF FILE
options snd-hda-intel model=thinkpad
== Resuming ==
* [[https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/202089]]
* [[https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/202089]]
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 ====
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
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 ====
[[http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger]]
FIXME
==== Reduce power consumption ====
[[http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption]]