Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:ibm-z60t [2008/12/14 01:17]
a created
linux:ibm-z60t [2009/05/25 00:35] (current)
Line 1: Line 1:
-====== IBM Z60t ======+====== IBM Thinkpad (Z60t, Z60*) ====== 
 + 
 + 
 + 
 +===== Additional Repositories ===== 
 + 
 +   * http://www.medibuntu.org/ 
 +   * https://help.ubuntu.com/community/Medibuntu 
 +      * Adobe Acrobat Reader 8.x 
 +      * Skype 2.x 
 + 
 +<code |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 
 +</code> 
 + 
 + 
 + 
  
 ===== Ubuntu 8.10 install ===== ===== Ubuntu 8.10 install =====
  
-FIXME+==== 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]] 
 + 
 +<code> 
 + 
 +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 
 +</code> 
 + 
 +=== Sound problem after resume === 
 + 
 +== Sound too low == 
 + 
 +<code | /etc/modprobe.d/alsa-base> 
 +... 
 +# ADD AT THE END OF FILE 
 +options snd-hda-intel model=thinkpad 
 +</code> 
 + 
 +== 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 
 + 
 +<note tip>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. </note> 
 + 
 +=== Brightness control on battery power === 
 +<note tip> 
 +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. 
 +</note> 
 + 
 +=== 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 ==== ==== Disk Encryption ====
  
-FIXME+<code |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 
 +</code> 
 + 
 +   chmod +x /etc/initramfs-tools/scripts/local-top/cryptoroot 
 + 
 +<code |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 
 +</code> 
 + 
 +   chmod +x /etc/initramfs-tools/hooks/cryptoroot 
 + 
  
 ==== IBM Fingerprint Reader ==== ==== IBM Fingerprint Reader ====
Line 15: Line 179:
 FIXME FIXME
  
 +==== Reduce power consumption ====
 +
 +[[http://www.thinkwiki.org/wiki/How_to_reduce_power_consumption]]
  
linux/ibm-z60t.1229213865.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready