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
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
/etc/modprobe.d/alsa-base
... # ADD AT THE END OF FILE options snd-hda-intel model=thinkpad
killall pulseaudio /usr/bin/pulseaudio -D --log-target=syslog
pasuspender echo' to restore my sound, even in Firefox, which had required a closedown and restart to work.
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
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