Difference between revisions of "Installing Debian 3.1 (Sarge) (alternative) on a ThinkPad T42"

From ThinkWiki
Jump to: navigation, search
 
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Some notes I took for my install:
+
Some notes I took for my install (drop me a line at koalillo-at-fastmail-dot-fm):
  
IBM THINKPAD T42 (2373VUW)
+
IBM ThinkPad {{T42}} (2373VUW)
  
I installed Debian Sarge (testing with selected packages from unstable/experimental).
+
I installed [[:Category:Debian|Debian Sarge]] (testing with selected packages from unstable/experimental).
  
* Kernel
+
== Kernel ==
  * Set preemptive kernel
+
  * Add madwifi
+
* Set preemptive kernel
  * Add patch from: http://bugme.osdl.org/show_bug.cgi?id=3022 , adding the 2373VUW model
+
* Add madwifi
  * Add swsusp
+
* Add patch from: http://bugme.osdl.org/show_bug.cgi?id=3022 , adding the 2373VUW model
  * make-kpkg --append-to-version -t42 --initrd kernel_image modules_image
+
* Add swsusp
* Additional packages
+
* {{cmduser|make-kpkg --append-to-version -t42 --initrd kernel_image modules_image}}
  * acpid
 
  * alsa-base, alsa-utils, alsa-oss
 
  * anacron
 
  * gnome-volume-manager
 
  * libc6-i686
 
  * tpb for OSD display of IBM keys and remapping the Access IBM key
 
* Frequency scaling
 
  * Load modules: cpufreq_ondemand, speedstep-centrino
 
  * echo >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
 
* HDAPS
 
  * Add module hdaps
 
  * Add package hdaps-utils
 
* Additional modules
 
  * ibm_acpi
 
  * nvram
 
* ACPID:
 
  * To map Fn-F4 (suspend) and Fn-F12 (hibernate)
 
<verbatim>
 
alex@armitage:~$ cat /etc/acpi/events/ibm
 
event=ibm/hotkey
 
action=/etc/acpi/ibm.sh %e
 
  
alex@armitage:~$ cat /etc/acpi/ibm.sh
+
== Additional packages ==
#!/bin/sh
 
  
case $4 in
+
* acpid
 +
* alsa-base, alsa-utils, alsa-oss
 +
* anacron
 +
* gnome-volume-manager
 +
* libc6-i686
 +
* tpb for OSD display of IBM keys and remapping the Access IBM key
 +
 
 +
== Frequency scaling ==
 +
 +
* Load modules: cpufreq_ondemand, speedstep-centrino
 +
* Add the following to your startup sequence {{cmdroot|echo >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand}}
 +
 
 +
== HDAPS ==
 +
 
 +
* Add module hdaps
 +
* Add package hdaps-utils
 +
 
 +
== Additional modules ==
 +
 
 +
* ibm_acpi
 +
* nvram
 +
 
 +
== ACPID ==
 +
 
 +
* To map Fn-F4 (suspend) and Fn-F12 (hibernate)
 +
 
 +
{{path|/etc/acpi/events/ibm}}
 +
event=ibm/hotkey
 +
action=/etc/acpi/ibm.sh %e
 +
 
 +
{{path|/etc/acpi/ibm.sh}}
 +
#!/bin/sh
 +
case $4 in
 
         00001004) /usr/local/sbin/suspend.sh mem ;;
 
         00001004) /usr/local/sbin/suspend.sh mem ;;
 
         0000100c) /usr/local/sbin/suspend.sh disk ;;
 
         0000100c) /usr/local/sbin/suspend.sh disk ;;
esac
+
esac
 +
 
 +
{{path|/usr/local/sbin/suspend.sh}}
 +
#!/bin/sh
 +
ifdown ath0
 +
echo -n $1 >/sys/power/state
 +
ifup ath0
 +
/etc/init.d/hotplug restart # testing if this solves my Bluetooth problems, see below
 +
 
 +
* Add {{cmdroot|echo enable >/proc/acpi/ibm/hotkey}} to enable hotkey reporting to ACPI
 +
 
 +
== GRUB ==
 +
 
 +
* Add resume=<swap device> so that the system finds the hibernated ram on power up
 +
* Add a noresume option to boot without recovering the hibernation
  
alex@armitage:~$ cat /usr/local/sbin/suspend.sh
+
== Caveats ==
#!/bin/sh
 
  
ifdown ath0
+
* Using cifs causes hiccups suspending/hibernating, use smbnetfs
echo -n $1 >/sys/power/state
+
* I get some USB errors when enabling/disabling Bluetooth after sleep/hibernation, like: {{cmdresult|usb 4-1: device not accepting address 5, error -71}} googling around it seems like restarting hotplug (or reloading the usb modules) solves the problem... I'll test that.
ifup ath0
 
</verbatim>
 
  * Add echo enable >/proc/acpi/ibm/hotkey to enable hotkey reporting to ACPI
 
* GRUB:
 
* Add resume=<swap device> so that the system finds the hibernated ram on power up
 
* Add a noresume option to boot without recovering the hibernation
 
  
* Caveats
+
=External Sources=
  * Using cifs causes hiccups suspending/hibernating, use smbnetfs
+
*This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation survey (IBM/Lenovo)].
 +
[[Category:Debian]]

Latest revision as of 16:55, 16 February 2009

Some notes I took for my install (drop me a line at koalillo-at-fastmail-dot-fm):

IBM ThinkPad T42 (2373VUW)

I installed Debian Sarge (testing with selected packages from unstable/experimental).

Kernel

Additional packages

  • acpid
  • alsa-base, alsa-utils, alsa-oss
  • anacron
  • gnome-volume-manager
  • libc6-i686
  • tpb for OSD display of IBM keys and remapping the Access IBM key

Frequency scaling

  • Load modules: cpufreq_ondemand, speedstep-centrino
  • Add the following to your startup sequence # echo >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand

HDAPS

  • Add module hdaps
  • Add package hdaps-utils

Additional modules

  • ibm_acpi
  • nvram

ACPID

  • To map Fn-F4 (suspend) and Fn-F12 (hibernate)

/etc/acpi/events/ibm

event=ibm/hotkey
action=/etc/acpi/ibm.sh %e

/etc/acpi/ibm.sh

#!/bin/sh
case $4 in
       00001004) /usr/local/sbin/suspend.sh mem ;;
       0000100c) /usr/local/sbin/suspend.sh disk ;;
esac

/usr/local/sbin/suspend.sh

#!/bin/sh
ifdown ath0
echo -n $1 >/sys/power/state
ifup ath0
/etc/init.d/hotplug restart # testing if this solves my Bluetooth problems, see below
  • Add # echo enable >/proc/acpi/ibm/hotkey to enable hotkey reporting to ACPI

GRUB

  • Add resume=<swap device> so that the system finds the hibernated ram on power up
  • Add a noresume option to boot without recovering the hibernation

Caveats

  • Using cifs causes hiccups suspending/hibernating, use smbnetfs
  • I get some USB errors when enabling/disabling Bluetooth after sleep/hibernation, like: usb 4-1: device not accepting address 5, error -71 googling around it seems like restarting hotplug (or reloading the usb modules) solves the problem... I'll test that.

External Sources