https://www.thinkwiki.org/w/api.php?action=feedcontributions&user=Swatspyder&feedformat=atomThinkWiki - User contributions [en]2024-03-28T19:57:17ZUser contributionsMediaWiki 1.31.12https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&diff=48513Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet2010-05-10T01:02:50Z<p>Swatspyder: /* Setup the Middle Button Scrolling */</p>
<hr />
<div>This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. <br />
<br />
= Introduction =<br />
<br />
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.<br />
<br />
=== What Works ===<br />
==== Tested ====<br />
Audio Buttons,<br />
Brightness Fn Buttons,<br />
Radio Fn Button,<br />
Suspend Fn Button,<br />
Tablet L/R/U/D Buttons,<br />
Tablet Enter Button,<br />
Tablet Esc Button,<br />
NumberLock Fn Button,<br />
Tablet Pen,<br />
Wireless Radio,<br />
<br />
==== Assumed Working ====<br />
Forward / Back Buttons,<br />
Power Fn Button,<br />
Lock Fn Button,<br />
Hibernate Fn Button,<br />
Media Fn Buttons<br />
Bluetooth Radio,<br />
<br />
=== What Almost Works ===<br />
Tablet Toolbox Button - causes lock or suspend,<br />
Tablet Touch – Requires Calibration,<br />
<br />
=== What Does Not Work ===<br />
Tablet Control-Alt-Delete Button,<br />
Tablet Rotate Button,<br />
Middle Mouse Button,<br />
ThinkVantage Button,<br />
Magnify Fn Button,<br />
Fingerprint Reader,<br />
Automatic Screen Rotation,<br />
ThinkVantage ActiveProtection,<br />
<br />
= Fixing Touch =<br />
Works out of the box, just needs some calibration.<br />
<br />
== Wacomcpl ==<br />
<br />
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)<br />
<br />
<br />
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.<br />
<br />
<br />
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:<br />
<br />
sudo apt-get install wacom-tools<br />
<br />
After this wacomcpl can be run by typing:<br />
<br />
wacomcpl<br />
<br />
in Terminal.<br />
<br />
=== Helping wacomcpl ===<br />
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:<br />
<br />
Open a terminal and type:<br />
<br />
sudo gedit /etc/init.d/wacomtohal<br />
<br />
and paste this code in:<br />
<br />
#! /bin/sh<br />
## find any wacom devices<br />
for udi in `hal-find-by-property --key input.x11_driver --string wacom`<br />
do<br />
type=`hal-get-property --udi $udi --key input.x11_options.Type`<br />
## rewrite the names that the Xserver will use<br />
hal-set-property --udi $udi --key info.product --string $type<br />
done<br />
<br />
then run :<br />
<br />
sudo chmod +x /etc/init.d/wacomtohal<br />
sudo update-rc.d wacomtohal defaults 27<br />
<br />
<br />
now reboot and launch wacomcpl<br />
<br />
=== Making Wacomcpl Settings Restore on Reboot ===<br />
If you lose your calibration after reboot:<br />
<br />
In terminal: <br />
<br />
sudo gedit ~/.xinitrc<br />
<br />
Find the line that says:<br />
<br />
. /etc/X11/xinit/xinitrc<br />
<br />
and change it to<br />
<br />
#. /etc/X11/xinit/xinitrc<br />
<br />
Save and exit.<br />
<br />
Go to System>Preferences>Startup Applications and create a new entry named whatever you want.<br />
<br />
The command should be:<br />
<br />
sh /home/yourusername/.xinitrc<br />
<br />
Your wacomcpl settings will now restore on reboot<br />
<br />
= Fixing the Tablet Toolbox Button =<br />
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)<br />
<br />
sudo setkeycodes 68 241<br />
<br />
Now you can bind this key to any command.<br />
<br />
= Setup the Tablet Control-Alt-Delete Button =<br />
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)<br />
<br />
sudo setkeycodes 67 242<br />
<br />
Now you can bind this key to any command.<br />
<br />
= Setup the Tablet Rotate Button =<br />
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)<br />
<br />
sudo setkeycodes 6c 240<br />
<br />
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)<br />
<br />
= Setup the Middle Button Scrolling =<br />
Open a terminal and run each of the following for vertical scrolling:<br />
<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200<br />
<br />
Add the following if you want horizontal scrolling:<br />
<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5<br />
<br />
If you do not want to run these commands every time you restart your computer, copy them to a script file.<br />
<br />
In Ubuntu, create a new file in your Home directory called "Mouse_Wheel.sh". Using gedit, paste the commands into the file and save.<br />
<br />
Open the terminal and type:<br />
chmod +x Mouse_Wheel.sh<br />
Go to System > Preferences > Startup Applications. Click on "Add", in the Name box type "Mouse Wheel" and in the Command box type "./Mouse_Wheel.sh".<br />
<br />
<br />
In Kubuntu, place the script file in ~/.kde/Autostart.<br />
<br />
<br />
HAL has been deprecated so the following might still work but is not suggested:<br />
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing: <br />
<br />
sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi<br />
<br />
And fill it with this code: <br />
<br />
<?xml version="1.0" encoding="UTF-8"?> <br />
<br />
<match key="info.product" string="TPPS/2 IBM TrackPoint"><br />
<merge key="input.x11_options.EmulateWheel" type="string">true</merge><br />
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge><br />
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge><br />
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge><br />
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge><br />
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge><br />
</match><br />
<br />
<br />
Reboot<br />
<br />
= Setup ThinkVantage Button =<br />
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System>Preferences>Keyboard Shortcuts and set it to perform any command.<br />
<br />
= Setup Magnify Fn Button =<br />
No Solution Yet.<br />
<br />
= Setup Fingerprint Reader =<br />
<br />
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.<br />
<br />
In terminal, add a key:<br />
<br />
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149<br />
<br />
Add the PPA repositories to your sources.list (/etc/apt/sources.list):<br />
<br />
deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main<br />
<br />
Update installer:<br />
<br />
sudo apt-get update<br />
<br />
And install:<br />
<br />
sudo apt-get install thinkfinger-tools libpam-thinkfinger<br />
<br />
Now the driver is installed and should be working. You can try it (as root) with <br />
<br />
sudo tf-tool --acquire <br />
<br />
and <br />
<br />
sudo tf-tool --verify <br />
<br />
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. <br />
<br />
Setup Pam:<br />
<br />
sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable<br />
<br />
Add user:<br />
<br />
tf-tool --acquire $USERNAME<br />
<br />
Optional: Change the login screen to allow keyboard-less login:<br />
<br />
Go to: System>Administration>Login Window<br />
<br />
Click on the 'Local' tab.<br />
<br />
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.<br />
<br />
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.<br />
<br />
= Setup Automatic Screen Rotation =<br />
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:<br />
<br />
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''<br />
<br />
# /etc/acpi/events/lenovo-rotate-normal<br />
# This is called when the user rotates the screen to laptop mode<br />
<br />
event=ibm/hotkey HKEY 00000080 0000500a<br />
action=/etc/acpi/thinkpad-rotatescreen.sh right<br />
<br />
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''<br />
<br />
# /etc/acpi/events/lenovo-rotate-tablet<br />
# This is called when the user rotates the screen to tablet mode<br />
<br />
event=ibm/hotkey HKEY 00000080 00005009<br />
action=/etc/acpi/thinkpad-rotatescreen.sh normal<br />
<br />
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable<br />
<br />
#!/bin/sh<br />
#<br />
# This script rotates the display in TabletPCs when screen is changed from<br />
# laptop to tablet mode, or when rotation button is pressed<br />
<br />
test -f /usr/share/acpi-support/key-constants || exit 0<br />
<br />
. /usr/share/acpi-support/power-funcs<br />
<br />
# i'm not trusting this ...<br />
#if [ -f /var/lib/acpi-support/screen-rotation ] ; then<br />
# ROTATION=`cat /var/lib/acpi-support/screen-rotation`<br />
#fi<br />
<br />
# ... and thus calling this with a parameter<br />
ROTATION="$1" # this should be called "ROTATION_FROM"<br />
<br />
case "$ROTATION" in<br />
right)<br />
NEW_ROTATION="normal"<br />
NEW_WACOM="none"<br />
;;<br />
*)<br />
NEW_ROTATION="right"<br />
NEW_WACOM="cw"<br />
;;<br />
esac<br />
<br />
for x in /tmp/.X11-unix/*; do<br />
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`<br />
getXconsole;<br />
if [ x"$XAUTHORITY" != x"" ]; then<br />
export DISPLAY=":$displaynum" <br />
/usr/bin/xrandr -o $NEW_ROTATION && echo $NEW_ROTATION > /var/lib/acpi-support/screen-rotation<br />
<br />
# rotate the stylus<br />
for type in "Serial Wacom Tablet eraser" "Serial Wacom Tablet touch" "Serial Wacom Tablet" ; do<br />
/usr/bin/xsetwacom set "$type" rotate $NEW_WACOM<br />
done<br />
<br />
# rotate the arrow keys<br />
case "$NEW_ROTATION" in<br />
right)<br />
xmodmap - <<END<br />
keycode 114 = Up NoSymbol Up NoSymbol Up<br />
keycode 111 = Left NoSymbol Left NoSymbol Left<br />
keycode 116 = Right NoSymbol Right NoSymbol Right<br />
keycode 113 = Down NoSymbol Down NoSymbol Down<br />
END<br />
;;<br />
*)<br />
xmodmap - <<END<br />
keycode 111 = Up NoSymbol Up NoSymbol Up<br />
keycode 113 = Left NoSymbol Left NoSymbol Left<br />
keycode 114 = Right NoSymbol Right NoSymbol Right<br />
keycode 116 = Down NoSymbol Down NoSymbol Down<br />
END<br />
;;<br />
esac<br />
fi<br />
done<br />
<br />
<br />
Note: check the output of<br />
xsetwacom list dev<br />
to identify the devices to put in the line<br />
for type in "Serial Wacom Tablet eraser" "Serial Wacom Tablet touch" "Serial Wacom Tablet" ; do<br />
My system has a touch and a cursor device.<br />
<br />
= Setup ThinkVantage ActiveProtection =<br />
<br />
sudo cp /etc/modules /etc/modules_backup<br />
<br />
sudo aptitude install tp-smapi-source<br />
<br />
sudo module-assistant prepare tp-smapi<br />
<br />
sudo module-assistant auto-install tp-smapi<br />
<br />
sudo modprobe tp-smapi<br />
<br />
sudo aptitude install hdapsd<br />
<br />
echo 'tp-smapi' | sudo tee -a /etc/modules<br />
<br />
<br />
<br />
You can set the activeprotection sensivity:<br />
<br />
cd /etc/default/<br />
gedit hdapsd<br />
<br />
# sensitivity<br />
SENSITIVITY=25<br />
<br />
= Useful Task: Disable Bluetooth on Startup =<br />
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).<br />
<br />
edit /etc/rc.local and add:<br />
<br />
chmod 666 /proc/acpi/ibm/bluetooth <br />
echo "disable" > /proc/acpi/ibm/bluetooth<br />
<br />
before the 'exit 0' line<br />
<br />
*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)<br />
<br />
*note proc is depreciated and may not work in future releases<br />
<br />
= Useful Task: Enable Laptop Mode =<br />
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.<br />
<br />
*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.<br />
<br />
*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. <br />
<br />
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.<br />
<br />
Edit /etc/default/acpi-support<br />
<br />
sudo gedit /etc/default/acpi-support<br />
<br />
Set: "ENABLE_LAPTOP_MODE=true"<br />
<br />
Configure Laptop Mode<br />
<br />
sudo gedit /etc/laptop-mode/laptop-mode.conf<br />
<br />
= Optional Task: Adjusting Trackpoint Settings =<br />
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. <br />
<br />
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] <br />
<br />
sudo apt-get install sysfsutils<br />
<br />
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:<br />
<br />
sudo configure-trackpoint<br />
<br />
= Sources =<br />
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.<br />
<br />
[[Category:X61 Tablet]]</div>Swatspyderhttps://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&diff=48512Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet2010-05-10T01:00:27Z<p>Swatspyder: /* Setup the Middle Button Scrolling */</p>
<hr />
<div>This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. <br />
<br />
= Introduction =<br />
<br />
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.<br />
<br />
=== What Works ===<br />
==== Tested ====<br />
Audio Buttons,<br />
Brightness Fn Buttons,<br />
Radio Fn Button,<br />
Suspend Fn Button,<br />
Tablet L/R/U/D Buttons,<br />
Tablet Enter Button,<br />
Tablet Esc Button,<br />
NumberLock Fn Button,<br />
Tablet Pen,<br />
Wireless Radio,<br />
<br />
==== Assumed Working ====<br />
Forward / Back Buttons,<br />
Power Fn Button,<br />
Lock Fn Button,<br />
Hibernate Fn Button,<br />
Media Fn Buttons<br />
Bluetooth Radio,<br />
<br />
=== What Almost Works ===<br />
Tablet Toolbox Button - causes lock or suspend,<br />
Tablet Touch – Requires Calibration,<br />
<br />
=== What Does Not Work ===<br />
Tablet Control-Alt-Delete Button,<br />
Tablet Rotate Button,<br />
Middle Mouse Button,<br />
ThinkVantage Button,<br />
Magnify Fn Button,<br />
Fingerprint Reader,<br />
Automatic Screen Rotation,<br />
ThinkVantage ActiveProtection,<br />
<br />
= Fixing Touch =<br />
Works out of the box, just needs some calibration.<br />
<br />
== Wacomcpl ==<br />
<br />
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)<br />
<br />
<br />
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.<br />
<br />
<br />
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:<br />
<br />
sudo apt-get install wacom-tools<br />
<br />
After this wacomcpl can be run by typing:<br />
<br />
wacomcpl<br />
<br />
in Terminal.<br />
<br />
=== Helping wacomcpl ===<br />
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:<br />
<br />
Open a terminal and type:<br />
<br />
sudo gedit /etc/init.d/wacomtohal<br />
<br />
and paste this code in:<br />
<br />
#! /bin/sh<br />
## find any wacom devices<br />
for udi in `hal-find-by-property --key input.x11_driver --string wacom`<br />
do<br />
type=`hal-get-property --udi $udi --key input.x11_options.Type`<br />
## rewrite the names that the Xserver will use<br />
hal-set-property --udi $udi --key info.product --string $type<br />
done<br />
<br />
then run :<br />
<br />
sudo chmod +x /etc/init.d/wacomtohal<br />
sudo update-rc.d wacomtohal defaults 27<br />
<br />
<br />
now reboot and launch wacomcpl<br />
<br />
=== Making Wacomcpl Settings Restore on Reboot ===<br />
If you lose your calibration after reboot:<br />
<br />
In terminal: <br />
<br />
sudo gedit ~/.xinitrc<br />
<br />
Find the line that says:<br />
<br />
. /etc/X11/xinit/xinitrc<br />
<br />
and change it to<br />
<br />
#. /etc/X11/xinit/xinitrc<br />
<br />
Save and exit.<br />
<br />
Go to System>Preferences>Startup Applications and create a new entry named whatever you want.<br />
<br />
The command should be:<br />
<br />
sh /home/yourusername/.xinitrc<br />
<br />
Your wacomcpl settings will now restore on reboot<br />
<br />
= Fixing the Tablet Toolbox Button =<br />
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)<br />
<br />
sudo setkeycodes 68 241<br />
<br />
Now you can bind this key to any command.<br />
<br />
= Setup the Tablet Control-Alt-Delete Button =<br />
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)<br />
<br />
sudo setkeycodes 67 242<br />
<br />
Now you can bind this key to any command.<br />
<br />
= Setup the Tablet Rotate Button =<br />
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)<br />
<br />
sudo setkeycodes 6c 240<br />
<br />
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)<br />
<br />
= Setup the Middle Button Scrolling =<br />
Open a terminal and run each of the following for vertical scrolling:<br />
<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200<br />
<br />
Add the following if you want horizontal scrolling:<br />
<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5<br />
<br />
If you do not want to run these commands every time you restart your computer, copy them to a script file.<br />
<br />
In Ubuntu, create a new file in your Home directory called "Mouse_Wheel.sh". Using gedit, paste the commands into the file and save.<br />
Open the terminal and type "chmod +x Mouse_Wheel.sh".<br />
Go to System > Preferences > Startup Applications. Click on "Add", in the Name box type "Mouse Wheel" and in the Command box type "./Mouse_Wheel.sh".<br />
<br />
In Kubuntu, place the script file in ~/.kde/Autostart.<br />
<br />
<br />
HAL has been deprecated so the following might still work but is not suggested:<br />
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing: <br />
<br />
sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi<br />
<br />
And fill it with this code: <br />
<br />
<?xml version="1.0" encoding="UTF-8"?> <br />
<br />
<match key="info.product" string="TPPS/2 IBM TrackPoint"><br />
<merge key="input.x11_options.EmulateWheel" type="string">true</merge><br />
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge><br />
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge><br />
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge><br />
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge><br />
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge><br />
</match><br />
<br />
<br />
Reboot<br />
<br />
= Setup ThinkVantage Button =<br />
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System>Preferences>Keyboard Shortcuts and set it to perform any command.<br />
<br />
= Setup Magnify Fn Button =<br />
No Solution Yet.<br />
<br />
= Setup Fingerprint Reader =<br />
<br />
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.<br />
<br />
In terminal, add a key:<br />
<br />
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149<br />
<br />
Add the PPA repositories to your sources.list (/etc/apt/sources.list):<br />
<br />
deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main<br />
<br />
Update installer:<br />
<br />
sudo apt-get update<br />
<br />
And install:<br />
<br />
sudo apt-get install thinkfinger-tools libpam-thinkfinger<br />
<br />
Now the driver is installed and should be working. You can try it (as root) with <br />
<br />
sudo tf-tool --acquire <br />
<br />
and <br />
<br />
sudo tf-tool --verify <br />
<br />
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. <br />
<br />
Setup Pam:<br />
<br />
sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable<br />
<br />
Add user:<br />
<br />
tf-tool --acquire $USERNAME<br />
<br />
Optional: Change the login screen to allow keyboard-less login:<br />
<br />
Go to: System>Administration>Login Window<br />
<br />
Click on the 'Local' tab.<br />
<br />
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.<br />
<br />
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.<br />
<br />
= Setup Automatic Screen Rotation =<br />
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:<br />
<br />
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''<br />
<br />
# /etc/acpi/events/lenovo-rotate-normal<br />
# This is called when the user rotates the screen to laptop mode<br />
<br />
event=ibm/hotkey HKEY 00000080 0000500a<br />
action=/etc/acpi/thinkpad-rotatescreen.sh right<br />
<br />
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''<br />
<br />
# /etc/acpi/events/lenovo-rotate-tablet<br />
# This is called when the user rotates the screen to tablet mode<br />
<br />
event=ibm/hotkey HKEY 00000080 00005009<br />
action=/etc/acpi/thinkpad-rotatescreen.sh normal<br />
<br />
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable<br />
<br />
#!/bin/sh<br />
#<br />
# This script rotates the display in TabletPCs when screen is changed from<br />
# laptop to tablet mode, or when rotation button is pressed<br />
<br />
test -f /usr/share/acpi-support/key-constants || exit 0<br />
<br />
. /usr/share/acpi-support/power-funcs<br />
<br />
# i'm not trusting this ...<br />
#if [ -f /var/lib/acpi-support/screen-rotation ] ; then<br />
# ROTATION=`cat /var/lib/acpi-support/screen-rotation`<br />
#fi<br />
<br />
# ... and thus calling this with a parameter<br />
ROTATION="$1" # this should be called "ROTATION_FROM"<br />
<br />
case "$ROTATION" in<br />
right)<br />
NEW_ROTATION="normal"<br />
NEW_WACOM="none"<br />
;;<br />
*)<br />
NEW_ROTATION="right"<br />
NEW_WACOM="cw"<br />
;;<br />
esac<br />
<br />
for x in /tmp/.X11-unix/*; do<br />
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`<br />
getXconsole;<br />
if [ x"$XAUTHORITY" != x"" ]; then<br />
export DISPLAY=":$displaynum" <br />
/usr/bin/xrandr -o $NEW_ROTATION && echo $NEW_ROTATION > /var/lib/acpi-support/screen-rotation<br />
<br />
# rotate the stylus<br />
for type in "Serial Wacom Tablet eraser" "Serial Wacom Tablet touch" "Serial Wacom Tablet" ; do<br />
/usr/bin/xsetwacom set "$type" rotate $NEW_WACOM<br />
done<br />
<br />
# rotate the arrow keys<br />
case "$NEW_ROTATION" in<br />
right)<br />
xmodmap - <<END<br />
keycode 114 = Up NoSymbol Up NoSymbol Up<br />
keycode 111 = Left NoSymbol Left NoSymbol Left<br />
keycode 116 = Right NoSymbol Right NoSymbol Right<br />
keycode 113 = Down NoSymbol Down NoSymbol Down<br />
END<br />
;;<br />
*)<br />
xmodmap - <<END<br />
keycode 111 = Up NoSymbol Up NoSymbol Up<br />
keycode 113 = Left NoSymbol Left NoSymbol Left<br />
keycode 114 = Right NoSymbol Right NoSymbol Right<br />
keycode 116 = Down NoSymbol Down NoSymbol Down<br />
END<br />
;;<br />
esac<br />
fi<br />
done<br />
<br />
<br />
Note: check the output of<br />
xsetwacom list dev<br />
to identify the devices to put in the line<br />
for type in "Serial Wacom Tablet eraser" "Serial Wacom Tablet touch" "Serial Wacom Tablet" ; do<br />
My system has a touch and a cursor device.<br />
<br />
= Setup ThinkVantage ActiveProtection =<br />
<br />
sudo cp /etc/modules /etc/modules_backup<br />
<br />
sudo aptitude install tp-smapi-source<br />
<br />
sudo module-assistant prepare tp-smapi<br />
<br />
sudo module-assistant auto-install tp-smapi<br />
<br />
sudo modprobe tp-smapi<br />
<br />
sudo aptitude install hdapsd<br />
<br />
echo 'tp-smapi' | sudo tee -a /etc/modules<br />
<br />
<br />
<br />
You can set the activeprotection sensivity:<br />
<br />
cd /etc/default/<br />
gedit hdapsd<br />
<br />
# sensitivity<br />
SENSITIVITY=25<br />
<br />
= Useful Task: Disable Bluetooth on Startup =<br />
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).<br />
<br />
edit /etc/rc.local and add:<br />
<br />
chmod 666 /proc/acpi/ibm/bluetooth <br />
echo "disable" > /proc/acpi/ibm/bluetooth<br />
<br />
before the 'exit 0' line<br />
<br />
*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)<br />
<br />
*note proc is depreciated and may not work in future releases<br />
<br />
= Useful Task: Enable Laptop Mode =<br />
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.<br />
<br />
*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.<br />
<br />
*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. <br />
<br />
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.<br />
<br />
Edit /etc/default/acpi-support<br />
<br />
sudo gedit /etc/default/acpi-support<br />
<br />
Set: "ENABLE_LAPTOP_MODE=true"<br />
<br />
Configure Laptop Mode<br />
<br />
sudo gedit /etc/laptop-mode/laptop-mode.conf<br />
<br />
= Optional Task: Adjusting Trackpoint Settings =<br />
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. <br />
<br />
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] <br />
<br />
sudo apt-get install sysfsutils<br />
<br />
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:<br />
<br />
sudo configure-trackpoint<br />
<br />
= Sources =<br />
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.<br />
<br />
[[Category:X61 Tablet]]</div>Swatspyderhttps://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_10.04_(Lucid_Lynx)_on_a_ThinkPad_X61_Tablet&diff=48511Installing Ubuntu 10.04 (Lucid Lynx) on a ThinkPad X61 Tablet2010-05-10T00:43:42Z<p>Swatspyder: /* Setup the Middle Button Scrolling */</p>
<hr />
<div>This is a notes page for now. It will improve with time I have blatantly copied the 9.04 page as a template. <br />
<br />
= Introduction =<br />
<br />
This page covers the additional hardware setup required after installing Ubuntu 10.04 Jaunty to make the Thinkpad X61 Tablet Fully Functional.<br />
<br />
=== What Works ===<br />
==== Tested ====<br />
Audio Buttons,<br />
Brightness Fn Buttons,<br />
Radio Fn Button,<br />
Suspend Fn Button,<br />
Tablet L/R/U/D Buttons,<br />
Tablet Enter Button,<br />
Tablet Esc Button,<br />
NumberLock Fn Button,<br />
Tablet Pen,<br />
Wireless Radio,<br />
<br />
==== Assumed Working ====<br />
Forward / Back Buttons,<br />
Power Fn Button,<br />
Lock Fn Button,<br />
Hibernate Fn Button,<br />
Media Fn Buttons<br />
Bluetooth Radio,<br />
<br />
=== What Almost Works ===<br />
Tablet Toolbox Button - causes lock or suspend,<br />
Tablet Touch – Requires Calibration,<br />
<br />
=== What Does Not Work ===<br />
Tablet Control-Alt-Delete Button,<br />
Tablet Rotate Button,<br />
Middle Mouse Button,<br />
ThinkVantage Button,<br />
Magnify Fn Button,<br />
Fingerprint Reader,<br />
Automatic Screen Rotation,<br />
ThinkVantage ActiveProtection,<br />
<br />
= Fixing Touch =<br />
Works out of the box, just needs some calibration.<br />
<br />
== Wacomcpl ==<br />
<br />
(I think, it isn't working, because we haven't got wacomcpl in 10.04.)<br />
<br />
<br />
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.<br />
<br />
<br />
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:<br />
<br />
sudo apt-get install wacom-tools<br />
<br />
After this wacomcpl can be run by typing:<br />
<br />
wacomcpl<br />
<br />
in Terminal.<br />
<br />
=== Helping wacomcpl ===<br />
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:<br />
<br />
Open a terminal and type:<br />
<br />
sudo gedit /etc/init.d/wacomtohal<br />
<br />
and paste this code in:<br />
<br />
#! /bin/sh<br />
## find any wacom devices<br />
for udi in `hal-find-by-property --key input.x11_driver --string wacom`<br />
do<br />
type=`hal-get-property --udi $udi --key input.x11_options.Type`<br />
## rewrite the names that the Xserver will use<br />
hal-set-property --udi $udi --key info.product --string $type<br />
done<br />
<br />
then run :<br />
<br />
sudo chmod +x /etc/init.d/wacomtohal<br />
sudo update-rc.d wacomtohal defaults 27<br />
<br />
<br />
now reboot and launch wacomcpl<br />
<br />
=== Making Wacomcpl Settings Restore on Reboot ===<br />
If you lose your calibration after reboot:<br />
<br />
In terminal: <br />
<br />
sudo gedit ~/.xinitrc<br />
<br />
Find the line that says:<br />
<br />
. /etc/X11/xinit/xinitrc<br />
<br />
and change it to<br />
<br />
#. /etc/X11/xinit/xinitrc<br />
<br />
Save and exit.<br />
<br />
Go to System>Preferences>Startup Applications and create a new entry named whatever you want.<br />
<br />
The command should be:<br />
<br />
sh /home/yourusername/.xinitrc<br />
<br />
Your wacomcpl settings will now restore on reboot<br />
<br />
= Fixing the Tablet Toolbox Button =<br />
This key needs to be set to a keycode. Pick any empty one (241 is usually empty)<br />
<br />
sudo setkeycodes 68 241<br />
<br />
Now you can bind this key to any command.<br />
<br />
= Setup the Tablet Control-Alt-Delete Button =<br />
This key needs to be set to a keycode. Pick any empty one (242 is usually empty)<br />
<br />
sudo setkeycodes 67 242<br />
<br />
Now you can bind this key to any command.<br />
<br />
= Setup the Tablet Rotate Button =<br />
This key needs to be set to a keycode. Pick any empty one (240 is usually empty)<br />
<br />
sudo setkeycodes 6c 240<br />
<br />
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)<br />
<br />
= Setup the Middle Button Scrolling =<br />
Open a terminal and run:<br />
<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200<br />
<br />
for vertical scrolling. Add the following as well if you want horizontal scrolling:<br />
<br />
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5<br />
<br />
You will need to run this every time you restart your computer but if you can add it to a script and add it to ~/.kde/Autostart (in Kubuntu) so it will run automatically everytime you log in to KDE.<br />
<br />
HAL has been deprecated so the following might still work but is not suggested:<br />
Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing: <br />
<br />
sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi<br />
<br />
And fill it with this code: <br />
<br />
<?xml version="1.0" encoding="UTF-8"?> <br />
<br />
<match key="info.product" string="TPPS/2 IBM TrackPoint"><br />
<merge key="input.x11_options.EmulateWheel" type="string">true</merge><br />
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge><br />
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge><br />
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge><br />
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge><br />
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge><br />
</match><br />
<br />
<br />
Reboot<br />
<br />
= Setup ThinkVantage Button =<br />
The ThinkVantage button does not work only in that it is not bound to anything. To bind it go to System>Preferences>Keyboard Shortcuts and set it to perform any command.<br />
<br />
= Setup Magnify Fn Button =<br />
No Solution Yet.<br />
<br />
= Setup Fingerprint Reader =<br />
<br />
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.<br />
<br />
In terminal, add a key:<br />
<br />
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149<br />
<br />
Add the PPA repositories to your sources.list (/etc/apt/sources.list):<br />
<br />
deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main<br />
<br />
Update installer:<br />
<br />
sudo apt-get update<br />
<br />
And install:<br />
<br />
sudo apt-get install thinkfinger-tools libpam-thinkfinger<br />
<br />
Now the driver is installed and should be working. You can try it (as root) with <br />
<br />
sudo tf-tool --acquire <br />
<br />
and <br />
<br />
sudo tf-tool --verify <br />
<br />
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. <br />
<br />
Setup Pam:<br />
<br />
sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable<br />
<br />
Add user:<br />
<br />
tf-tool --acquire $USERNAME<br />
<br />
Optional: Change the login screen to allow keyboard-less login:<br />
<br />
Go to: System>Administration>Login Window<br />
<br />
Click on the 'Local' tab.<br />
<br />
Set the drop-down boxes to: 'Themed with face browser' and 'Selected Only' and choose 'Human List' from the list of logins.<br />
<br />
Note: it may take some time for the reader to startup, give it 5 seconds before use and before pressing enter to initiate login.<br />
<br />
= Setup Automatic Screen Rotation =<br />
The following was inspired by [[Installing Ubuntu 8.10 (Intrepid Ibex) on an X61 Tablet]], with some minor additions:<br />
<br />
* put the following in '''/etc/acpi/events/lenovo-rotate-normal'''<br />
<br />
# /etc/acpi/events/lenovo-rotate-normal<br />
# This is called when the user rotates the screen to laptop mode<br />
<br />
event=ibm/hotkey HKEY 00000080 0000500a<br />
action=/etc/acpi/thinkpad-rotatescreen.sh right<br />
<br />
* put the following in '''/etc/acpi/events/lenovo-rotate-tablet'''<br />
<br />
# /etc/acpi/events/lenovo-rotate-tablet<br />
# This is called when the user rotates the screen to tablet mode<br />
<br />
event=ibm/hotkey HKEY 00000080 00005009<br />
action=/etc/acpi/thinkpad-rotatescreen.sh normal<br />
<br />
* put the following in '''/etc/acpi/thinkpad-rotatescreen.sh''' and make it executable<br />
<br />
#!/bin/sh<br />
#<br />
# This script rotates the display in TabletPCs when screen is changed from<br />
# laptop to tablet mode, or when rotation button is pressed<br />
<br />
test -f /usr/share/acpi-support/key-constants || exit 0<br />
<br />
. /usr/share/acpi-support/power-funcs<br />
<br />
# i'm not trusting this ...<br />
#if [ -f /var/lib/acpi-support/screen-rotation ] ; then<br />
# ROTATION=`cat /var/lib/acpi-support/screen-rotation`<br />
#fi<br />
<br />
# ... and thus calling this with a parameter<br />
ROTATION="$1" # this should be called "ROTATION_FROM"<br />
<br />
case "$ROTATION" in<br />
right)<br />
NEW_ROTATION="normal"<br />
NEW_WACOM="none"<br />
;;<br />
*)<br />
NEW_ROTATION="right"<br />
NEW_WACOM="cw"<br />
;;<br />
esac<br />
<br />
for x in /tmp/.X11-unix/*; do<br />
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`<br />
getXconsole;<br />
if [ x"$XAUTHORITY" != x"" ]; then<br />
export DISPLAY=":$displaynum" <br />
/usr/bin/xrandr -o $NEW_ROTATION && echo $NEW_ROTATION > /var/lib/acpi-support/screen-rotation<br />
<br />
# rotate the stylus<br />
for type in "Serial Wacom Tablet eraser" "Serial Wacom Tablet touch" "Serial Wacom Tablet" ; do<br />
/usr/bin/xsetwacom set "$type" rotate $NEW_WACOM<br />
done<br />
<br />
# rotate the arrow keys<br />
case "$NEW_ROTATION" in<br />
right)<br />
xmodmap - <<END<br />
keycode 114 = Up NoSymbol Up NoSymbol Up<br />
keycode 111 = Left NoSymbol Left NoSymbol Left<br />
keycode 116 = Right NoSymbol Right NoSymbol Right<br />
keycode 113 = Down NoSymbol Down NoSymbol Down<br />
END<br />
;;<br />
*)<br />
xmodmap - <<END<br />
keycode 111 = Up NoSymbol Up NoSymbol Up<br />
keycode 113 = Left NoSymbol Left NoSymbol Left<br />
keycode 114 = Right NoSymbol Right NoSymbol Right<br />
keycode 116 = Down NoSymbol Down NoSymbol Down<br />
END<br />
;;<br />
esac<br />
fi<br />
done<br />
<br />
<br />
Note: check the output of<br />
xsetwacom list dev<br />
to identify the devices to put in the line<br />
for type in "Serial Wacom Tablet eraser" "Serial Wacom Tablet touch" "Serial Wacom Tablet" ; do<br />
My system has a touch and a cursor device.<br />
<br />
= Setup ThinkVantage ActiveProtection =<br />
<br />
sudo cp /etc/modules /etc/modules_backup<br />
<br />
sudo aptitude install tp-smapi-source<br />
<br />
sudo module-assistant prepare tp-smapi<br />
<br />
sudo module-assistant auto-install tp-smapi<br />
<br />
sudo modprobe tp-smapi<br />
<br />
sudo aptitude install hdapsd<br />
<br />
echo 'tp-smapi' | sudo tee -a /etc/modules<br />
<br />
<br />
<br />
You can set the activeprotection sensivity:<br />
<br />
cd /etc/default/<br />
gedit hdapsd<br />
<br />
# sensitivity<br />
SENSITIVITY=25<br />
<br />
= Useful Task: Disable Bluetooth on Startup =<br />
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).<br />
<br />
edit /etc/rc.local and add:<br />
<br />
chmod 666 /proc/acpi/ibm/bluetooth <br />
echo "disable" > /proc/acpi/ibm/bluetooth<br />
<br />
before the 'exit 0' line<br />
<br />
*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)<br />
<br />
*note proc is depreciated and may not work in future releases<br />
<br />
= Useful Task: Enable Laptop Mode =<br />
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.<br />
<br />
*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.<br />
<br />
*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. <br />
<br />
*Warning: Do Not Use Laptop Mode if you have a SSD. It is for platter drives only.<br />
<br />
Edit /etc/default/acpi-support<br />
<br />
sudo gedit /etc/default/acpi-support<br />
<br />
Set: "ENABLE_LAPTOP_MODE=true"<br />
<br />
Configure Laptop Mode<br />
<br />
sudo gedit /etc/laptop-mode/laptop-mode.conf<br />
<br />
= Optional Task: Adjusting Trackpoint Settings =<br />
If you find that your trackpoint pointer is too slow, use [http://sourceforge.net/projects/tpctl/ control-trackpoint] to adjust your settings. <br />
<br />
To install, install sysfsutils first, as per [http://tpctl.sourceforge.net/configure-trackpoint.html tpctl's documentaton] <br />
<br />
sudo apt-get install sysfsutils<br />
<br />
then install the .deb from sourceforge (the graphical installer worked for me). Once installed, run:<br />
<br />
sudo configure-trackpoint<br />
<br />
= Sources =<br />
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.<br />
<br />
[[Category:X61 Tablet]]</div>Swatspyder