Difference between revisions of "Installing Ubuntu 8.04 (Hardy Heron) on a ThinkPad X61 Tablet"

From ThinkWiki
Jump to: navigation, search
(Simplify introduction.)
m (added line to enable eraser)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
 
Installed from the alternate version CD.  
 
Installed from the alternate version CD.  
  
Line 92: Line 91:
 
   InputDevice    "cursor" "SendCoreEvents"
 
   InputDevice    "cursor" "SendCoreEvents"
 
   InputDevice    "stylus" "SendCoreEvents"
 
   InputDevice    "stylus" "SendCoreEvents"
 +
 +
if you want the eraser to work, also add in Section ServerLayout:
 +
 +
  InputDevice    "eraser" "SendCoreEvents"
 +
  
 
== Trackpoint ==
 
== Trackpoint ==
Line 101: Line 105:
  
 
= Tilt Detection =
 
= Tilt Detection =
These steps have been referenced from [http://www.krizka.net/2008/01/23/thinkpad-x61-tablet-tilt-detection-and-ubuntu-hardy-heron/ Krizka's Blog] with a few changes.
+
Ubuntu Hardy Heron supports the tilt detection via the hdaps_ec module.
  
1) Install the necessary build tools:
+
1) Add the following line to the bottom of the /etc/modules file. This will ensure that the module will be loaded the next time you start-up your laptop.
<pre><nowiki>sudo aptitude install build-essential linux-kernel-headers</nowiki></pre>
+
<pre><nowiki>hdaps_ec</nowiki></pre>
  
2) Download the tp_smapi package.  It contains all the necessary sources for the hdaps module. This tutorial will be using tp_smapi version 0.36. [http://sourceforge.net/project/showfiles.php?group_id=1212 Download Here].  I downloaded the package to /opt.
+
2) And update your initramfs:
 +
<pre><nowiki>sudo update-initramfs -u</nowiki></pre>
  
3) Extract the packge:
+
3) Load the module manually so you do not have to restart your laptop.
<pre><nowiki>sudo tar -xvzf tp_smapi-0.36.tgz</nowiki></pre>
+
<pre><nowiki>sudo modprobe hdaps_ec</nowiki></pre>
  
4) After unpacking, I didn't have permissions to enter the folder.  Still being new to Linux, I changed the folder's access permissions using:
+
4) Install hdaps-utils in order to test the new module:
<pre><nowiki>sudo chmod 777 tp_smapi-0.36</nowiki></pre>
 
For those of you who know better, I wouldn't recommend using 777, as that allows the folder to be read and edited by anyone.  Enter the folder:
 
<pre><nowiki>cd tp_smapi-0.36</nowiki></pre>
 
 
 
5) Build the sources:
 
<pre><nowiki>sudo make HDAPS=1 KSRC=/usr/src/linux-headers-`uname -r`</nowiki></pre>
 
 
 
6) Install the module:
 
<pre><nowiki>sudo make install HDAPS=1 KSRC=/usr/src/linux-headers-`uname -r`</nowiki></pre>
 
 
 
7) Install hdaps-utils in order to test the new module:
 
 
<pre><nowiki>sudo aptitude install hdaps-utils</nowiki></pre>
 
<pre><nowiki>sudo aptitude install hdaps-utils</nowiki></pre>
  
8) Load the new modules:
+
5) Run a test.  hdaps-gl should open up a new window showing the tablet's orientation.  If you don't want to use a graphical tool, hdaps-pivot prints its output to the command line:
<pre><nowiki>sudo modprobe -a tp_smapi hdaps</nowiki></pre>
 
 
 
9) Run a test.  hdaps-gl should open up a new window showing the tablet's orientation.  If you don't want to use a graphical tool, hdaps-pivot prints its output to the command line:
 
 
<pre><nowiki>hdaps-gl</nowiki></pre>
 
<pre><nowiki>hdaps-gl</nowiki></pre>
 
10) To make sure your system loads the modules at boot time add "tp_smapi" and "hdaps", without the quotes and one per line, to /etc/modules.  Using echo didn't work for me, so I used pico:
 
<pre><nowiki>sudo pico /etc/modules</nowiki></pre>
 
 
11) And update your initramfs:
 
<pre><nowiki>sudo update-initramfs -u</nowiki></pre>
 
 
  
 
== External Links ==
 
== External Links ==

Latest revision as of 17:16, 2 March 2009

Installed from the alternate version CD.

Graphic

Graphics Card

3D acceleration and Compiz Fusion worked out of the box.

X

Edit /etc/X11/xorg.conf and add to Section Screen

SubSection "Display"
	Virtual 3000 2250
EndSubSection

The Parameters behind Virtual must be bigger than all your Displays added together (3000 = 1400 + 1600) Now you can adust you settings with xrandr. e.g.:

xrandr --output LVDS --rotate left
xrandr --output LVDS --rotate normal
xrandr --output VGA --auto --right-of LVDS
…

Konsole

Edit /etc/modprobe.d/blacklist-framebuffer and comment this out:

#blacklist vesafb
#blacklist vga16fb

Add to /etc/initramfs-tools/modules

fbcon
vesafb
vga16fb

Run

sudo update-initramfs -u

Edit /boot/grub/menu.lst and change at defoptions:

vga=0x31b

Run

sudo update-grub

Input Devices

Keyboard

In some cases the mute button won't work.

For this add in the /boot/grub/menu.lst file following kernel parameter:

acpi_osi="Linux"

Run

sudo update-grub

Stylus

Enable it as described in Wacom_Serial_Tablet_PC_Stylus: Add to /etc/X11/xorg.conf:

  Section "InputDevice"
    Driver        "wacom"
    Identifier    "cursor"
    Option        "Device"        "/dev/ttyS0"
    Option        "Type"          "cursor"
    Option        "ForceDevice"   "ISDV4"     
    Option        "Mode"          "Absolute"
  EndSection
  
  Section "InputDevice"
    Driver        "wacom"
    Identifier    "stylus"
    Option        "Device"        "/dev/ttyS0"
    Option        "Type"          "stylus"
    Option        "ForceDevice"   "ISDV4"
  EndSection
  
  Section "InputDevice"
    Driver        "wacom"
    Identifier    "eraser"
    Option        "Device"        "/dev/ttyS0"
    Option        "Type"          "eraser"
    Option        "ForceDevice"   "ISDV4"
  EndSection

and in Section ServerLayout:

  InputDevice    "cursor" "SendCoreEvents"
  InputDevice    "stylus" "SendCoreEvents"

if you want the eraser to work, also add in Section ServerLayout:

  InputDevice    "eraser" "SendCoreEvents"


Trackpoint

The three mouse buttons and trackpoint nipple/stick/nub work out of the box.

If you want the middle mouse button and the nipple to function together as a mouse wheel, add the following to the Configured Mouse Input Device section in /etc/X11/xorg.config:

Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2" 

Tilt Detection

Ubuntu Hardy Heron supports the tilt detection via the hdaps_ec module.

1) Add the following line to the bottom of the /etc/modules file. This will ensure that the module will be loaded the next time you start-up your laptop.

hdaps_ec

2) And update your initramfs:

sudo update-initramfs -u

3) Load the module manually so you do not have to restart your laptop.

sudo modprobe hdaps_ec

4) Install hdaps-utils in order to test the new module:

sudo aptitude install hdaps-utils

5) Run a test. hdaps-gl should open up a new window showing the tablet's orientation. If you don't want to use a graphical tool, hdaps-pivot prints its output to the command line:

hdaps-gl

External Links

Customized Ubuntu Hardy Setup Guide on X61t Hardware.