<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rfajardo</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rfajardo"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Rfajardo"/>
	<updated>2026-05-05T17:34:45Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47464</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47464"/>
		<updated>2010-03-04T14:30:12Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* CPU High Pitch Noise */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon HD 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
===Sound in KDE (Kubuntu) does not work===&lt;br /&gt;
Flash sound and/or Skype did not work. Other sounds are working. You have to switch sound settings, so that Pulse Audio is preferred before all other systems. System settings -&amp;gt; Multimedia -&amp;gt; Sound ouput.&lt;br /&gt;
&lt;br /&gt;
===Performance Problem with Window Unminimize and Resize ===&lt;br /&gt;
If you happen to use the following combination: gnome, compiz and proprietary ati/amd driver you are almost certainly experiencing performance problem when either resizing or unminimizing terminal window. Follow instructions provided [http://friendlytechninja.com/2009/11/29/howto-fix-performance-of-ati-drivers-with-compiz-on-ubuntu-9-10-karmic-koala/ here] to install modified version of X.&lt;br /&gt;
&lt;br /&gt;
Ubuntu Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/351186 351186]&lt;br /&gt;
&lt;br /&gt;
===CPU High Pitch Noise===&lt;br /&gt;
While running on battery power, T400 produces some high pitch noise on its front left corner. It seems to be related to the CPU idle C-States, this has nothing to do with the Speedstep. Information on C-States: [[http://www.intel.com/technology/itj/2006/volume10issue02/art03_Power_and_Thermal_Management/p03_power_management.htm]]. This noise has been referred as &amp;quot;CPU Whine&amp;quot; throughout the Internet. &lt;br /&gt;
&lt;br /&gt;
To eliminate the noise you have to disable C-States 3 and 4, to do so edit your &amp;quot;/etc/default/grub&amp;quot; where it says, GRUB_CMDLINE_LINUX = &amp;quot;&amp;quot; and input &amp;quot;processor.max_cstate=2&amp;quot;. If this entry does not exist, create it. If there is already something defined for it, include it with a space as separation mark. (e.g. GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;). This will increase your power consumption by 1W, from 15W to 16W more or less. &lt;br /&gt;
&lt;br /&gt;
Configuring your grub:&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option &amp;quot;processor.max_cstate=2&amp;quot; to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are other possible solutions listed here: [[http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises#Solutions_for_CPU-triggered_noise]]; neither max_cstate=3 nor bm_history=0xFFFFFFFF have worked for me. Turning off CPU Power Management on BIOS works, but you can as well just add max_cstate to 2. At last I found this IBM report [[http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70669]], which suggests this could be related to usb devices not going to sleep. Michael Kiausch [[http://www.thinkwiki.org/wiki?title=Talk:Problem_with_high_pitch_noises]] reports having removed the usb controller module and solved his noise problem on his X41. However, usb controller modules are compiled inside the kernel on Ubuntu-9.10. Nevertheless, enabling autosuspend for every usb device in any of the following ways did not solve the problem either; by &amp;quot;echo -n 1 &amp;gt; &amp;quot;/sys/bus/usb/devices/usb*/power/autosuspend&amp;quot;&amp;quot;, through powertop or grubline &amp;quot;usbcore.autosuspend=1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you are dual-booting XP (or older) make sure you '''disable switchable graphics detection in the BIOS'''. If you don't when you boot Linux the BIOS will enable switchable graphics since apparently Linux is aware of it and later when you boot into XP with it still enabled you'll have problems (drivers won't load, etc).}}&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
The package hdaps-utils was deleted because it was &amp;quot;out of date and obsolete&amp;quot;! See here: https://launchpad.net/ubuntu/karmic/+source/hdaps-utils/0.1-1.1. I removed the part using hdaps-utils! Now everything is up to date and should work. &lt;br /&gt;
If you want to use hdaps-gl follow these instructions: [[How_to_protect_the_harddisk_through_APS#hdaps-gl|How_to_protect_the_harddisk_through_APS#hdaps-gl]]&lt;br /&gt;
&lt;br /&gt;
--[[User:jango|jango]] 20:44, 18 Jan 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe -a thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
====Undock from a docking station====&lt;br /&gt;
&lt;br /&gt;
I experienced that the docking station disconnects all devices immediately when the eject button is pressed. Even if you use a udev triggered script! This can end in data recovery if you have file systems mounted via the docking stations USB ports. You can use the following script to unmount all file systems from the docking station before ejecting your ThinkPad.&lt;br /&gt;
&lt;br /&gt;
'''Get the correct syspath'''&lt;br /&gt;
&lt;br /&gt;
The scripts needs to know which syspath points at the docking stations USB ports. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
Step 1: Plug a usb block device (i.e. usb key) into your docking station.&lt;br /&gt;
&lt;br /&gt;
Step 2: Run:&lt;br /&gt;
 mount&lt;br /&gt;
in the terminal and look for the device path - something like &amp;quot;/dev/sdb1&amp;quot; (should be the last line of the output).&lt;br /&gt;
&lt;br /&gt;
Step 3: Now run &lt;br /&gt;
 udevadm info --query=path --name=/dev/sdb1&lt;br /&gt;
with the device path from step 2 for &amp;quot;name=...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 4: You will get quite a long path - copy it to a temporary text file to remember it.&lt;br /&gt;
&lt;br /&gt;
Step 5: Repeat the procedure starting from step 1 with the next USB port from the docking station (I suggest for all the ports).&lt;br /&gt;
&lt;br /&gt;
Step 6: I recommend to attach a device to the notebook directly to see the differences in the syspaths.&lt;br /&gt;
&lt;br /&gt;
Step 7: The syspaths will contain a substring similar to /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5...&lt;br /&gt;
In my experiences this is the substring where you can identify an USB device as attached to the docking station. If not: compare the paths and try to find the longest common string for all the syspaths.&lt;br /&gt;
&lt;br /&gt;
'''The script'''&lt;br /&gt;
&lt;br /&gt;
Please enter your correct syspath and username in the config section. Save the script somewhere and remember to make it executable.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # http://lukas-pirl.de/ 01/2010&lt;br /&gt;
 ################## BEGIN config ##################&lt;br /&gt;
 # define as regular expression:&lt;br /&gt;
 syspath_usb_at_docking=&amp;quot;/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.*&amp;quot;&lt;br /&gt;
 # need the username to send notifications to the desktop:&lt;br /&gt;
 username=&amp;quot;YouUserName&amp;quot;&lt;br /&gt;
 ################## END config ##################&lt;br /&gt;
 # iterate through mounts (mtab and truecrypt):&lt;br /&gt;
 echo &amp;quot;# query truecrypt and /proc/mounts for mounts...&amp;quot;&lt;br /&gt;
 for mounted in $(truecrypt --text -l | cat /proc/mounts -)&lt;br /&gt;
 do&lt;br /&gt;
 	success=1&lt;br /&gt;
 	# check if it is really a mounted _device_ (starting with /dev/):&lt;br /&gt;
 	device=`/usr/bin/expr &amp;quot;$mounted&amp;quot; : '\(/dev/[^ ]*\)'`&lt;br /&gt;
 	if [ &amp;quot;$device&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
 	then&lt;br /&gt;
 		# check if device is attached to the docking station:&lt;br /&gt;
 		echo &amp;quot;# try to get sys path for $device...&amp;quot;&lt;br /&gt;
 		if [ `/usr/bin/expr &amp;quot;$(/sbin/udevadm info --query=path --name=${device})&amp;quot; : &amp;quot;$syspath_usb_at_docking&amp;quot;` -gt 0 ]&lt;br /&gt;
 		then&lt;br /&gt;
 			echo &amp;quot;  # try to unmount $device...&amp;quot;&lt;br /&gt;
 			/bin/umount $device || ( echo &amp;quot;# unmount failed - try unmount with truecrypt...&amp;quot;; /usr/bin/truecrypt -d $device || ( sudo -u &amp;quot;$username&amp;quot; notify-send -u critical -t 100000 &amp;quot;Undock error&amp;quot; &amp;quot;Could not unmount $device&amp;quot;; success=0 ) )&lt;br /&gt;
 		else&lt;br /&gt;
 			echo &amp;quot;  # sys path does not contain the path to the usb ports at the docking station&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 if [ ${success} -eq 1 ]&lt;br /&gt;
 then&lt;br /&gt;
 	sudo -u &amp;quot;$username&amp;quot; /usr/bin/notify-send &amp;quot;Undock Complete!&amp;quot; &amp;quot;All file systems mounted via docking station unmounted!&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Feel free to correct, enhance or customize the script. You can even [http://lukas-pirl.de/kontakt contact] the author of the script.&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47462</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47462"/>
		<updated>2010-03-04T14:17:18Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* CPU High Pitch Noise */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon HD 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
===Sound in KDE (Kubuntu) does not work===&lt;br /&gt;
Flash sound and/or Skype did not work. Other sounds are working. You have to switch sound settings, so that Pulse Audio is preferred before all other systems. System settings -&amp;gt; Multimedia -&amp;gt; Sound ouput.&lt;br /&gt;
&lt;br /&gt;
===Performance Problem with Window Unminimize and Resize ===&lt;br /&gt;
If you happen to use the following combination: gnome, compiz and proprietary ati/amd driver you are almost certainly experiencing performance problem when either resizing or unminimizing terminal window. Follow instructions provided [http://friendlytechninja.com/2009/11/29/howto-fix-performance-of-ati-drivers-with-compiz-on-ubuntu-9-10-karmic-koala/ here] to install modified version of X.&lt;br /&gt;
&lt;br /&gt;
Ubuntu Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/351186 351186]&lt;br /&gt;
&lt;br /&gt;
===CPU High Pitch Noise===&lt;br /&gt;
While running on battery power, T400 produces some high pitch noise on its front left corner. It seems to be related to the CPU idle c-states (also known as CPU Whine), this has nothing to do with the speedstep. Information on C-States: [[http://www.intel.com/technology/itj/2006/volume10issue02/art03_Power_and_Thermal_Management/p03_power_management.htm]]. &lt;br /&gt;
&lt;br /&gt;
To eliminate the noise you have to disable C-States 3 and 4, to do so edit your &amp;quot;/etc/default/grub&amp;quot; where it says, GRUB_CMDLINE_LINUX = &amp;quot;&amp;quot; and input &amp;quot;processor.max_cstate=2&amp;quot;. If this entry does not exist, create it. If there is already something defined for it, include it with a space as separation mark. (e.g. GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;). This will increase your power consumption by 1W, from 15W to 16W more or less. &lt;br /&gt;
&lt;br /&gt;
Configuring your grub:&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option &amp;quot;processor.max_cstate=2&amp;quot; to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are other possible solutions listed here: [[http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises#Solutions_for_CPU-triggered_noise]]; neither max_cstate=3 nor bm_history=0xFFFFFFFF have worked for me. Turning off CPU Power Management on BIOS works, but you can as well just add max_cstate to 2. At last I found this IBM report [[http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70669]], which suggests this could be related to usb devices not going to sleep. Michael Kiausch [[http://www.thinkwiki.org/wiki?title=Talk:Problem_with_high_pitch_noises]] reports having removed the usb controller module and solved his noise problem on his X41. However, usb controller modules are compiled inside the kernel on Ubuntu-9.10. Nevertheless, enabling autosuspend for every usb device in any of the following ways did not solve the problem either; by &amp;quot;echo -n 1 &amp;gt; &amp;quot;/sys/bus/usb/devices/usb*/power/autosuspend&amp;quot;&amp;quot;, through powertop or grubline &amp;quot;usbcore.autosuspend=1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you are dual-booting XP (or older) make sure you '''disable switchable graphics detection in the BIOS'''. If you don't when you boot Linux the BIOS will enable switchable graphics since apparently Linux is aware of it and later when you boot into XP with it still enabled you'll have problems (drivers won't load, etc).}}&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
The package hdaps-utils was deleted because it was &amp;quot;out of date and obsolete&amp;quot;! See here: https://launchpad.net/ubuntu/karmic/+source/hdaps-utils/0.1-1.1. I removed the part using hdaps-utils! Now everything is up to date and should work. &lt;br /&gt;
If you want to use hdaps-gl follow these instructions: [[How_to_protect_the_harddisk_through_APS#hdaps-gl|How_to_protect_the_harddisk_through_APS#hdaps-gl]]&lt;br /&gt;
&lt;br /&gt;
--[[User:jango|jango]] 20:44, 18 Jan 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe -a thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
====Undock from a docking station====&lt;br /&gt;
&lt;br /&gt;
I experienced that the docking station disconnects all devices immediately when the eject button is pressed. Even if you use a udev triggered script! This can end in data recovery if you have file systems mounted via the docking stations USB ports. You can use the following script to unmount all file systems from the docking station before ejecting your ThinkPad.&lt;br /&gt;
&lt;br /&gt;
'''Get the correct syspath'''&lt;br /&gt;
&lt;br /&gt;
The scripts needs to know which syspath points at the docking stations USB ports. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
Step 1: Plug a usb block device (i.e. usb key) into your docking station.&lt;br /&gt;
&lt;br /&gt;
Step 2: Run:&lt;br /&gt;
 mount&lt;br /&gt;
in the terminal and look for the device path - something like &amp;quot;/dev/sdb1&amp;quot; (should be the last line of the output).&lt;br /&gt;
&lt;br /&gt;
Step 3: Now run &lt;br /&gt;
 udevadm info --query=path --name=/dev/sdb1&lt;br /&gt;
with the device path from step 2 for &amp;quot;name=...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 4: You will get quite a long path - copy it to a temporary text file to remember it.&lt;br /&gt;
&lt;br /&gt;
Step 5: Repeat the procedure starting from step 1 with the next USB port from the docking station (I suggest for all the ports).&lt;br /&gt;
&lt;br /&gt;
Step 6: I recommend to attach a device to the notebook directly to see the differences in the syspaths.&lt;br /&gt;
&lt;br /&gt;
Step 7: The syspaths will contain a substring similar to /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5...&lt;br /&gt;
In my experiences this is the substring where you can identify an USB device as attached to the docking station. If not: compare the paths and try to find the longest common string for all the syspaths.&lt;br /&gt;
&lt;br /&gt;
'''The script'''&lt;br /&gt;
&lt;br /&gt;
Please enter your correct syspath and username in the config section. Save the script somewhere and remember to make it executable.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # http://lukas-pirl.de/ 01/2010&lt;br /&gt;
 ################## BEGIN config ##################&lt;br /&gt;
 # define as regular expression:&lt;br /&gt;
 syspath_usb_at_docking=&amp;quot;/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.*&amp;quot;&lt;br /&gt;
 # need the username to send notifications to the desktop:&lt;br /&gt;
 username=&amp;quot;YouUserName&amp;quot;&lt;br /&gt;
 ################## END config ##################&lt;br /&gt;
 # iterate through mounts (mtab and truecrypt):&lt;br /&gt;
 echo &amp;quot;# query truecrypt and /proc/mounts for mounts...&amp;quot;&lt;br /&gt;
 for mounted in $(truecrypt --text -l | cat /proc/mounts -)&lt;br /&gt;
 do&lt;br /&gt;
 	success=1&lt;br /&gt;
 	# check if it is really a mounted _device_ (starting with /dev/):&lt;br /&gt;
 	device=`/usr/bin/expr &amp;quot;$mounted&amp;quot; : '\(/dev/[^ ]*\)'`&lt;br /&gt;
 	if [ &amp;quot;$device&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
 	then&lt;br /&gt;
 		# check if device is attached to the docking station:&lt;br /&gt;
 		echo &amp;quot;# try to get sys path for $device...&amp;quot;&lt;br /&gt;
 		if [ `/usr/bin/expr &amp;quot;$(/sbin/udevadm info --query=path --name=${device})&amp;quot; : &amp;quot;$syspath_usb_at_docking&amp;quot;` -gt 0 ]&lt;br /&gt;
 		then&lt;br /&gt;
 			echo &amp;quot;  # try to unmount $device...&amp;quot;&lt;br /&gt;
 			/bin/umount $device || ( echo &amp;quot;# unmount failed - try unmount with truecrypt...&amp;quot;; /usr/bin/truecrypt -d $device || ( sudo -u &amp;quot;$username&amp;quot; notify-send -u critical -t 100000 &amp;quot;Undock error&amp;quot; &amp;quot;Could not unmount $device&amp;quot;; success=0 ) )&lt;br /&gt;
 		else&lt;br /&gt;
 			echo &amp;quot;  # sys path does not contain the path to the usb ports at the docking station&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 if [ ${success} -eq 1 ]&lt;br /&gt;
 then&lt;br /&gt;
 	sudo -u &amp;quot;$username&amp;quot; /usr/bin/notify-send &amp;quot;Undock Complete!&amp;quot; &amp;quot;All file systems mounted via docking station unmounted!&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Feel free to correct, enhance or customize the script. You can even [http://lukas-pirl.de/kontakt contact] the author of the script.&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47439</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47439"/>
		<updated>2010-03-04T13:53:18Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* CPU High Pitch Noise */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon HD 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
===Sound in KDE (Kubuntu) does not work===&lt;br /&gt;
Flash sound and/or Skype did not work. Other sounds are working. You have to switch sound settings, so that Pulse Audio is preferred before all other systems. System settings -&amp;gt; Multimedia -&amp;gt; Sound ouput.&lt;br /&gt;
&lt;br /&gt;
===Performance Problem with Window Unminimize and Resize ===&lt;br /&gt;
If you happen to use the following combination: gnome, compiz and proprietary ati/amd driver you are almost certainly experiencing performance problem when either resizing or unminimizing terminal window. Follow instructions provided [http://friendlytechninja.com/2009/11/29/howto-fix-performance-of-ati-drivers-with-compiz-on-ubuntu-9-10-karmic-koala/ here] to install modified version of X.&lt;br /&gt;
&lt;br /&gt;
Ubuntu Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/351186 351186]&lt;br /&gt;
&lt;br /&gt;
===CPU High Pitch Noise===&lt;br /&gt;
While running on battery power, T400 produces some high pitch noise on its front left corner. It seems to be related to the CPU idle c-states, this has nothing to do with the speedstep. On C-States: [[http://www.intel.com/technology/itj/2006/volume10issue02/art03_Power_and_Thermal_Management/p03_power_management.htm]]. &lt;br /&gt;
&lt;br /&gt;
To eliminate the noise you have to disable C-States 3 and 4, to do so edit your &amp;quot;/etc/default/grub&amp;quot; where it says, GRUB_CMDLINE_LINUX = &amp;quot;&amp;quot; and input &amp;quot;processor.max_cstate=2&amp;quot;. If this entry does not exist, create it. If there is already something defined for it, include it with a space as separation mark. (e.g. GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;). This will increase your power consumption by 1W, from 15W to 16W more or less. &lt;br /&gt;
&lt;br /&gt;
Configuring your grub:&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option &amp;quot;processor.max_cstate=2&amp;quot; to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are other possible solutions listed here: [[http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises#Solutions_for_CPU-triggered_noise]]; neither max_cstate=3 nor bm_history=0xFFFFFFFF have worked for me. Turning off CPU Power Management on BIOS works, but you can as well just add max_cstate to 2. At last I found this IBM report [[http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70669]], which suggests this could be related to usb devices not going to sleep. Michael Kiausch [[http://www.thinkwiki.org/wiki?title=Talk:Problem_with_high_pitch_noises]] reports having removed the usb controller module and solved his noise problem. However, usb controller modules are compiled inside the kernel on Ubuntu-9.10. Nevertheless, enabling autosuspend for every usb device by &amp;quot;echo -n 1 &amp;gt; &amp;quot;/sys/bus/usb/devices/usb*/power/autosuspend&amp;quot;&amp;quot; system did not solve the problem either.&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you are dual-booting XP (or older) make sure you '''disable switchable graphics detection in the BIOS'''. If you don't when you boot Linux the BIOS will enable switchable graphics since apparently Linux is aware of it and later when you boot into XP with it still enabled you'll have problems (drivers won't load, etc).}}&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
The package hdaps-utils was deleted because it was &amp;quot;out of date and obsolete&amp;quot;! See here: https://launchpad.net/ubuntu/karmic/+source/hdaps-utils/0.1-1.1. I removed the part using hdaps-utils! Now everything is up to date and should work. &lt;br /&gt;
If you want to use hdaps-gl follow these instructions: [[How_to_protect_the_harddisk_through_APS#hdaps-gl|How_to_protect_the_harddisk_through_APS#hdaps-gl]]&lt;br /&gt;
&lt;br /&gt;
--[[User:jango|jango]] 20:44, 18 Jan 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe -a thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
====Undock from a docking station====&lt;br /&gt;
&lt;br /&gt;
I experienced that the docking station disconnects all devices immediately when the eject button is pressed. Even if you use a udev triggered script! This can end in data recovery if you have file systems mounted via the docking stations USB ports. You can use the following script to unmount all file systems from the docking station before ejecting your ThinkPad.&lt;br /&gt;
&lt;br /&gt;
'''Get the correct syspath'''&lt;br /&gt;
&lt;br /&gt;
The scripts needs to know which syspath points at the docking stations USB ports. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
Step 1: Plug a usb block device (i.e. usb key) into your docking station.&lt;br /&gt;
&lt;br /&gt;
Step 2: Run:&lt;br /&gt;
 mount&lt;br /&gt;
in the terminal and look for the device path - something like &amp;quot;/dev/sdb1&amp;quot; (should be the last line of the output).&lt;br /&gt;
&lt;br /&gt;
Step 3: Now run &lt;br /&gt;
 udevadm info --query=path --name=/dev/sdb1&lt;br /&gt;
with the device path from step 2 for &amp;quot;name=...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 4: You will get quite a long path - copy it to a temporary text file to remember it.&lt;br /&gt;
&lt;br /&gt;
Step 5: Repeat the procedure starting from step 1 with the next USB port from the docking station (I suggest for all the ports).&lt;br /&gt;
&lt;br /&gt;
Step 6: I recommend to attach a device to the notebook directly to see the differences in the syspaths.&lt;br /&gt;
&lt;br /&gt;
Step 7: The syspaths will contain a substring similar to /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5...&lt;br /&gt;
In my experiences this is the substring where you can identify an USB device as attached to the docking station. If not: compare the paths and try to find the longest common string for all the syspaths.&lt;br /&gt;
&lt;br /&gt;
'''The script'''&lt;br /&gt;
&lt;br /&gt;
Please enter your correct syspath and username in the config section. Save the script somewhere and remember to make it executable.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # http://lukas-pirl.de/ 01/2010&lt;br /&gt;
 ################## BEGIN config ##################&lt;br /&gt;
 # define as regular expression:&lt;br /&gt;
 syspath_usb_at_docking=&amp;quot;/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.*&amp;quot;&lt;br /&gt;
 # need the username to send notifications to the desktop:&lt;br /&gt;
 username=&amp;quot;YouUserName&amp;quot;&lt;br /&gt;
 ################## END config ##################&lt;br /&gt;
 # iterate through mounts (mtab and truecrypt):&lt;br /&gt;
 echo &amp;quot;# query truecrypt and /proc/mounts for mounts...&amp;quot;&lt;br /&gt;
 for mounted in $(truecrypt --text -l | cat /proc/mounts -)&lt;br /&gt;
 do&lt;br /&gt;
 	success=1&lt;br /&gt;
 	# check if it is really a mounted _device_ (starting with /dev/):&lt;br /&gt;
 	device=`/usr/bin/expr &amp;quot;$mounted&amp;quot; : '\(/dev/[^ ]*\)'`&lt;br /&gt;
 	if [ &amp;quot;$device&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
 	then&lt;br /&gt;
 		# check if device is attached to the docking station:&lt;br /&gt;
 		echo &amp;quot;# try to get sys path for $device...&amp;quot;&lt;br /&gt;
 		if [ `/usr/bin/expr &amp;quot;$(/sbin/udevadm info --query=path --name=${device})&amp;quot; : &amp;quot;$syspath_usb_at_docking&amp;quot;` -gt 0 ]&lt;br /&gt;
 		then&lt;br /&gt;
 			echo &amp;quot;  # try to unmount $device...&amp;quot;&lt;br /&gt;
 			/bin/umount $device || ( echo &amp;quot;# unmount failed - try unmount with truecrypt...&amp;quot;; /usr/bin/truecrypt -d $device || ( sudo -u &amp;quot;$username&amp;quot; notify-send -u critical -t 100000 &amp;quot;Undock error&amp;quot; &amp;quot;Could not unmount $device&amp;quot;; success=0 ) )&lt;br /&gt;
 		else&lt;br /&gt;
 			echo &amp;quot;  # sys path does not contain the path to the usb ports at the docking station&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 if [ ${success} -eq 1 ]&lt;br /&gt;
 then&lt;br /&gt;
 	sudo -u &amp;quot;$username&amp;quot; /usr/bin/notify-send &amp;quot;Undock Complete!&amp;quot; &amp;quot;All file systems mounted via docking station unmounted!&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Feel free to correct, enhance or customize the script. You can even [http://lukas-pirl.de/kontakt contact] the author of the script.&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47366</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47366"/>
		<updated>2010-03-04T00:48:47Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* CPU High Pitch Noise */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon HD 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
===Sound in KDE (Kubuntu) does not work===&lt;br /&gt;
Flash sound and/or Skype did not work. Other sounds are working. You have to switch sound settings, so that Pulse Audio is preferred before all other systems. System settings -&amp;gt; Multimedia -&amp;gt; Sound ouput.&lt;br /&gt;
&lt;br /&gt;
===Performance Problem with Window Unminimize and Resize ===&lt;br /&gt;
If you happen to use the following combination: gnome, compiz and proprietary ati/amd driver you are almost certainly experiencing performance problem when either resizing or unminimizing terminal window. Follow instructions provided [http://friendlytechninja.com/2009/11/29/howto-fix-performance-of-ati-drivers-with-compiz-on-ubuntu-9-10-karmic-koala/ here] to install modified version of X.&lt;br /&gt;
&lt;br /&gt;
Ubuntu Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/351186 351186]&lt;br /&gt;
&lt;br /&gt;
===CPU High Pitch Noise===&lt;br /&gt;
While running on battery power, T400 produces some high pitch noise on its front left corner. It seems to be related to the CPU idle c-states, this has nothing to do with the speedstep. On C-States: [[http://www.intel.com/technology/itj/2006/volume10issue02/art03_Power_and_Thermal_Management/p03_power_management.htm]]. &lt;br /&gt;
&lt;br /&gt;
To eliminate the noise you have to disable C-States 3 and 4, to do so edit your &amp;quot;/etc/default/grub&amp;quot; where it says, GRUB_CMDLINE_LINUX = &amp;quot;&amp;quot; and input &amp;quot;processor.max_cstate=2&amp;quot;. If this entry does not exist, create it. If there is already something defined for it, include it with a space as separation mark. (e.g. GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;). This will increase your power consumption by 1W, from 15W to 16W more or less. &lt;br /&gt;
&lt;br /&gt;
Configuring your grub:&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option &amp;quot;processor.max_cstate=2&amp;quot; to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are other possible solutions listed here: [[http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises#Solutions_for_CPU-triggered_noise]]; neither max_cstate=3 nor bm_history=0xFFFFFFFF have worked for me. Turning off CPU Power Management on BIOS works, but you can as well just add max_cstate to 2. At last I found this IBM report [[http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70669]], which suggests this could be related to usb devices not going to sleep. Michael Kiausch [[http://www.thinkwiki.org/wiki?title=Talk:Problem_with_high_pitch_noises]] reports having removed the usb controller module and solved his noise problem. However, usb controller modules are compiled inside the kernel on Ubuntu-9.10.&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you are dual-booting XP (or older) make sure you '''disable switchable graphics detection in the BIOS'''. If you don't when you boot Linux the BIOS will enable switchable graphics since apparently Linux is aware of it and later when you boot into XP with it still enabled you'll have problems (drivers won't load, etc).}}&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
The package hdaps-utils was deleted because it was &amp;quot;out of date and obsolete&amp;quot;! See here: https://launchpad.net/ubuntu/karmic/+source/hdaps-utils/0.1-1.1. I removed the part using hdaps-utils! Now everything is up to date and should work. &lt;br /&gt;
If you want to use hdaps-gl follow these instructions: [[How_to_protect_the_harddisk_through_APS#hdaps-gl|How_to_protect_the_harddisk_through_APS#hdaps-gl]]&lt;br /&gt;
&lt;br /&gt;
--[[User:jango|jango]] 20:44, 18 Jan 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe -a thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
====Undock from a docking station====&lt;br /&gt;
&lt;br /&gt;
I experienced that the docking station disconnects all devices immediately when the eject button is pressed. Even if you use a udev triggered script! This can end in data recovery if you have file systems mounted via the docking stations USB ports. You can use the following script to unmount all file systems from the docking station before ejecting your ThinkPad.&lt;br /&gt;
&lt;br /&gt;
'''Get the correct syspath'''&lt;br /&gt;
&lt;br /&gt;
The scripts needs to know which syspath points at the docking stations USB ports. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
Step 1: Plug a usb block device (i.e. usb key) into your docking station.&lt;br /&gt;
&lt;br /&gt;
Step 2: Run:&lt;br /&gt;
 mount&lt;br /&gt;
in the terminal and look for the device path - something like &amp;quot;/dev/sdb1&amp;quot; (should be the last line of the output).&lt;br /&gt;
&lt;br /&gt;
Step 3: Now run &lt;br /&gt;
 udevadm info --query=path --name=/dev/sdb1&lt;br /&gt;
with the device path from step 2 for &amp;quot;name=...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 4: You will get quite a long path - copy it to a temporary text file to remember it.&lt;br /&gt;
&lt;br /&gt;
Step 5: Repeat the procedure starting from step 1 with the next USB port from the docking station (I suggest for all the ports).&lt;br /&gt;
&lt;br /&gt;
Step 6: I recommend to attach a device to the notebook directly to see the differences in the syspaths.&lt;br /&gt;
&lt;br /&gt;
Step 7: The syspaths will contain a substring similar to /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5...&lt;br /&gt;
In my experiences this is the substring where you can identify an USB device as attached to the docking station. If not: compare the paths and try to find the longest common string for all the syspaths.&lt;br /&gt;
&lt;br /&gt;
'''The script'''&lt;br /&gt;
&lt;br /&gt;
Please enter your correct syspath and username in the config section. Save the script somewhere and remember to make it executable.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # http://lukas-pirl.de/ 01/2010&lt;br /&gt;
 ################## BEGIN config ##################&lt;br /&gt;
 # define as regular expression:&lt;br /&gt;
 syspath_usb_at_docking=&amp;quot;/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.*&amp;quot;&lt;br /&gt;
 # need the username to send notifications to the desktop:&lt;br /&gt;
 username=&amp;quot;YouUserName&amp;quot;&lt;br /&gt;
 ################## END config ##################&lt;br /&gt;
 # iterate through mounts (mtab and truecrypt):&lt;br /&gt;
 echo &amp;quot;# query truecrypt and /proc/mounts for mounts...&amp;quot;&lt;br /&gt;
 for mounted in $(truecrypt --text -l | cat /proc/mounts -)&lt;br /&gt;
 do&lt;br /&gt;
 	success=1&lt;br /&gt;
 	# check if it is really a mounted _device_ (starting with /dev/):&lt;br /&gt;
 	device=`/usr/bin/expr &amp;quot;$mounted&amp;quot; : '\(/dev/[^ ]*\)'`&lt;br /&gt;
 	if [ &amp;quot;$device&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
 	then&lt;br /&gt;
 		# check if device is attached to the docking station:&lt;br /&gt;
 		echo &amp;quot;# try to get sys path for $device...&amp;quot;&lt;br /&gt;
 		if [ `/usr/bin/expr &amp;quot;$(/sbin/udevadm info --query=path --name=${device})&amp;quot; : &amp;quot;$syspath_usb_at_docking&amp;quot;` -gt 0 ]&lt;br /&gt;
 		then&lt;br /&gt;
 			echo &amp;quot;  # try to unmount $device...&amp;quot;&lt;br /&gt;
 			/bin/umount $device || ( echo &amp;quot;# unmount failed - try unmount with truecrypt...&amp;quot;; /usr/bin/truecrypt -d $device || ( sudo -u &amp;quot;$username&amp;quot; notify-send -u critical -t 100000 &amp;quot;Undock error&amp;quot; &amp;quot;Could not unmount $device&amp;quot;; success=0 ) )&lt;br /&gt;
 		else&lt;br /&gt;
 			echo &amp;quot;  # sys path does not contain the path to the usb ports at the docking station&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 if [ ${success} -eq 1 ]&lt;br /&gt;
 then&lt;br /&gt;
 	sudo -u &amp;quot;$username&amp;quot; /usr/bin/notify-send &amp;quot;Undock Complete!&amp;quot; &amp;quot;All file systems mounted via docking station unmounted!&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Feel free to correct, enhance or customize the script. You can even [http://lukas-pirl.de/kontakt contact] the author of the script.&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47365</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47365"/>
		<updated>2010-03-04T00:47:30Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* What needs some Tweaks? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon HD 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
===Sound in KDE (Kubuntu) does not work===&lt;br /&gt;
Flash sound and/or Skype did not work. Other sounds are working. You have to switch sound settings, so that Pulse Audio is preferred before all other systems. System settings -&amp;gt; Multimedia -&amp;gt; Sound ouput.&lt;br /&gt;
&lt;br /&gt;
===Performance Problem with Window Unminimize and Resize ===&lt;br /&gt;
If you happen to use the following combination: gnome, compiz and proprietary ati/amd driver you are almost certainly experiencing performance problem when either resizing or unminimizing terminal window. Follow instructions provided [http://friendlytechninja.com/2009/11/29/howto-fix-performance-of-ati-drivers-with-compiz-on-ubuntu-9-10-karmic-koala/ here] to install modified version of X.&lt;br /&gt;
&lt;br /&gt;
Ubuntu Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/351186 351186]&lt;br /&gt;
&lt;br /&gt;
===CPU High Pitch Noise===&lt;br /&gt;
While running on battery power, T400 produces some high pitch noise on the its front left corner. It seems to be related to the CPU idle c-states, this has nothing to do with the speedstep. On C-States: [[http://www.intel.com/technology/itj/2006/volume10issue02/art03_Power_and_Thermal_Management/p03_power_management.htm]]. &lt;br /&gt;
&lt;br /&gt;
To eliminate the noise you have to disable C-States 3 and 4, to do so edit your &amp;quot;/etc/default/grub&amp;quot; where it says, GRUB_CMDLINE_LINUX = &amp;quot;&amp;quot; and input &amp;quot;processor.max_cstate=2&amp;quot;. If this entry does not exist, create it. If there is already something defined for it, include it with a space as separation mark. (e.g. GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;). This will increase your power consumption by 1W, from 15W to 16W more or less. &lt;br /&gt;
&lt;br /&gt;
Configuring your grub:&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option &amp;quot;processor.max_cstate=2&amp;quot; to the end of the line:&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are other possible solutions listed here: [[http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises#Solutions_for_CPU-triggered_noise]]; neither max_cstate=3 nor bm_history=0xFFFFFFFF have worked for me. Turning off CPU Power Management on BIOS works, but you can as well just add max_cstate to 2. At last I found this IBM report [[http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70669]], which suggests this could be related to usb devices not going to sleep. Michael Kiausch [[http://www.thinkwiki.org/wiki?title=Talk:Problem_with_high_pitch_noises]] reports having removed the usb controller module and solved his noise problem. However, usb controller modules are compiled inside the kernel on Ubuntu-9.10.&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you are dual-booting XP (or older) make sure you '''disable switchable graphics detection in the BIOS'''. If you don't when you boot Linux the BIOS will enable switchable graphics since apparently Linux is aware of it and later when you boot into XP with it still enabled you'll have problems (drivers won't load, etc).}}&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
The package hdaps-utils was deleted because it was &amp;quot;out of date and obsolete&amp;quot;! See here: https://launchpad.net/ubuntu/karmic/+source/hdaps-utils/0.1-1.1. I removed the part using hdaps-utils! Now everything is up to date and should work. &lt;br /&gt;
If you want to use hdaps-gl follow these instructions: [[How_to_protect_the_harddisk_through_APS#hdaps-gl|How_to_protect_the_harddisk_through_APS#hdaps-gl]]&lt;br /&gt;
&lt;br /&gt;
--[[User:jango|jango]] 20:44, 18 Jan 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe -a thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
====Undock from a docking station====&lt;br /&gt;
&lt;br /&gt;
I experienced that the docking station disconnects all devices immediately when the eject button is pressed. Even if you use a udev triggered script! This can end in data recovery if you have file systems mounted via the docking stations USB ports. You can use the following script to unmount all file systems from the docking station before ejecting your ThinkPad.&lt;br /&gt;
&lt;br /&gt;
'''Get the correct syspath'''&lt;br /&gt;
&lt;br /&gt;
The scripts needs to know which syspath points at the docking stations USB ports. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
Step 1: Plug a usb block device (i.e. usb key) into your docking station.&lt;br /&gt;
&lt;br /&gt;
Step 2: Run:&lt;br /&gt;
 mount&lt;br /&gt;
in the terminal and look for the device path - something like &amp;quot;/dev/sdb1&amp;quot; (should be the last line of the output).&lt;br /&gt;
&lt;br /&gt;
Step 3: Now run &lt;br /&gt;
 udevadm info --query=path --name=/dev/sdb1&lt;br /&gt;
with the device path from step 2 for &amp;quot;name=...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 4: You will get quite a long path - copy it to a temporary text file to remember it.&lt;br /&gt;
&lt;br /&gt;
Step 5: Repeat the procedure starting from step 1 with the next USB port from the docking station (I suggest for all the ports).&lt;br /&gt;
&lt;br /&gt;
Step 6: I recommend to attach a device to the notebook directly to see the differences in the syspaths.&lt;br /&gt;
&lt;br /&gt;
Step 7: The syspaths will contain a substring similar to /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5...&lt;br /&gt;
In my experiences this is the substring where you can identify an USB device as attached to the docking station. If not: compare the paths and try to find the longest common string for all the syspaths.&lt;br /&gt;
&lt;br /&gt;
'''The script'''&lt;br /&gt;
&lt;br /&gt;
Please enter your correct syspath and username in the config section. Save the script somewhere and remember to make it executable.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # http://lukas-pirl.de/ 01/2010&lt;br /&gt;
 ################## BEGIN config ##################&lt;br /&gt;
 # define as regular expression:&lt;br /&gt;
 syspath_usb_at_docking=&amp;quot;/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.*&amp;quot;&lt;br /&gt;
 # need the username to send notifications to the desktop:&lt;br /&gt;
 username=&amp;quot;YouUserName&amp;quot;&lt;br /&gt;
 ################## END config ##################&lt;br /&gt;
 # iterate through mounts (mtab and truecrypt):&lt;br /&gt;
 echo &amp;quot;# query truecrypt and /proc/mounts for mounts...&amp;quot;&lt;br /&gt;
 for mounted in $(truecrypt --text -l | cat /proc/mounts -)&lt;br /&gt;
 do&lt;br /&gt;
 	success=1&lt;br /&gt;
 	# check if it is really a mounted _device_ (starting with /dev/):&lt;br /&gt;
 	device=`/usr/bin/expr &amp;quot;$mounted&amp;quot; : '\(/dev/[^ ]*\)'`&lt;br /&gt;
 	if [ &amp;quot;$device&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
 	then&lt;br /&gt;
 		# check if device is attached to the docking station:&lt;br /&gt;
 		echo &amp;quot;# try to get sys path for $device...&amp;quot;&lt;br /&gt;
 		if [ `/usr/bin/expr &amp;quot;$(/sbin/udevadm info --query=path --name=${device})&amp;quot; : &amp;quot;$syspath_usb_at_docking&amp;quot;` -gt 0 ]&lt;br /&gt;
 		then&lt;br /&gt;
 			echo &amp;quot;  # try to unmount $device...&amp;quot;&lt;br /&gt;
 			/bin/umount $device || ( echo &amp;quot;# unmount failed - try unmount with truecrypt...&amp;quot;; /usr/bin/truecrypt -d $device || ( sudo -u &amp;quot;$username&amp;quot; notify-send -u critical -t 100000 &amp;quot;Undock error&amp;quot; &amp;quot;Could not unmount $device&amp;quot;; success=0 ) )&lt;br /&gt;
 		else&lt;br /&gt;
 			echo &amp;quot;  # sys path does not contain the path to the usb ports at the docking station&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 if [ ${success} -eq 1 ]&lt;br /&gt;
 then&lt;br /&gt;
 	sudo -u &amp;quot;$username&amp;quot; /usr/bin/notify-send &amp;quot;Undock Complete!&amp;quot; &amp;quot;All file systems mounted via docking station unmounted!&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Feel free to correct, enhance or customize the script. You can even [http://lukas-pirl.de/kontakt contact] the author of the script.&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47364</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=47364"/>
		<updated>2010-03-04T00:42:44Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* What needs some Tweaks? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Intel Gigabit Ethernet (10/100/1000) PCI-Express]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon HD 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
===Sound in KDE (Kubuntu) does not work===&lt;br /&gt;
Flash sound and/or Skype did not work. Other sounds are working. You have to switch sound settings, so that Pulse Audio is preferred before all other systems. System settings -&amp;gt; Multimedia -&amp;gt; Sound ouput.&lt;br /&gt;
&lt;br /&gt;
===Performance Problem with Window Unminimize and Resize ===&lt;br /&gt;
If you happen to use the following combination: gnome, compiz and proprietary ati/amd driver you are almost certainly experiencing performance problem when either resizing or unminimizing terminal window. Follow instructions provided [http://friendlytechninja.com/2009/11/29/howto-fix-performance-of-ati-drivers-with-compiz-on-ubuntu-9-10-karmic-koala/ here] to install modified version of X.&lt;br /&gt;
&lt;br /&gt;
Ubuntu Bug: [https://bugs.launchpad.net/ubuntu/+source/fglrx-installer/+bug/351186 351186]&lt;br /&gt;
&lt;br /&gt;
===CPU High Pitch Noise===&lt;br /&gt;
While running on battery power, T400 produces some high pitch noise on the its front left corner. It seems to be related to the CPU idle c-states, this has nothing to do with the speedstep. On C-States: [[http://www.intel.com/technology/itj/2006/volume10issue02/art03_Power_and_Thermal_Management/p03_power_management.htm]]. &lt;br /&gt;
&lt;br /&gt;
To eliminate the noise you have to disable C-States 3 and 4, to do so edit your &amp;quot;/etc/default/grub&amp;quot; where it says, GRUB_CMDLINE_LINUX = &amp;quot;&amp;quot; and input &amp;quot;processor.max_cstate=2&amp;quot;. If this entry does not exist, create it. If there is already something defined for it, include it with a space as separation mark. (e.g. GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot; processor.max_cstate=2&amp;quot;). This will increase your power consumption by 1W, from 15W to 16W more or less. &lt;br /&gt;
&lt;br /&gt;
There are other possible solutions listed here: [[http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises#Solutions_for_CPU-triggered_noise]]; neither max_cstate=3 nor bm_history=0xFFFFFFFF have worked for me. Turning off CPU Power Management on BIOS works, but you can as well just add max_cstate to 2. At last I found this IBM report [[http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70669]], which suggests this could be related to usb devices not going to sleep. Michael Kiausch [[http://www.thinkwiki.org/wiki?title=Talk:Problem_with_high_pitch_noises]] reports having removed the usb controller module and solved his noise problem. However, usb controller modules are compiled inside the kernel on Ubuntu-9.10.&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
{{WARN|If you are dual-booting XP (or older) make sure you '''disable switchable graphics detection in the BIOS'''. If you don't when you boot Linux the BIOS will enable switchable graphics since apparently Linux is aware of it and later when you boot into XP with it still enabled you'll have problems (drivers won't load, etc).}}&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
The package hdaps-utils was deleted because it was &amp;quot;out of date and obsolete&amp;quot;! See here: https://launchpad.net/ubuntu/karmic/+source/hdaps-utils/0.1-1.1. I removed the part using hdaps-utils! Now everything is up to date and should work. &lt;br /&gt;
If you want to use hdaps-gl follow these instructions: [[How_to_protect_the_harddisk_through_APS#hdaps-gl|How_to_protect_the_harddisk_through_APS#hdaps-gl]]&lt;br /&gt;
&lt;br /&gt;
--[[User:jango|jango]] 20:44, 18 Jan 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe -a thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
====Undock from a docking station====&lt;br /&gt;
&lt;br /&gt;
I experienced that the docking station disconnects all devices immediately when the eject button is pressed. Even if you use a udev triggered script! This can end in data recovery if you have file systems mounted via the docking stations USB ports. You can use the following script to unmount all file systems from the docking station before ejecting your ThinkPad.&lt;br /&gt;
&lt;br /&gt;
'''Get the correct syspath'''&lt;br /&gt;
&lt;br /&gt;
The scripts needs to know which syspath points at the docking stations USB ports. Follow these steps:&lt;br /&gt;
&lt;br /&gt;
Step 1: Plug a usb block device (i.e. usb key) into your docking station.&lt;br /&gt;
&lt;br /&gt;
Step 2: Run:&lt;br /&gt;
 mount&lt;br /&gt;
in the terminal and look for the device path - something like &amp;quot;/dev/sdb1&amp;quot; (should be the last line of the output).&lt;br /&gt;
&lt;br /&gt;
Step 3: Now run &lt;br /&gt;
 udevadm info --query=path --name=/dev/sdb1&lt;br /&gt;
with the device path from step 2 for &amp;quot;name=...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 4: You will get quite a long path - copy it to a temporary text file to remember it.&lt;br /&gt;
&lt;br /&gt;
Step 5: Repeat the procedure starting from step 1 with the next USB port from the docking station (I suggest for all the ports).&lt;br /&gt;
&lt;br /&gt;
Step 6: I recommend to attach a device to the notebook directly to see the differences in the syspaths.&lt;br /&gt;
&lt;br /&gt;
Step 7: The syspaths will contain a substring similar to /devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5...&lt;br /&gt;
In my experiences this is the substring where you can identify an USB device as attached to the docking station. If not: compare the paths and try to find the longest common string for all the syspaths.&lt;br /&gt;
&lt;br /&gt;
'''The script'''&lt;br /&gt;
&lt;br /&gt;
Please enter your correct syspath and username in the config section. Save the script somewhere and remember to make it executable.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 # http://lukas-pirl.de/ 01/2010&lt;br /&gt;
 ################## BEGIN config ##################&lt;br /&gt;
 # define as regular expression:&lt;br /&gt;
 syspath_usb_at_docking=&amp;quot;/devices/pci0000:00/0000:00:1a.7/usb1/1-5/1-5.*&amp;quot;&lt;br /&gt;
 # need the username to send notifications to the desktop:&lt;br /&gt;
 username=&amp;quot;YouUserName&amp;quot;&lt;br /&gt;
 ################## END config ##################&lt;br /&gt;
 # iterate through mounts (mtab and truecrypt):&lt;br /&gt;
 echo &amp;quot;# query truecrypt and /proc/mounts for mounts...&amp;quot;&lt;br /&gt;
 for mounted in $(truecrypt --text -l | cat /proc/mounts -)&lt;br /&gt;
 do&lt;br /&gt;
 	success=1&lt;br /&gt;
 	# check if it is really a mounted _device_ (starting with /dev/):&lt;br /&gt;
 	device=`/usr/bin/expr &amp;quot;$mounted&amp;quot; : '\(/dev/[^ ]*\)'`&lt;br /&gt;
 	if [ &amp;quot;$device&amp;quot; != &amp;quot;&amp;quot; ]&lt;br /&gt;
 	then&lt;br /&gt;
 		# check if device is attached to the docking station:&lt;br /&gt;
 		echo &amp;quot;# try to get sys path for $device...&amp;quot;&lt;br /&gt;
 		if [ `/usr/bin/expr &amp;quot;$(/sbin/udevadm info --query=path --name=${device})&amp;quot; : &amp;quot;$syspath_usb_at_docking&amp;quot;` -gt 0 ]&lt;br /&gt;
 		then&lt;br /&gt;
 			echo &amp;quot;  # try to unmount $device...&amp;quot;&lt;br /&gt;
 			/bin/umount $device || ( echo &amp;quot;# unmount failed - try unmount with truecrypt...&amp;quot;; /usr/bin/truecrypt -d $device || ( sudo -u &amp;quot;$username&amp;quot; notify-send -u critical -t 100000 &amp;quot;Undock error&amp;quot; &amp;quot;Could not unmount $device&amp;quot;; success=0 ) )&lt;br /&gt;
 		else&lt;br /&gt;
 			echo &amp;quot;  # sys path does not contain the path to the usb ports at the docking station&amp;quot;&lt;br /&gt;
 		fi&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
 if [ ${success} -eq 1 ]&lt;br /&gt;
 then&lt;br /&gt;
 	sudo -u &amp;quot;$username&amp;quot; /usr/bin/notify-send &amp;quot;Undock Complete!&amp;quot; &amp;quot;All file systems mounted via docking station unmounted!&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Feel free to correct, enhance or customize the script. You can even [http://lukas-pirl.de/kontakt contact] the author of the script.&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=45249</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=45249"/>
		<updated>2009-12-24T12:57:56Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
====Enabling it====&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Auto Re-enable Workaround====&lt;br /&gt;
The touchpad will be automatically enabled every time you hit a key on the keyboard (Bug #459832 [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/459832]]). In order to avoid that you have to install gsynaptics and unselect &amp;quot;Disable touchpad while typing&amp;quot;. To do it:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gsynaptics&lt;br /&gt;
&lt;br /&gt;
 Go to Menu: System-&amp;gt;Preferences-&amp;gt;Mouse-&amp;gt;Touchpad&lt;br /&gt;
 Under General unselect &amp;quot;Disable touchpad while typing&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also a graphical tool for configuring the trackpoint: [http://tpctl.sourceforge.net/configure-trackpoint.html Configure Trackpoint]&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
-----------------------------&lt;br /&gt;
'''This step is probably not necessary, at least on my t400 Load_Cycle_Count is stable.'''&lt;br /&gt;
-----------------------------&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
'''Install Packages:'''&lt;br /&gt;
&lt;br /&gt;
Since Karmic the packages were updated in the respiratory. So you only have to install this packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install tp-smapi-source hdapsd hdaps-utils&lt;br /&gt;
&lt;br /&gt;
Then use module-assistant to build tp-smapi:&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
'''Set Options:'''&lt;br /&gt;
&lt;br /&gt;
To load these modules on every startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
'''Test installation:'''&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Afterwards you can test hdaps-gl (with typing hdaps-gl in terminal) which shows the position of your Laptop.&lt;br /&gt;
&lt;br /&gt;
If the installation of hdapsd succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
'''Additional tools:'''&lt;br /&gt;
 &lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal (or create a new file, insert this lines and execute it with sudo):&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 mkdir gnome-hdaps&lt;br /&gt;
 cd gnome-hdaps&lt;br /&gt;
 wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 tar xfvz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
 sudo gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
 cd ..&lt;br /&gt;
 rm -R gnome-hdaps&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, next lines are to download, extract and move to the source directory, then we compile it and copy the files to several positions. At last clean up a little bit. Now you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44745</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44745"/>
		<updated>2009-11-12T10:37:53Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* Mute button */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /etc/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''APS with DKMS support for tp_smapi, visit:  http://code.google.com/p/tp-smapi-dkms-module/'''&lt;br /&gt;
&lt;br /&gt;
If you use APS with DKMS then you don't need to rebuild the module after kernel switch/update.&lt;br /&gt;
&lt;br /&gt;
DKMS: http://en.wikipedia.org/wiki/DKMS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
http://ubuntuforums.org/showthread.php?t=1017393&lt;br /&gt;
http://wiki.ubuntuusers.de/Festplattenschutz?highlight=festplattenschutz#Module_laden&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/297213/&lt;br /&gt;
http://www.thinkwiki.org/wiki/Talk:Install_Ubuntu_8.10_%28Intrepid_Ibex%29_on_a_Thinkpad_T400&lt;br /&gt;
http://www.thinkwiki.org/wiki/Tp_smapi#t…s_0x1600-0x161f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Here is a Step by Step guidance [[How to protect the harddisk through APS]] with Kernel 2.6.28!'''&lt;br /&gt;
&lt;br /&gt;
At first you have to delete existing kernel modules to make space for the new ones (Press ENTER after each line):&lt;br /&gt;
&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then downlaod the newest packages:&lt;br /&gt;
&lt;br /&gt;
You will need &lt;br /&gt;
*tp_smapi-0.4 from here: http://sourceforge.net/project/showfiles.php?group_id=1212&amp;amp;package_id=171579&lt;br /&gt;
*hdapsd-20090401.tar.gz from here: http://sourceforge.net/project/showfiles.php?group_id=138242&amp;amp;package_id=308030&lt;br /&gt;
*gnome-hdaps-applet-20081204.tar.gz from here: http://www.zen24593.zen.co.uk/hdaps/&lt;br /&gt;
&lt;br /&gt;
Save these things on your Desktop and unpack them, e.g.&lt;br /&gt;
&lt;br /&gt;
 tar xvfz hdapsd-20090401.tar.gz&lt;br /&gt;
 tar xvfz tp_smapi-0.40.tgz&lt;br /&gt;
 tar xvfz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then open the Terminal and type this to change into the tp_smapi directory:&lt;br /&gt;
&lt;br /&gt;
 cd Desktop/tp_smapi-0.40&lt;br /&gt;
&lt;br /&gt;
Then try to load the kernel modules:&lt;br /&gt;
&lt;br /&gt;
 make load HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
If there is written &amp;quot;drivers successfully loaded&amp;quot;, you can type this for installation:&lt;br /&gt;
&lt;br /&gt;
 make install HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
To laod these modules on startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then install these packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install hdaps-utils hdapsd&lt;br /&gt;
&lt;br /&gt;
Afterwards you can test hdaps-gl (with typing hdaps-gl in terminal) which shows the position of your Laptop.&lt;br /&gt;
&lt;br /&gt;
hdapsd is not working yet. Therefore we need to compile our newer version downloaded before. &lt;br /&gt;
&lt;br /&gt;
 cd Desktop/hdapsd-20090401/&lt;br /&gt;
 ./configure --prefix=/usr/&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
If compilation and installation succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
The last step is, to copy an overworked initiation-script over the existing one.&lt;br /&gt;
&lt;br /&gt;
The first line will download it, the second will set rights and the third one copies it to the right position. (Press ENTER after each!)&lt;br /&gt;
&lt;br /&gt;
 wget http://www.unet.univie.ac.at/~a0604095/hdapsd&lt;br /&gt;
 sudo chmod 733 hdapsd&lt;br /&gt;
 sudo cp hdapsd /etc/init.d/&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 cd Desktop/gnome-hdaps-applet-20081204&lt;br /&gt;
 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, second line is to move to the source directory (we have downloaded it looong time ago!), then we compile it and copy the files to several positions. After an reboot you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44744</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44744"/>
		<updated>2009-11-12T10:37:14Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /boot/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''APS with DKMS support for tp_smapi, visit:  http://code.google.com/p/tp-smapi-dkms-module/'''&lt;br /&gt;
&lt;br /&gt;
If you use APS with DKMS then you don't need to rebuild the module after kernel switch/update.&lt;br /&gt;
&lt;br /&gt;
DKMS: http://en.wikipedia.org/wiki/DKMS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
http://ubuntuforums.org/showthread.php?t=1017393&lt;br /&gt;
http://wiki.ubuntuusers.de/Festplattenschutz?highlight=festplattenschutz#Module_laden&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/297213/&lt;br /&gt;
http://www.thinkwiki.org/wiki/Talk:Install_Ubuntu_8.10_%28Intrepid_Ibex%29_on_a_Thinkpad_T400&lt;br /&gt;
http://www.thinkwiki.org/wiki/Tp_smapi#t…s_0x1600-0x161f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Here is a Step by Step guidance [[How to protect the harddisk through APS]] with Kernel 2.6.28!'''&lt;br /&gt;
&lt;br /&gt;
At first you have to delete existing kernel modules to make space for the new ones (Press ENTER after each line):&lt;br /&gt;
&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then downlaod the newest packages:&lt;br /&gt;
&lt;br /&gt;
You will need &lt;br /&gt;
*tp_smapi-0.4 from here: http://sourceforge.net/project/showfiles.php?group_id=1212&amp;amp;package_id=171579&lt;br /&gt;
*hdapsd-20090401.tar.gz from here: http://sourceforge.net/project/showfiles.php?group_id=138242&amp;amp;package_id=308030&lt;br /&gt;
*gnome-hdaps-applet-20081204.tar.gz from here: http://www.zen24593.zen.co.uk/hdaps/&lt;br /&gt;
&lt;br /&gt;
Save these things on your Desktop and unpack them, e.g.&lt;br /&gt;
&lt;br /&gt;
 tar xvfz hdapsd-20090401.tar.gz&lt;br /&gt;
 tar xvfz tp_smapi-0.40.tgz&lt;br /&gt;
 tar xvfz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then open the Terminal and type this to change into the tp_smapi directory:&lt;br /&gt;
&lt;br /&gt;
 cd Desktop/tp_smapi-0.40&lt;br /&gt;
&lt;br /&gt;
Then try to load the kernel modules:&lt;br /&gt;
&lt;br /&gt;
 make load HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
If there is written &amp;quot;drivers successfully loaded&amp;quot;, you can type this for installation:&lt;br /&gt;
&lt;br /&gt;
 make install HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
To laod these modules on startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then install these packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install hdaps-utils hdapsd&lt;br /&gt;
&lt;br /&gt;
Afterwards you can test hdaps-gl (with typing hdaps-gl in terminal) which shows the position of your Laptop.&lt;br /&gt;
&lt;br /&gt;
hdapsd is not working yet. Therefore we need to compile our newer version downloaded before. &lt;br /&gt;
&lt;br /&gt;
 cd Desktop/hdapsd-20090401/&lt;br /&gt;
 ./configure --prefix=/usr/&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
If compilation and installation succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
The last step is, to copy an overworked initiation-script over the existing one.&lt;br /&gt;
&lt;br /&gt;
The first line will download it, the second will set rights and the third one copies it to the right position. (Press ENTER after each!)&lt;br /&gt;
&lt;br /&gt;
 wget http://www.unet.univie.ac.at/~a0604095/hdapsd&lt;br /&gt;
 sudo chmod 733 hdapsd&lt;br /&gt;
 sudo cp hdapsd /etc/init.d/&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 cd Desktop/gnome-hdaps-applet-20081204&lt;br /&gt;
 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, second line is to move to the source directory (we have downloaded it looong time ago!), then we compile it and copy the files to several positions. After an reboot you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44743</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44743"/>
		<updated>2009-11-12T10:21:11Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Trackpoint and Touchpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /boot/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''APS with DKMS support for tp_smapi, visit:  http://code.google.com/p/tp-smapi-dkms-module/'''&lt;br /&gt;
&lt;br /&gt;
If you use APS with DKMS then you don't need to rebuild the module after kernel switch/update.&lt;br /&gt;
&lt;br /&gt;
DKMS: http://en.wikipedia.org/wiki/DKMS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
http://ubuntuforums.org/showthread.php?t=1017393&lt;br /&gt;
http://wiki.ubuntuusers.de/Festplattenschutz?highlight=festplattenschutz#Module_laden&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/297213/&lt;br /&gt;
http://www.thinkwiki.org/wiki/Talk:Install_Ubuntu_8.10_%28Intrepid_Ibex%29_on_a_Thinkpad_T400&lt;br /&gt;
http://www.thinkwiki.org/wiki/Tp_smapi#t…s_0x1600-0x161f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Here is a Step by Step guidance [[How to protect the harddisk through APS]] with Kernel 2.6.28!'''&lt;br /&gt;
&lt;br /&gt;
At first you have to delete existing kernel modules to make space for the new ones (Press ENTER after each line):&lt;br /&gt;
&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then downlaod the newest packages:&lt;br /&gt;
&lt;br /&gt;
You will need &lt;br /&gt;
*tp_smapi-0.4 from here: http://sourceforge.net/project/showfiles.php?group_id=1212&amp;amp;package_id=171579&lt;br /&gt;
*hdapsd-20090401.tar.gz from here: http://sourceforge.net/project/showfiles.php?group_id=138242&amp;amp;package_id=308030&lt;br /&gt;
*gnome-hdaps-applet-20081204.tar.gz from here: http://www.zen24593.zen.co.uk/hdaps/&lt;br /&gt;
&lt;br /&gt;
Save these things on your Desktop and unpack them, e.g.&lt;br /&gt;
&lt;br /&gt;
 tar xvfz hdapsd-20090401.tar.gz&lt;br /&gt;
 tar xvfz tp_smapi-0.40.tgz&lt;br /&gt;
 tar xvfz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then open the Terminal and type this to change into the tp_smapi directory:&lt;br /&gt;
&lt;br /&gt;
 cd Desktop/tp_smapi-0.40&lt;br /&gt;
&lt;br /&gt;
Then try to load the kernel modules:&lt;br /&gt;
&lt;br /&gt;
 make load HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
If there is written &amp;quot;drivers successfully loaded&amp;quot;, you can type this for installation:&lt;br /&gt;
&lt;br /&gt;
 make install HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
To laod these modules on startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then install these packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install hdaps-utils hdapsd&lt;br /&gt;
&lt;br /&gt;
Afterwards you can test hdaps-gl (with typing hdaps-gl in terminal) which shows the position of your Laptop.&lt;br /&gt;
&lt;br /&gt;
hdapsd is not working yet. Therefore we need to compile our newer version downloaded before. &lt;br /&gt;
&lt;br /&gt;
 cd Desktop/hdapsd-20090401/&lt;br /&gt;
 ./configure --prefix=/usr/&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
If compilation and installation succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
The last step is, to copy an overworked initiation-script over the existing one.&lt;br /&gt;
&lt;br /&gt;
The first line will download it, the second will set rights and the third one copies it to the right position. (Press ENTER after each!)&lt;br /&gt;
&lt;br /&gt;
 wget http://www.unet.univie.ac.at/~a0604095/hdapsd&lt;br /&gt;
 sudo chmod 733 hdapsd&lt;br /&gt;
 sudo cp hdapsd /etc/init.d/&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 cd Desktop/gnome-hdaps-applet-20081204&lt;br /&gt;
 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, second line is to move to the source directory (we have downloaded it looong time ago!), then we compile it and copy the files to several positions. After an reboot you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44742</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44742"/>
		<updated>2009-11-12T10:16:44Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Touchpoint and Trackpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /boot/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
===Scrolling with Trackpoint===&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
===Enabling Touchpad on/off key===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
===Configuring Trackpoint's sensitivity and speed on start===&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
===Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround===&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
===Notebook-Harddrive Bug===&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''APS with DKMS support for tp_smapi, visit:  http://code.google.com/p/tp-smapi-dkms-module/'''&lt;br /&gt;
&lt;br /&gt;
If you use APS with DKMS then you don't need to rebuild the module after kernel switch/update.&lt;br /&gt;
&lt;br /&gt;
DKMS: http://en.wikipedia.org/wiki/DKMS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
http://ubuntuforums.org/showthread.php?t=1017393&lt;br /&gt;
http://wiki.ubuntuusers.de/Festplattenschutz?highlight=festplattenschutz#Module_laden&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/297213/&lt;br /&gt;
http://www.thinkwiki.org/wiki/Talk:Install_Ubuntu_8.10_%28Intrepid_Ibex%29_on_a_Thinkpad_T400&lt;br /&gt;
http://www.thinkwiki.org/wiki/Tp_smapi#t…s_0x1600-0x161f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Here is a Step by Step guidance [[How to protect the harddisk through APS]] with Kernel 2.6.28!'''&lt;br /&gt;
&lt;br /&gt;
At first you have to delete existing kernel modules to make space for the new ones (Press ENTER after each line):&lt;br /&gt;
&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then downlaod the newest packages:&lt;br /&gt;
&lt;br /&gt;
You will need &lt;br /&gt;
*tp_smapi-0.4 from here: http://sourceforge.net/project/showfiles.php?group_id=1212&amp;amp;package_id=171579&lt;br /&gt;
*hdapsd-20090401.tar.gz from here: http://sourceforge.net/project/showfiles.php?group_id=138242&amp;amp;package_id=308030&lt;br /&gt;
*gnome-hdaps-applet-20081204.tar.gz from here: http://www.zen24593.zen.co.uk/hdaps/&lt;br /&gt;
&lt;br /&gt;
Save these things on your Desktop and unpack them, e.g.&lt;br /&gt;
&lt;br /&gt;
 tar xvfz hdapsd-20090401.tar.gz&lt;br /&gt;
 tar xvfz tp_smapi-0.40.tgz&lt;br /&gt;
 tar xvfz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then open the Terminal and type this to change into the tp_smapi directory:&lt;br /&gt;
&lt;br /&gt;
 cd Desktop/tp_smapi-0.40&lt;br /&gt;
&lt;br /&gt;
Then try to load the kernel modules:&lt;br /&gt;
&lt;br /&gt;
 make load HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
If there is written &amp;quot;drivers successfully loaded&amp;quot;, you can type this for installation:&lt;br /&gt;
&lt;br /&gt;
 make install HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
To laod these modules on startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then install these packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install hdaps-utils hdapsd&lt;br /&gt;
&lt;br /&gt;
Afterwards you can test hdaps-gl (with typing hdaps-gl in terminal) which shows the position of your Laptop.&lt;br /&gt;
&lt;br /&gt;
hdapsd is not working yet. Therefore we need to compile our newer version downloaded before. &lt;br /&gt;
&lt;br /&gt;
 cd Desktop/hdapsd-20090401/&lt;br /&gt;
 ./configure --prefix=/usr/&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
If compilation and installation succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
The last step is, to copy an overworked initiation-script over the existing one.&lt;br /&gt;
&lt;br /&gt;
The first line will download it, the second will set rights and the third one copies it to the right position. (Press ENTER after each!)&lt;br /&gt;
&lt;br /&gt;
 wget http://www.unet.univie.ac.at/~a0604095/hdapsd&lt;br /&gt;
 sudo chmod 733 hdapsd&lt;br /&gt;
 sudo cp hdapsd /etc/init.d/&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 cd Desktop/gnome-hdaps-applet-20081204&lt;br /&gt;
 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, second line is to move to the source directory (we have downloaded it looong time ago!), then we compile it and copy the files to several positions. After an reboot you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
Not tested yet.&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44741</id>
		<title>Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Install_Ubuntu_9.10_(Karmic_Koala)_on_a_ThinkPad_T400&amp;diff=44741"/>
		<updated>2009-11-12T10:11:10Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: â†Created page with 'T400  ==Before Installation==  Before you can start Ubuntu from CD or USB you have to change two BIOS settings: * Change to Internal or ATI Graphics wit...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[:Category:T400|T400]]&lt;br /&gt;
&lt;br /&gt;
==Before Installation==&lt;br /&gt;
&lt;br /&gt;
Before you can start Ubuntu from CD or USB you have to change two BIOS settings:&lt;br /&gt;
* Change to Internal or ATI Graphics with Config --&amp;gt; Display --&amp;gt; Graphics Device --&amp;gt; [Integrated graphics] or [Discrete Graphics]&lt;br /&gt;
* Disable OS Detection for Switchable Graphics. Otherwise it will mysteriously switch back to Switchable Graphics.&lt;br /&gt;
&lt;br /&gt;
Now you can boot your Live-CD, connect to Wireless Lan, and install the OS.&lt;br /&gt;
&lt;br /&gt;
==What works out of the box?==&lt;br /&gt;
&lt;br /&gt;
*Wireless with iwlagn driver ([[Intel WiFi Link 5100/5300 WLAN controller]])&lt;br /&gt;
**G mode + WEP and WPA2 PSK&lt;br /&gt;
**with status LED and everything!&lt;br /&gt;
*Bluetooth&lt;br /&gt;
**Even with [[Bluetooth Laser Mouse]]&lt;br /&gt;
*[[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Intel driver for Integrated Graphics (Intel Integrated [[Intel GMA 4500MHD]])&lt;br /&gt;
** with 3D acceleration out-of-the-box&lt;br /&gt;
*ATI [[fglrx]] driver for Discrete Graphics ([[ATI Mobility Radeon 3470]] graphics)&lt;br /&gt;
**To enjoy 3D acceleration, you have to install the proprietary [[fglrx]] Driver. (for example with the jockey-gtk tool)&lt;br /&gt;
*VGA/HDMI output&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Sound card&lt;br /&gt;
*Optical drive (Including DVD burning)&lt;br /&gt;
*built-in webcam (tested with skype, cheese and vlc media player)&lt;br /&gt;
*7-in-1 card reader from Ricoh (MMC, Memory Stick, Mem Stick Pro, SD, SDHC, XD, XD Type H Memory)&lt;br /&gt;
*Touchpoint and Trackpad&lt;br /&gt;
**Including scroll at the right side of the pad by default. (for scrolling with the middle mouse button, see below!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Control buttons/Hotkeys&lt;br /&gt;
**Volume control buttons&lt;br /&gt;
**Screen brightness control (FN + Home/End)&lt;br /&gt;
**Thinklight control (FN + PgUp)&lt;br /&gt;
**WLAN/BT/OFF toggle (Fn+F5 press once: Wlan and BT off/Press second time: BT off, Wlan on/Third time: BT on, Wlan off/Press another time: BT and Wlan on)&lt;br /&gt;
**To add a bluetooth-only-toggle (Fn+F6) that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]&lt;br /&gt;
**Wlan/BT hardware switch&lt;br /&gt;
**Media player control (FN + arrows)&lt;br /&gt;
**Browser history buttons&lt;br /&gt;
**Switch to extern Monitor (FN + F7 press once: picture on both monitors/Second time: on external Monitor/Third time: Laptop monitor)&lt;br /&gt;
**Suspend shortcut (FN + F4)&lt;br /&gt;
**Hibernate shortcut (FN + F12)&lt;br /&gt;
**Battery info shortcut (FN + F3)&lt;br /&gt;
**Screenlock shortcut (FN + F2)&lt;br /&gt;
**dock eject button (FN + F9) not tested yet!&lt;br /&gt;
**[[ThinkVantage Button]] (You only have to allocate a programm!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Some ACPI features&lt;br /&gt;
**Battery status, power graphs and history (tested with an single 6-Cell battery)&lt;br /&gt;
**Lid states and events&lt;br /&gt;
*Suspend/Hibernate&lt;br /&gt;
&lt;br /&gt;
==What needs some Tweaks?==&lt;br /&gt;
&lt;br /&gt;
===Mute button=== &lt;br /&gt;
&lt;br /&gt;
The Mute button only mutes the sound but no induction in the gnome volume indicator. &lt;br /&gt;
To fix this you must edit your grub configuration adding a kernel option acpi_osi=&amp;quot;Linux&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Configure your grub&lt;br /&gt;
 &amp;gt; sudo vim /boot/default/grub&lt;br /&gt;
&lt;br /&gt;
Look for the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the kernel option to the end of the line:&lt;br /&gt;
 # GRUB_CMDLINE_LINUX=&amp;quot;acpi_osi=&amp;quot;Linux&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Save the file, then update grub&lt;br /&gt;
 &amp;gt; sudo update-grub&lt;br /&gt;
&lt;br /&gt;
====Scrolling with Trackpoint====&lt;br /&gt;
&lt;br /&gt;
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi&lt;br /&gt;
&lt;br /&gt;
And fill it with this code:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt; &amp;lt;!-- -*- SGML -*- --&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.ZAxsisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
  &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;/match&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: [http://psung.blogspot.com/2008/09/scrolling-with-thinkpads-trackpoint-in.html]&lt;br /&gt;
&lt;br /&gt;
(Based on code from [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/ Michael Vogt] and adapted to support both vertical and horizontal scrolling.)&lt;br /&gt;
&lt;br /&gt;
====Enabling Touchpad on/off key====&lt;br /&gt;
&lt;br /&gt;
Source: [[https://help.ubuntu.com/community/SynapticsTouchpad#shmconfig]]&lt;br /&gt;
The SHMConfig is now controlled through hal. In the past this was done through xorg.conf&lt;br /&gt;
&lt;br /&gt;
You have to add the file &lt;br /&gt;
 {{cmduser|sudo gedit /etc/hal/fdi/policy/shmconfig.fdi}}&lt;br /&gt;
with the following content:&lt;br /&gt;
 &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
 &amp;lt;deviceinfo version=&amp;quot;0.2&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;device&amp;gt;&lt;br /&gt;
   &amp;lt;match key=&amp;quot;input.x11_driver&amp;quot; string=&amp;quot;synaptics&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;merge key=&amp;quot;input.x11_options.SHMConfig&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;True&amp;lt;/merge&amp;gt;&lt;br /&gt;
   &amp;lt;/match&amp;gt;&lt;br /&gt;
  &amp;lt;/device&amp;gt;&lt;br /&gt;
 &amp;lt;/deviceinfo&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this change please reboot. Restarting hal doesn't help.&lt;br /&gt;
&lt;br /&gt;
====Configuring Trackpoint's sensitivity and speed on start====&lt;br /&gt;
&lt;br /&gt;
Source: [[http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint]]&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
    # echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    # echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable. Do it as root, sudo does not work. Instead use &amp;quot;sudo -i&amp;quot; or &amp;quot;sudo su&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots. In Ubuntu 9.10, add the lines to /etc/rc.local before the exit 0 line:&lt;br /&gt;
&lt;br /&gt;
    # By default this script does nothing.&lt;br /&gt;
    &lt;br /&gt;
    echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed &lt;br /&gt;
    echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
    &lt;br /&gt;
    exit 0&lt;br /&gt;
&lt;br /&gt;
====Gnome Power Manager: Put computer to sleep when inactive for: XX Minutes workaround====&lt;br /&gt;
&lt;br /&gt;
Type ALT+F2, input gconf-editor and click on Run. Navigate to /apps/gnome-power-manager/actions. Notice that sleep_type_battery has no value defined. Click on it, select options with the right mouse button, click on Edit key... Set value to hibernate or suspend whatever you want. &lt;br /&gt;
&lt;br /&gt;
Now your computer should suspend or hibernate after the idle time you set on gnome-power-manager. Remember that this time starts only after the screensaver has jumped in. That's 5 minutes standard. So if you set 10 minutes it will sleep after 15 minutes idle time. &lt;br /&gt;
&lt;br /&gt;
====Notebook-Harddrive Bug====&lt;br /&gt;
&lt;br /&gt;
Source: [[https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695]]&lt;br /&gt;
&lt;br /&gt;
Change &amp;quot;BATT_HD_POWERMGMT=1&amp;quot; in /etc/laptop-mode/laptop-mode.conf to an higher value to stop permanent harddrive-parking! Line 238, 200 seems to be a reasonable value:&lt;br /&gt;
&lt;br /&gt;
    BATT_HD_POWERMGMT=200&lt;br /&gt;
&lt;br /&gt;
====[[Active Protection System]]====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''APS with DKMS support for tp_smapi, visit:  http://code.google.com/p/tp-smapi-dkms-module/'''&lt;br /&gt;
&lt;br /&gt;
If you use APS with DKMS then you don't need to rebuild the module after kernel switch/update.&lt;br /&gt;
&lt;br /&gt;
DKMS: http://en.wikipedia.org/wiki/DKMS&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sources:&lt;br /&gt;
http://ubuntuforums.org/showthread.php?t=1017393&lt;br /&gt;
http://wiki.ubuntuusers.de/Festplattenschutz?highlight=festplattenschutz#Module_laden&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/hdapsd/+bug/303915/&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/297213/&lt;br /&gt;
http://www.thinkwiki.org/wiki/Talk:Install_Ubuntu_8.10_%28Intrepid_Ibex%29_on_a_Thinkpad_T400&lt;br /&gt;
http://www.thinkwiki.org/wiki/Tp_smapi#t…s_0x1600-0x161f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Here is a Step by Step guidance [[How to protect the harddisk through APS]] with Kernel 2.6.28!'''&lt;br /&gt;
&lt;br /&gt;
At first you have to delete existing kernel modules to make space for the new ones (Press ENTER after each line):&lt;br /&gt;
&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko&lt;br /&gt;
 sudo rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then downlaod the newest packages:&lt;br /&gt;
&lt;br /&gt;
You will need &lt;br /&gt;
*tp_smapi-0.4 from here: http://sourceforge.net/project/showfiles.php?group_id=1212&amp;amp;package_id=171579&lt;br /&gt;
*hdapsd-20090401.tar.gz from here: http://sourceforge.net/project/showfiles.php?group_id=138242&amp;amp;package_id=308030&lt;br /&gt;
*gnome-hdaps-applet-20081204.tar.gz from here: http://www.zen24593.zen.co.uk/hdaps/&lt;br /&gt;
&lt;br /&gt;
Save these things on your Desktop and unpack them, e.g.&lt;br /&gt;
&lt;br /&gt;
 tar xvfz hdapsd-20090401.tar.gz&lt;br /&gt;
 tar xvfz tp_smapi-0.40.tgz&lt;br /&gt;
 tar xvfz gnome-hdaps-applet-20081204.tar.gz&lt;br /&gt;
&lt;br /&gt;
Then open the Terminal and type this to change into the tp_smapi directory:&lt;br /&gt;
&lt;br /&gt;
 cd Desktop/tp_smapi-0.40&lt;br /&gt;
&lt;br /&gt;
Then try to load the kernel modules:&lt;br /&gt;
&lt;br /&gt;
 make load HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
If there is written &amp;quot;drivers successfully loaded&amp;quot;, you can type this for installation:&lt;br /&gt;
&lt;br /&gt;
 make install HDAPS=1 FORCE_IO=1&lt;br /&gt;
&lt;br /&gt;
To laod these modules on startup you have to write them into the /etc/modules file:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modules&lt;br /&gt;
&lt;br /&gt;
Append this to the file:&lt;br /&gt;
&lt;br /&gt;
 thinkpad_ec	&lt;br /&gt;
 tp_smapi&lt;br /&gt;
 hdaps&lt;br /&gt;
&lt;br /&gt;
We also need options to load these modules correctly. They have to be written in /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/modprobe.d/local.conf&lt;br /&gt;
&lt;br /&gt;
Fill the file with this code&lt;br /&gt;
&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 options hdaps invert=1&lt;br /&gt;
&lt;br /&gt;
Now you can try, if the modules are loaded yet. Do so with &lt;br /&gt;
&lt;br /&gt;
 lsmod | grep hdaps&lt;br /&gt;
&lt;br /&gt;
if not perform:&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe thinkpad_ec tp_smapi hdaps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then install these packages:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install hdaps-utils hdapsd&lt;br /&gt;
&lt;br /&gt;
Afterwards you can test hdaps-gl (with typing hdaps-gl in terminal) which shows the position of your Laptop.&lt;br /&gt;
&lt;br /&gt;
hdapsd is not working yet. Therefore we need to compile our newer version downloaded before. &lt;br /&gt;
&lt;br /&gt;
 cd Desktop/hdapsd-20090401/&lt;br /&gt;
 ./configure --prefix=/usr/&lt;br /&gt;
 make&lt;br /&gt;
 sudo make install&lt;br /&gt;
&lt;br /&gt;
If compilation and installation succeeded, you can test it by typing this into your terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo hdapsd -d sda -s 15 -a -v -y &lt;br /&gt;
&lt;br /&gt;
If you suddenly move your laptop the output will change! (stop it with pressing Ctr + C)&lt;br /&gt;
&lt;br /&gt;
The last step is, to copy an overworked initiation-script over the existing one.&lt;br /&gt;
&lt;br /&gt;
The first line will download it, the second will set rights and the third one copies it to the right position. (Press ENTER after each!)&lt;br /&gt;
&lt;br /&gt;
 wget http://www.unet.univie.ac.at/~a0604095/hdapsd&lt;br /&gt;
 sudo chmod 733 hdapsd&lt;br /&gt;
 sudo cp hdapsd /etc/init.d/&lt;br /&gt;
&lt;br /&gt;
Now you can start hdapsd with typing&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/hdapsd start&lt;br /&gt;
&lt;br /&gt;
After an reboot everything should start automatically and work correctly! You can change the sensitivity value and other things in this file: &amp;quot;'''/etc/default/hdapsd'''&amp;quot;. &lt;br /&gt;
To see the effects you have to type &amp;quot;sudo /etc/init.d/hdapsd restart&amp;quot; to restart hdapsd!&lt;br /&gt;
&lt;br /&gt;
To install the gnome-panel-applet type these lines into the terminal:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install libpanel-applet2-dev&lt;br /&gt;
 cd Desktop/gnome-hdaps-applet-20081204&lt;br /&gt;
 gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c&lt;br /&gt;
 sudo cp gnome-hdaps-applet /usr/bin/&lt;br /&gt;
 sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/&lt;br /&gt;
 sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
The first line is to install required deps, second line is to move to the source directory (we have downloaded it looong time ago!), then we compile it and copy the files to several positions. After an reboot you can add this applet to the panel!&lt;br /&gt;
&lt;br /&gt;
Please feel free to correct mistakes. If you have trouble, don't be shy and contact me with jabber: jango4@jabber.org&lt;br /&gt;
&lt;br /&gt;
==What doesn't work at the moment?==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====[[Integrated Fingerprint Reader]]====&lt;br /&gt;
&lt;br /&gt;
There is a new chipset build in, the &amp;quot;AuthenTec AES2810&amp;quot;. So neither the [http://thinkfinger.sourceforge.net thinkfinger] nor the [http://www.reactivated.net/fprint/wiki/Main_Page fprint] Project support this Device at the moment.&lt;br /&gt;
&lt;br /&gt;
 lsusb:&lt;br /&gt;
 Bus 002 Device 004: ID 08ff:2810 AuthenTec, Inc.&lt;br /&gt;
&lt;br /&gt;
Daniel from fprint Project wrote in their mailing list, that support for our device is in development!&lt;br /&gt;
For more information look here: [http://reactivated.net/fprint/wiki/Unsupported_devices fprint Unsupported devices]&lt;br /&gt;
&lt;br /&gt;
====[[Switchable Graphics]]====&lt;br /&gt;
&lt;br /&gt;
==Not tested yet==&lt;br /&gt;
&lt;br /&gt;
==Upgrading from earlier versions of Ubuntu==&lt;br /&gt;
&lt;br /&gt;
====Resume/Suspend problems====&lt;br /&gt;
If you have problems with resume/suspend, first try if it works from the LiveCD. If LiveCD works, the problem must be in your Ubuntu configuration.&lt;br /&gt;
Try reinstalling acpi-support and laptop-mode-tools:&lt;br /&gt;
 sudo apt-get remove --purge laptop-mode-tools acpi-support&lt;br /&gt;
 sudo apt-get install laptop-mode-tools acpi-support&lt;br /&gt;
If this doesn't help, check the files in /etc/hal/fdi/information directory and remove the unnecessary files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:T400]][[Category:Ubuntu]][[Category:Ubuntu_9.10]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Category:T400&amp;diff=44740</id>
		<title>Category:T400</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Category:T400&amp;diff=44740"/>
		<updated>2009-11-11T20:52:10Z</updated>

		<summary type="html">&lt;p&gt;Rfajardo: /* Linux Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin: 0; margin-right:10px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#F8F8FF; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
=== ThinkPad T400 ===&lt;br /&gt;
This page gives an overview of all ThinkPad T400 related topics.&lt;br /&gt;
&lt;br /&gt;
Page under construction&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Standard Features ====&lt;br /&gt;
&lt;br /&gt;
*One of the following [[Intel Core 2 Duo (Penryn)]] processors:&lt;br /&gt;
** Intel® Core™2 Duo processor P8400 (2.26GHz, 3MB L2, 1066MHz FSB, TDP 25W)&lt;br /&gt;
** Intel® Core™2 Duo processor P8600 (2.4GHz, 3MB L2, 1066MHz FSB, TDP 25W)&lt;br /&gt;
** Intel® Core™2 Duo processor P8700 (2.53GHz, 3MB L2, 1066MHz FSB, TDP 25W)&lt;br /&gt;
** Intel® Core™2 Duo processor T9400 (2.53GHz, 6MB L2, 1066MHz FSB, TDP 35W)&lt;br /&gt;
** Intel® Core™2 Duo processor P9500 (2.53GHz, 6MB L2, 1066MHz FSB, TDP 25W)&lt;br /&gt;
** Intel® Core™2 Duo processor T9600 (2.8GHz, 6MB L2, 1066MHz FSB, TDP 35W)&lt;br /&gt;
* One of the following graphics adapters option:&lt;br /&gt;
** [[Intel Graphics Media Accelerator 4500MHD]]&lt;br /&gt;
** [[ATI Mobility Radeon HD 3470]] (256 MB) at the same time (so called &amp;quot;[[Switchable Graphics]]&amp;quot;)&lt;br /&gt;
* One of the following [[TFT display]]s:&lt;br /&gt;
** 14.1&amp;quot; TFT display with 1280x800 (WXGA) resolution&lt;br /&gt;
** 14.1&amp;quot; TFT display with 1440x900 (WXGA+) resolution&lt;br /&gt;
** 14.1&amp;quot; TFT display with 1440x900 (WXGA+) resolution with LED backlight&lt;br /&gt;
* 2GB [[PC3-8500]] memory standard upgradable to 8GB&lt;br /&gt;
* 200GB 7200rpm 2.5&amp;quot; SATA HDD (available with encryption)&lt;br /&gt;
* 160GB 7200rpm 2.5&amp;quot; SATA HDD&lt;br /&gt;
* 320GB 5400rpm 2.5&amp;quot; SATA HDD&lt;br /&gt;
** [[Full Disk Encryption (FDE)]] Available on some models&lt;br /&gt;
* [[Ethernet Controllers#Intel Gigabit (10/100/1000)|Intel Gigabit Ethernet Controller]]&lt;br /&gt;
* [[Ultrabay|Serial Ultrabay Slim]] with one of the following:&lt;br /&gt;
** None (empty) &lt;br /&gt;
**[[Serial Ultrabay Slim DVD-ROM Drive]]&lt;br /&gt;
**[[Serial Ultrabay Slim CD-RW/DVD combo Drive]]&lt;br /&gt;
**[[Serial Ultrabay Slim DVD Multi III Drive]] (8x Dual Layer)&lt;br /&gt;
**[[Serial Ultrabay Slim Blu Ray Drive]]&lt;br /&gt;
* [[MiniPCI Express slot]] 1 with one of the following:&lt;br /&gt;
** None (empty)&lt;br /&gt;
** [[Intel WiFi Link 5100/5300 WLAN controller]]&lt;br /&gt;
** [[Intel WiMAX/WiFi Link 5150/5350 WiFi/WiMAX controller]]&lt;br /&gt;
* [[MiniPCI Express slot]] 2 with one of the following:&lt;br /&gt;
** None (empty)&lt;br /&gt;
** [[Verizon 1xEV-DO WWAN]] (It seems to be a Sierra Wireless MC5720 Modem)&lt;br /&gt;
** [[Cingular HSDPA WWAN]] (Sierra Wireless MC8775)&lt;br /&gt;
* [[MiniPCI Express slot]] 3 with one of the following (this slot only takes cards 1/2 length, ie most wlan/wwan cards will not fit, only things like intel turbo memory, and some bluetooth cards will fit):&lt;br /&gt;
** None (empty)&lt;br /&gt;
** [[Intel® Turbo Memory hard drive cache]] up to 2GB&lt;br /&gt;
* [[ExpressCard slot|ExpressCard/54 slot]]&lt;br /&gt;
* 1 Slot with one of the following:&lt;br /&gt;
** 1 [[CardBus slot]] (Type 2)&lt;br /&gt;
** [[Lenovo Integrated Smart Card Reader]]&lt;br /&gt;
** [[Ricoh_R5C843|4-in-1 Memory reader]] (or 7-in-1)&lt;br /&gt;
* [[Embedded Security Subsystem|IBM Embedded Security Subsystem 2.0]]&lt;br /&gt;
* [[Active Protection System|IBM Active Protection System]]&lt;br /&gt;
* [[Integrated Fingerprint Reader]] on select models&lt;br /&gt;
* [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|Bluetooth]] on select models (Note: Bluetooth can only be toggled together with WLAN on and off, to add a bluetooth-only-toggle that doesn't affect WLAN take a look [[ThinkPad_Bluetooth_with_Enhanced_Data_Rate_(BDC-2)|here]]).&lt;br /&gt;
* [[UltraNav]] (TrackPoint / Touchpad combo)&lt;br /&gt;
* IEEE1394 Firewire (Ricoh Co Ltd R5C832 IEEE 1394 Controller)&lt;br /&gt;
* [[Intel Active Management Technology (AMT)]] on select models&lt;br /&gt;
* integrated webcam on select models&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
[[Image:ThinkPadT400.jpg|ThinkPad T400|300px]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Resources ===&lt;br /&gt;
* [http://www-307.ibm.com/pc/support/site.wss/product.do?template=/product.do?template=%2Fproductpage%2Flandingpages%2FproductPageLandingPage.vm&amp;amp;sitestyle=lenovo&amp;amp;brandind=10&amp;amp;familyind=422606&amp;amp;machineind=0&amp;amp;modelind=0&amp;amp;partnumberind=0&amp;amp;subcategoryind=0&amp;amp;doctypeind=9&amp;amp;doccategoryind=0&amp;amp;operatingsystemind=49979&amp;amp;validate=true Lenovo Product page]&lt;br /&gt;
* [http://www5.pc.ibm.com/europe/me.nsf/webdocs-L/Data+Sheet:EMEA_Datasheet+ThinkPad+T400_T500+notebooks:English/$FILE/EMEA_DS_Q2_09_1746.pdf EMEA_Datasheet ThinkPad T400 T500 notebooks - 13 Aug 2008 (PDF 3791751 Bytes)]&lt;br /&gt;
* [http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&amp;amp;lndocid=MIGR-70069 Hardware Maintenance Manual]&lt;br /&gt;
&lt;br /&gt;
=== Reviews ===&lt;br /&gt;
* [http://www.notebookreview.com/default.asp?newsID=4946 www.notebookreview.com] 2009-04-03 (Updated)&lt;br /&gt;
* [http://www.pcworld.com/reviews/product/43937/review/thinkpad_t400.html www.pcworld.com] 2009-03-11&lt;br /&gt;
* [http://www.notebookreview.com/default.asp?newsID=4569 www.notebookreview.com] 2008-10-27&lt;br /&gt;
* [http://www.notebookjournal.de/tests/648 www.notebookjournal.de] 2008-10-27&lt;br /&gt;
* [http://www.pcmag.com/article2/0,2817,2330565,00.asp www.pcmag.com] 2008-10-27&lt;br /&gt;
&lt;br /&gt;
=== Linux Installation ===&lt;br /&gt;
&lt;br /&gt;
'''Ubuntu:'''&lt;br /&gt;
*[[Install Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad T400]]&lt;br /&gt;
*[[Install Ubuntu 9.04 (Jaunty Jackalope) on a ThinkPad T400]]&lt;br /&gt;
*[[Install Ubuntu 9.10 (Karmic Koala) on a ThinkPad T400]]&lt;br /&gt;
*[[Save power with Ubuntu 9.04 (Jaunty Jackalope) on a ThinkPad T400]]&lt;br /&gt;
&lt;br /&gt;
'''Fedora:'''&lt;br /&gt;
*[[Installing Fedora 10 on a ThinkPad T400]]&lt;br /&gt;
&lt;br /&gt;
'''Gentoo:'''&lt;br /&gt;
*[[Install Gentoo on a Thinkpad T400]]&lt;br /&gt;
&lt;br /&gt;
'''Slackware:'''&lt;br /&gt;
*[[Install Slackware 12.2 on a Thinkpad T400]]&lt;br /&gt;
&lt;br /&gt;
[[Category:T Series]]&lt;/div&gt;</summary>
		<author><name>Rfajardo</name></author>
		
	</entry>
</feed>