<?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=Blaer</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=Blaer"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Blaer"/>
	<updated>2026-05-13T03:00:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=53075</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=53075"/>
		<updated>2011-10-26T08:06:27Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* xsetwacom */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 (Lucid Lynx) to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration.&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Setup Stylus and Rotate =&lt;br /&gt;
This is the easiest and most reliable way I found out how to get it working. Quick and Easy.&lt;br /&gt;
&lt;br /&gt;
== Stylus: ==&lt;br /&gt;
In order to prevent the stylus from sending clicks when the tip isn’t touching the screen and map the single button to a left-click.&lt;br /&gt;
&lt;br /&gt;
Source: [http://peterbn.wordpress.com/2010/05/10/ubuntu-10-4-on-lenovo-x61t-success/ Peterbn on Wordpress]&lt;br /&gt;
&lt;br /&gt;
Add the following to the 10-wacom.conf file (Identifier &amp;quot;Wacom serial class&amp;quot;): &lt;br /&gt;
&lt;br /&gt;
* Option &amp;quot;TPCButton&amp;quot; &amp;quot;on&amp;quot;&lt;br /&gt;
* Option &amp;quot;Button2&amp;quot; &amp;quot;3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /usr/share/X11/xorg.conf.d/10-wacom.conf &lt;br /&gt;
&lt;br /&gt;
This is how the section should look like:&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;InputClass&amp;quot;&lt;br /&gt;
 Identifier &amp;quot;Wacom serial class&amp;quot;&lt;br /&gt;
 MatchProduct &amp;quot;Serial Wacom Tablet&amp;quot;&lt;br /&gt;
 Driver &amp;quot;wacom&amp;quot;&lt;br /&gt;
 Option &amp;quot;ForceDevice&amp;quot; &amp;quot;ISDV4&amp;quot;&lt;br /&gt;
 Option &amp;quot;TPCButton&amp;quot; &amp;quot;on&amp;quot;&lt;br /&gt;
 Option &amp;quot;Button2&amp;quot; &amp;quot;3&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
== Rotate: ==&lt;br /&gt;
&lt;br /&gt;
Rotate the screen and the pen with the rotation button.&lt;br /&gt;
&lt;br /&gt;
Source: &lt;br /&gt;
&lt;br /&gt;
* [http://ubuntuforums.org/showthread.php?t=1460380&amp;amp;page=2/ Ubuntu Forum Screen rotation on X61t in Lucid]&lt;br /&gt;
* [http://sourceforge.net/apps/trac/easystroke/wiki/TipsAndTricks/ Tips and Tricks for Tablet]&lt;br /&gt;
&lt;br /&gt;
First install wacomrotate:&lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:thjaeger/tabletpc&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install wacomrotate&lt;br /&gt;
&lt;br /&gt;
Create a file to store the current rotation data:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /usr/bin/rotationmode&lt;br /&gt;
&lt;br /&gt;
fill this file with:&lt;br /&gt;
&lt;br /&gt;
 0&lt;br /&gt;
&lt;br /&gt;
and make it editable, but not executable&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 666 /usr/bin/rotationmode&lt;br /&gt;
&lt;br /&gt;
Now we will write the script to rotate the screen&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /usr/bin/rotatebutton&lt;br /&gt;
&lt;br /&gt;
And fill it with:&lt;br /&gt;
&lt;br /&gt;
 mode=`cat /usr/bin/rotationmode`&lt;br /&gt;
 if test 0 = $mode&lt;br /&gt;
 then&lt;br /&gt;
 echo 1 &amp;gt; /usr/bin/rotationmode&lt;br /&gt;
 xrandr -o right&lt;br /&gt;
 fi&lt;br /&gt;
 if test 1 = $mode&lt;br /&gt;
 then&lt;br /&gt;
 echo 2 &amp;gt; /usr/bin/rotationmode&lt;br /&gt;
 xrandr -o inverted&lt;br /&gt;
 fi&lt;br /&gt;
 if test 2 = $mode&lt;br /&gt;
 then&lt;br /&gt;
 echo 3 &amp;gt; /usr/bin/rotationmode&lt;br /&gt;
 xrandr -o left&lt;br /&gt;
 fi&lt;br /&gt;
 if test 3 = $mode&lt;br /&gt;
 then&lt;br /&gt;
 echo 0 &amp;gt; /usr/bin/rotationmode&lt;br /&gt;
 xrandr -o normal&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
Make it executable:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /usr/bin/rotatebutton&lt;br /&gt;
&lt;br /&gt;
Now typing rotatebutton in terminal should go through all of the rotations. To map the command to the button go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts, click the Add button at the bottom, name it whatever you want and use the command rotatebutton. Then bind the key by clicking in the shortcut column and pressing the tablet rotate key.&lt;br /&gt;
&lt;br /&gt;
PS: I prefer only to have normal and inverted rotation in my button,&lt;br /&gt;
in which occasion you can modify the script to something like:&lt;br /&gt;
&lt;br /&gt;
 mode=`cat /usr/bin/rotationmode`&lt;br /&gt;
 if test 0 = $mode&lt;br /&gt;
 then&lt;br /&gt;
 echo 1 &amp;gt; /usr/bin/rotationmode&lt;br /&gt;
 xrandr -o inverted&lt;br /&gt;
 fi&lt;br /&gt;
 if test 1 = $mode&lt;br /&gt;
 then&lt;br /&gt;
 echo 0 &amp;gt; /usr/bin/rotationmode&lt;br /&gt;
 xrandr -o normal&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
If you are getting &amp;quot;Unknown parameter name&amp;quot; errors then try this notation:&lt;br /&gt;
&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; Area 51 85 947 943&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
Install as per instructions on the freedesktop site.&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
 xinput_calibrator_x11 --device &amp;quot;Serial Wacom Tablet touch&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''The tool does not actually calibrate the tablet.''' It merely shows you the numbers needed for calibration. Work in progress, i guess.&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
&lt;br /&gt;
== The easy apt-get way ==&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gpointing-device-settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The hard way ==&lt;br /&gt;
&lt;br /&gt;
Which probably will not work because it depends op HAL.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
&lt;br /&gt;
== Automatic Switching from Laptop to Tablet mode ==&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
== Automatic rotating of display in Tablet mode ==&lt;br /&gt;
&lt;br /&gt;
Install [http://www.krizka.net/projects/autorotate/ Karol Krizka's AutoRotate daemon]. &lt;br /&gt;
&lt;br /&gt;
 sudo add-apt-repository ppa:kkrizka/thinkpad-x61t&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
 sudo apt-get install python-glib python-dbus python-xrandr autorotate&lt;br /&gt;
&lt;br /&gt;
Set up the daemon to start with Gnome&lt;br /&gt;
 sudo gedit /etc/gdm/Init/Default&lt;br /&gt;
Add the following line before the last &amp;quot;exit&amp;quot;&lt;br /&gt;
 auto-rotate.py &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Save your work before restarting Gnome&lt;br /&gt;
 sudo /etc/init.d/gdm restart&lt;br /&gt;
&lt;br /&gt;
You're all set. Note that there is also a manual-rotate.py script that comes with AutoRotate that can be bound to the special function Rotate key. See the author's site above for help with setting the keyboard shortcuts.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;br /&gt;
[[Category:Ubuntu]]&lt;br /&gt;
[[Category:Ubuntu 10.04]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48890</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48890"/>
		<updated>2010-06-24T14:19:43Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* xinput_calibrator */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration.&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
Install as per instructions on the freedesktop site.&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
 xinput_calibrator_x11 --device &amp;quot;Serial Wacom Tablet touch&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''The tool does not actually calibrate the tablet.''' It merely shows you the numbers needed for calibration. Work in progress, i guess.&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
&lt;br /&gt;
== The easy apt-get way ==&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gpointing-device-settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The hard way ==&lt;br /&gt;
&lt;br /&gt;
Which probably will not work because it depends op HAL.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48889</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48889"/>
		<updated>2010-06-24T14:07:24Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* What Almost Works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration.&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
&lt;br /&gt;
== The easy apt-get way ==&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gpointing-device-settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The hard way ==&lt;br /&gt;
&lt;br /&gt;
Which probably will not work because it depends op HAL.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48888</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48888"/>
		<updated>2010-06-24T14:06:39Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* What Almost Works */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
&lt;br /&gt;
== The easy apt-get way ==&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gpointing-device-settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The hard way ==&lt;br /&gt;
&lt;br /&gt;
Which probably will not work because it depends op HAL.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48887</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48887"/>
		<updated>2010-06-24T14:02:44Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* Setup the Middle Button Scrolling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
&lt;br /&gt;
== The easy apt-get way ==&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gpointing-device-settings&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The hard way ==&lt;br /&gt;
&lt;br /&gt;
Which probably will not work because it depends op HAL.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48886</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48886"/>
		<updated>2010-06-24T14:00:20Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* Setup the Middle Button Scrolling */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
You can do it the easy way...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install gpointing-device-settings&lt;br /&gt;
&lt;br /&gt;
...or you can do it the hard way. Which probably will not work because it depends op HAL.&lt;br /&gt;
&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48885</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48885"/>
		<updated>2010-06-24T13:18:41Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* Setup ThinkVantage ActiveProtection */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48884</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48884"/>
		<updated>2010-06-24T13:18:18Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* Setup ThinkVantage ActiveProtection */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
 sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install tp-smapi-source&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant prepare tp-smapi&lt;br /&gt;
&lt;br /&gt;
 sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
 sudo modprobe tp-smapi&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install hdapsd&lt;br /&gt;
&lt;br /&gt;
 echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
 cd /etc/default/&lt;br /&gt;
 gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
 # sensitivity&lt;br /&gt;
 SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48883</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48883"/>
		<updated>2010-06-24T13:13:38Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* xsetwacom */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where acquired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
&lt;br /&gt;
sudo aptitude install tp-smapi-source&lt;br /&gt;
&lt;br /&gt;
sudo module-assistant prepare tp-smapi&lt;br /&gt;
&lt;br /&gt;
sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
sudo modprobe tp-smapi&lt;br /&gt;
&lt;br /&gt;
sudo aptitude install hdapsd&lt;br /&gt;
&lt;br /&gt;
echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
cd /etc/default/&lt;br /&gt;
gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48882</id>
		<title>Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&amp;diff=48882"/>
		<updated>2010-06-24T13:11:56Z</updated>

		<summary type="html">&lt;p&gt;Blaer: /* Fixing Touch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. &lt;br /&gt;
&lt;br /&gt;
= Introduction =&lt;br /&gt;
&lt;br /&gt;
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.&lt;br /&gt;
&lt;br /&gt;
=== What Works ===&lt;br /&gt;
==== Tested ====&lt;br /&gt;
Audio Buttons,&lt;br /&gt;
Brightness Fn Buttons,&lt;br /&gt;
Radio Fn Button,&lt;br /&gt;
Suspend Fn Button,&lt;br /&gt;
Tablet L/R/U/D Buttons,&lt;br /&gt;
Tablet Enter Button,&lt;br /&gt;
Tablet Esc Button,&lt;br /&gt;
NumberLock Fn Button,&lt;br /&gt;
Tablet Pen,&lt;br /&gt;
Wireless Radio,&lt;br /&gt;
&lt;br /&gt;
==== Assumed Working ====&lt;br /&gt;
Forward / Back Buttons,&lt;br /&gt;
Power Fn Button,&lt;br /&gt;
Lock Fn Button,&lt;br /&gt;
Hibernate Fn Button,&lt;br /&gt;
Media Fn Buttons&lt;br /&gt;
Bluetooth Radio,&lt;br /&gt;
&lt;br /&gt;
=== What Almost Works ===&lt;br /&gt;
Tablet Toolbox Button -  causes lock or suspend,&lt;br /&gt;
Tablet Touch – Requires Calibration,&lt;br /&gt;
&lt;br /&gt;
=== What Does Not Work ===&lt;br /&gt;
Tablet Control-Alt-Delete Button,&lt;br /&gt;
Tablet Rotate Button,&lt;br /&gt;
Middle Mouse Button,&lt;br /&gt;
ThinkVantage Button,&lt;br /&gt;
Magnify Fn Button,&lt;br /&gt;
Fingerprint Reader,&lt;br /&gt;
Automatic Screen Rotation,&lt;br /&gt;
ThinkVantage ActiveProtection,&lt;br /&gt;
&lt;br /&gt;
= Fixing Touch =&lt;br /&gt;
Works out of the box, just needs some calibration.&lt;br /&gt;
&lt;br /&gt;
== xsetwacom ==&lt;br /&gt;
&lt;br /&gt;
It took me some time to find this one. So, i'll post it here so you won't have to spend time finding it. These numbers calibrate touch for my X61. I hope it will be the same for other X61's.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topy &amp;quot;85&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; topx &amp;quot;51&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomx &amp;quot;933&amp;quot;&lt;br /&gt;
 xsetwacom set &amp;quot;Serial Wacom Tablet touch&amp;quot; bottomy &amp;quot;957&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The numbers where aqcuired using xinput_calibrator.&lt;br /&gt;
&lt;br /&gt;
== xinput_calibrator ==&lt;br /&gt;
&lt;br /&gt;
http://www.freedesktop.org/wiki/Software/xinput_calibrator&lt;br /&gt;
&lt;br /&gt;
Using this tool you can find the numbers to calibrate your touchscreen.&lt;br /&gt;
It's a pity it is still not in the repositories (as of 24/06/2010)&lt;br /&gt;
&lt;br /&gt;
== Wacomcpl (Will not work because HAL is missing) ==&lt;br /&gt;
&lt;br /&gt;
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wacomcpl is no longer available in 10.04. The new package is xserver-xorg-input-wacom. How to calibrate the screen is being looked into. The xsetwacom command is still intact to set the calibrations though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Wacom Tablet in the X61t is a serial Wacom tablet. It can be configured by using wacomcpl. Wacomcpl is part of the wacom-tools package and can be retrieved in apt:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install wacom-tools&lt;br /&gt;
&lt;br /&gt;
After this wacomcpl can be run by typing:&lt;br /&gt;
&lt;br /&gt;
 wacomcpl&lt;br /&gt;
&lt;br /&gt;
in Terminal.&lt;br /&gt;
&lt;br /&gt;
=== Helping wacomcpl ===&lt;br /&gt;
Unfortunately HAL assigns names to wacom devices in a way that the recent wacomcpl from jaunty cant find them, to help wacomcpl to find them:&lt;br /&gt;
&lt;br /&gt;
Open a terminal and type:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/wacomtohal&lt;br /&gt;
&lt;br /&gt;
and paste this code in:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 ## find any wacom devices&lt;br /&gt;
 for udi in `hal-find-by-property --key input.x11_driver --string wacom`&lt;br /&gt;
 do&lt;br /&gt;
 type=`hal-get-property --udi $udi --key input.x11_options.Type`&lt;br /&gt;
 ## rewrite the names that the Xserver will use&lt;br /&gt;
 hal-set-property --udi $udi --key info.product --string $type&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
then run :&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/init.d/wacomtohal&lt;br /&gt;
 sudo update-rc.d wacomtohal defaults 27&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now reboot and launch wacomcpl&lt;br /&gt;
&lt;br /&gt;
=== Making Wacomcpl Settings Restore on Reboot ===&lt;br /&gt;
If you lose your calibration after reboot:&lt;br /&gt;
&lt;br /&gt;
In terminal: &lt;br /&gt;
&lt;br /&gt;
 sudo gedit ~/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Find the line that says:&lt;br /&gt;
&lt;br /&gt;
 . /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
and change it to&lt;br /&gt;
&lt;br /&gt;
 #. /etc/X11/xinit/xinitrc&lt;br /&gt;
&lt;br /&gt;
Save and exit.&lt;br /&gt;
&lt;br /&gt;
Go to System&amp;gt;Preferences&amp;gt;Startup Applications and create a new entry named whatever you want.&lt;br /&gt;
&lt;br /&gt;
The command should be:&lt;br /&gt;
&lt;br /&gt;
 sh /home/yourusername/.xinitrc&lt;br /&gt;
&lt;br /&gt;
Your wacomcpl settings will now restore on reboot&lt;br /&gt;
&lt;br /&gt;
= Fixing the Tablet Toolbox Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 68 241&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Control-Alt-Delete Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 67 242&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command.&lt;br /&gt;
&lt;br /&gt;
= Setup the Tablet Rotate Button =&lt;br /&gt;
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)&lt;br /&gt;
&lt;br /&gt;
 sudo setkeycodes 6c 240&lt;br /&gt;
&lt;br /&gt;
Now you can bind this key to any command. (It should be possible to write a script to interact with the autorotate given on this page)&lt;br /&gt;
&lt;br /&gt;
= Setup the Middle Button Scrolling =&lt;br /&gt;
Open a terminal and run each of the following for vertical scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
Add the following if you want horizontal scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 'TPPS/2 IBM TrackPoint' &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
If you do not want to run these commands every time you restart your computer, copy them to a script file.&lt;br /&gt;
&lt;br /&gt;
In Ubuntu, create a new file in your Home directory called &amp;quot;Mouse_Wheel.sh&amp;quot;.  Using gedit, paste the commands into the file and save.&lt;br /&gt;
&lt;br /&gt;
Open the terminal and type:&lt;br /&gt;
 chmod +x Mouse_Wheel.sh&lt;br /&gt;
Go to System &amp;gt; Preferences &amp;gt; Startup Applications.  Click on &amp;quot;Add&amp;quot;, in the Name box type &amp;quot;Mouse Wheel&amp;quot; and in the Command box type &amp;quot;./Mouse_Wheel.sh&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In Kubuntu, place the script file in ~/.kde/Autostart.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HAL has been deprecated so the following might still work but is not suggested:&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; &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;
Reboot&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage Button =&lt;br /&gt;
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System&amp;gt;Preferences&amp;gt;Keyboard Shortcuts and set it to perform any command.&lt;br /&gt;
&lt;br /&gt;
= Setup Magnify Fn Button =&lt;br /&gt;
No Solution Yet.&lt;br /&gt;
&lt;br /&gt;
= Setup Fingerprint Reader =&lt;br /&gt;
&lt;br /&gt;
The Thinkfinger driver works fine on the X61. The following is the paraphrased commands from the installing thinkfinger page that are relevant to the X61 and Ubuntu 9.04.&lt;br /&gt;
&lt;br /&gt;
In terminal, add a key:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your sources.list (/etc/apt/sources.list):&lt;br /&gt;
&lt;br /&gt;
 deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
 deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get install thinkfinger-tools libpam-thinkfinger&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --acquire &lt;br /&gt;
&lt;br /&gt;
and &lt;br /&gt;
&lt;br /&gt;
 sudo tf-tool --verify &lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file. &lt;br /&gt;
&lt;br /&gt;
Setup Pam:&lt;br /&gt;
&lt;br /&gt;
 sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable&lt;br /&gt;
&lt;br /&gt;
Add user:&lt;br /&gt;
&lt;br /&gt;
 tf-tool --acquire $USERNAME&lt;br /&gt;
&lt;br /&gt;
Optional: Change the login screen to allow keyboard-less login:&lt;br /&gt;
&lt;br /&gt;
Go to: System&amp;gt;Administration&amp;gt;Login Window&lt;br /&gt;
&lt;br /&gt;
Click on the 'Local' tab.&lt;br /&gt;
&lt;br /&gt;
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.&lt;br /&gt;
&lt;br /&gt;
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.&lt;br /&gt;
&lt;br /&gt;
= Setup Automatic Screen Rotation =&lt;br /&gt;
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-normal&lt;br /&gt;
 # This is called when the user rotates the screen to laptop mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh right&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''&lt;br /&gt;
&lt;br /&gt;
 # /etc/acpi/events/lenovo-rotate-tablet&lt;br /&gt;
 # This is called when the user rotates the screen to tablet mode&lt;br /&gt;
 &lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/thinkpad-rotatescreen.sh normal&lt;br /&gt;
&lt;br /&gt;
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #&lt;br /&gt;
 # This script rotates the display in TabletPCs when screen is changed from&lt;br /&gt;
 # laptop to tablet mode, or when rotation button is pressed&lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/share/acpi-support/key-constants || exit 0&lt;br /&gt;
 &lt;br /&gt;
 . /usr/share/acpi-support/power-funcs&lt;br /&gt;
 &lt;br /&gt;
 # i'm not trusting this ...&lt;br /&gt;
 #if [ -f /var/lib/acpi-support/screen-rotation ] ; then&lt;br /&gt;
 #  ROTATION=`cat /var/lib/acpi-support/screen-rotation`&lt;br /&gt;
 #fi&lt;br /&gt;
 &lt;br /&gt;
 # ... and thus calling this with a parameter&lt;br /&gt;
 ROTATION=&amp;quot;$1&amp;quot; # this should be called &amp;quot;ROTATION_FROM&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$ROTATION&amp;quot; in&lt;br /&gt;
 	right)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;normal&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;none&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 	*)&lt;br /&gt;
 	NEW_ROTATION=&amp;quot;right&amp;quot;&lt;br /&gt;
 	NEW_WACOM=&amp;quot;cw&amp;quot;&lt;br /&gt;
 	;;&lt;br /&gt;
 esac&lt;br /&gt;
 &lt;br /&gt;
 for x in /tmp/.X11-unix/*; do&lt;br /&gt;
 	displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`&lt;br /&gt;
 	getXconsole;&lt;br /&gt;
 	if [ x&amp;quot;$XAUTHORITY&amp;quot; != x&amp;quot;&amp;quot; ]; then&lt;br /&gt;
 	    export DISPLAY=&amp;quot;:$displaynum&amp;quot;           &lt;br /&gt;
 	    /usr/bin/xrandr -o $NEW_ROTATION &amp;amp;&amp;amp; echo $NEW_ROTATION &amp;gt; /var/lib/acpi-support/screen-rotation&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the stylus&lt;br /&gt;
 	    for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot;  ; do&lt;br /&gt;
 		/usr/bin/xsetwacom set &amp;quot;$type&amp;quot; rotate $NEW_WACOM&lt;br /&gt;
 	    done&lt;br /&gt;
 &lt;br /&gt;
 	    # rotate the arrow keys&lt;br /&gt;
 	    case &amp;quot;$NEW_ROTATION&amp;quot; in&lt;br /&gt;
 		right)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 114 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 111 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 116 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 113 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 		*)&lt;br /&gt;
 			xmodmap - &amp;lt;&amp;lt;END&lt;br /&gt;
 keycode 111 = Up NoSymbol Up NoSymbol Up&lt;br /&gt;
 keycode 113 = Left NoSymbol Left NoSymbol Left&lt;br /&gt;
 keycode 114 = Right NoSymbol Right NoSymbol Right&lt;br /&gt;
 keycode 116 = Down NoSymbol Down NoSymbol Down&lt;br /&gt;
 END&lt;br /&gt;
 			;;&lt;br /&gt;
 	    esac&lt;br /&gt;
 	fi&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: check the output of&lt;br /&gt;
 xsetwacom list dev&lt;br /&gt;
to identify the devices to put in the line&lt;br /&gt;
 for type in &amp;quot;Serial Wacom Tablet eraser&amp;quot; &amp;quot;Serial Wacom Tablet touch&amp;quot; &amp;quot;Serial Wacom Tablet&amp;quot; ; do&lt;br /&gt;
My system has a touch and a cursor device.&lt;br /&gt;
&lt;br /&gt;
= Setup ThinkVantage ActiveProtection =&lt;br /&gt;
&lt;br /&gt;
sudo cp /etc/modules /etc/modules_backup&lt;br /&gt;
&lt;br /&gt;
sudo aptitude install tp-smapi-source&lt;br /&gt;
&lt;br /&gt;
sudo module-assistant prepare tp-smapi&lt;br /&gt;
&lt;br /&gt;
sudo module-assistant auto-install tp-smapi&lt;br /&gt;
&lt;br /&gt;
sudo modprobe tp-smapi&lt;br /&gt;
&lt;br /&gt;
sudo aptitude install hdapsd&lt;br /&gt;
&lt;br /&gt;
echo 'tp-smapi' | sudo tee -a /etc/modules&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can set the activeprotection sensivity:&lt;br /&gt;
&lt;br /&gt;
cd /etc/default/&lt;br /&gt;
gedit hdapsd&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=25&lt;br /&gt;
&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;
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;
= Useful Task: Disable Bluetooth on Startup =&lt;br /&gt;
These instructions will disable the bluetooth radio being activated during the boot. The radio can then be activated at the users discretion using Fn F5 (Radio Fn Button).&lt;br /&gt;
&lt;br /&gt;
edit /etc/rc.local and add:&lt;br /&gt;
&lt;br /&gt;
 chmod 666 /proc/acpi/ibm/bluetooth &lt;br /&gt;
 echo &amp;quot;disable&amp;quot; &amp;gt; /proc/acpi/ibm/bluetooth&lt;br /&gt;
&lt;br /&gt;
before the 'exit 0' line&lt;br /&gt;
&lt;br /&gt;
*note chmod 666 makes this file editable by everyone, this may compromise security, try different settings to find the one that suits your needs (655 may work)&lt;br /&gt;
&lt;br /&gt;
*note proc is depreciated and may not work in future releases&lt;br /&gt;
&lt;br /&gt;
= Useful Task: Enable Laptop Mode =&lt;br /&gt;
Laptop mode is a power saving tool that allows the hard drive to spin down to conserve battery power. This is disabled by default as it has been known to cause problems on some computers, but it appears to work on the X61t.&lt;br /&gt;
&lt;br /&gt;
*Warning: Laptop mode stores data in ram teporarily until it needs to write to disk. Power Loss in laptop mode could lead to significant data loss.&lt;br /&gt;
&lt;br /&gt;
*Warning: Excessive spin-up spin-down cycles will wear out your hard drive much more quickly than normal use. Be careful when configuring laptop mode settings.  &lt;br /&gt;
&lt;br /&gt;
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.&lt;br /&gt;
&lt;br /&gt;
Edit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/default/acpi-support&lt;br /&gt;
&lt;br /&gt;
Set: &amp;quot;ENABLE_LAPTOP_MODE=true&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure Laptop Mode&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/laptop-mode/laptop-mode.conf&lt;br /&gt;
&lt;br /&gt;
= Optional Task: Adjusting Trackpoint Settings =&lt;br /&gt;
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. &lt;br /&gt;
&lt;br /&gt;
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] &lt;br /&gt;
&lt;br /&gt;
  sudo apt-get install sysfsutils&lt;br /&gt;
&lt;br /&gt;
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:&lt;br /&gt;
&lt;br /&gt;
  sudo configure-trackpoint&lt;br /&gt;
&lt;br /&gt;
= Sources =&lt;br /&gt;
The above is a compilation of my notes from when I installed Jaunty on my X61t. The code and many of the instructions come from various pages and sources around the Internet. I will attempt to document them when time permits. If you see anything that should be added or wish to cite a source I missed, please edit the page.&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;/div&gt;</summary>
		<author><name>Blaer</name></author>
		
	</entry>
</feed>