<?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=Jd</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=Jd"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Jd"/>
	<updated>2026-04-30T12:54:36Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=User:Jd&amp;diff=53575</id>
		<title>User:Jd</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=User:Jd&amp;diff=53575"/>
		<updated>2012-03-15T15:00:30Z</updated>

		<summary type="html">&lt;p&gt;Jd: â†Created page with '== Machines ==  * x61t * t500 * x301'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Machines ==&lt;br /&gt;
&lt;br /&gt;
* x61t&lt;br /&gt;
* t500&lt;br /&gt;
* x301&lt;/div&gt;</summary>
		<author><name>Jd</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_X61_Tablet&amp;diff=41751</id>
		<title>Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_X61_Tablet&amp;diff=41751"/>
		<updated>2009-03-02T17:50:42Z</updated>

		<summary type="html">&lt;p&gt;Jd: /* Tilt detection */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not complete, but it documents some differences from [[Installing Ubuntu 8.04 (Hardy Heron) on a ThinkPad X61|the Hardy page]]. &lt;br /&gt;
&lt;br /&gt;
Installing Intrepid should work the same as on most other computers. If you don't have [[UltraBase X6 Tablet|Ultrabase]] with a CD drive or another external CD drive, you can install from a USB drive.&lt;br /&gt;
&lt;br /&gt;
Do not forget to install the mandatory wacom drivers before editing your xorg.conf! See [https://help.ubuntu.com/community/Wacom the Wacom documentation of the official Ubuntu help]. Basically, you need to install wacom-tools and xserver-xorg-input-wacom. You may get it using apt-get/Synaptic or from source.&lt;br /&gt;
&lt;br /&gt;
= Tablet specific features = &lt;br /&gt;
&lt;br /&gt;
== Stylus ==&lt;br /&gt;
Enable it as described in [[Wacom_Serial_Tablet_PC_Stylus]]:&lt;br /&gt;
Add to /etc/X11/xorg.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;stylus&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;stylus&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;           # Tablet PC ONLY&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;eraser&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;eraser&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;           # Tablet PC ONLY&lt;br /&gt;
  Option        &amp;quot;Button1&amp;quot;       &amp;quot;3&amp;quot;               # This works better with Xournal&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;cursor&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;cursor&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;           # Tablet PC ONLY&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main difference from Hardy, is that the option &amp;quot;Device&amp;quot; no longer takes the value &amp;quot;/dev/ttyS0&amp;quot;, but &amp;quot;/dev/input/wacom&amp;quot; (due to a newer version of the driver). If your tablet supports MultiTouch, you can also add the section (untested - please remove this paranthesis if you have tested this successfully)&lt;br /&gt;
&lt;br /&gt;
The Option Button1 3 incant in the eraser section is what I needed to add in order to make the tablet's eraser work with Xournal. I have not tested with other note-taking software.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;touch&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;touch&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you will need a ServerLayout section. If you already have one, add the lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   InputDevice    &amp;quot;stylus&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
   InputDevice    &amp;quot;eraser&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
   InputDevice    &amp;quot;cursor&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to it. If there is no such section (which is the default), it has to be added. It can then look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerLayout&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;Default Layout&amp;quot;&lt;br /&gt;
  Screen        &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
  InputDevice   &amp;quot;stylus&amp;quot;  &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
  InputDevice   &amp;quot;eraser&amp;quot;  &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
  InputDevice   &amp;quot;cursor&amp;quot;  &amp;quot;SendCoreEvents&amp;quot; &lt;br /&gt;
# InputDevice   &amp;quot;touch&amp;quot;   &amp;quot;SendCoreEvents&amp;quot; # Only a few TabletPCs support this type&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Uncomment the last line if you have a MultiTouch capable tablet. The Identifier can be whatever you want, and the Screen is whatever the Identifier of your screen section is. &amp;quot;Default Screen&amp;quot; is the default. Make sure that you have a newline after the last EndSection in your file.&lt;br /&gt;
&lt;br /&gt;
== Rotate screen when turning into slate mode ==&lt;br /&gt;
&lt;br /&gt;
When you turn the screen to put the computer into slate mode (a.k.a. tablet mode) you typically want the picture on screen to rotate into portrait mode. The X61 generates an ACPI event when it is turned into slate mode and another event when it is turned back. We can then let acpid rotate the screen at this event.&lt;br /&gt;
At the moment, Ubuntu does not automatically rotate the stylus when the screen is rotated. This means that if you touch the screen in one corner, the cursor will show up in another. &lt;br /&gt;
We also want to remap the arrow keys so that what used to be left now becomes down, etc. so that the &amp;quot;wheel&amp;quot; work as expected.&lt;br /&gt;
&lt;br /&gt;
First, we add two files for changing the arrow keys to &amp;lt;tt&amp;gt;/etc/acpi&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Xmodmap.normalrotatedarrows&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Xmodmap.rightrotatedarrows&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first of these is the default configuration and four of the lines you should get when you run &amp;lt;tt&amp;gt;xmodmap -pke&amp;lt;/tt&amp;gt;. The second one rotates this the way we want for slate mode. &lt;br /&gt;
&lt;br /&gt;
Next, we place two scripts in &amp;lt;tt&amp;gt;/etc/acpi&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;rotatescreenandstylus-laptop.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;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;
# slate to laptop mode&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;
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;
	    # Rotate the screen&lt;br /&gt;
	    /usr/bin/xrandr --orientation normal&lt;br /&gt;
	    # Rotate the stylus&lt;br /&gt;
	    /usr/bin/xsetwacom set stylus rotate none&lt;br /&gt;
	    /usr/bin/xsetwacom set eraser rotate none&lt;br /&gt;
	    /usr/bin/xsetwacom set cursor rotate none&lt;br /&gt;
	    # Rotate the arrow keys&lt;br /&gt;
	    xmodmap /etc/acpi/Xmodmap.normalrotatedarrows&lt;br /&gt;
	fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;rotatescreenandstylus-slate.sh&amp;lt;/tt&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;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 slate mode&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;
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;
	    # Rotate the screen&lt;br /&gt;
	    /usr/bin/xrandr --orientation right&lt;br /&gt;
	    # Rotate the stylus&lt;br /&gt;
	    /usr/bin/xsetwacom set stylus rotate cw&lt;br /&gt;
	    /usr/bin/xsetwacom set eraser rotate cw&lt;br /&gt;
	    /usr/bin/xsetwacom set cursor rotate cw&lt;br /&gt;
	    # Rotate the arrow keys&lt;br /&gt;
	    xmodmap /etc/acpi/Xmodmap.rightrotatedarrows&lt;br /&gt;
	fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These two scripts are basically copied from &amp;lt;tt&amp;gt;/etc/acpi/rotatescreen.sh&amp;lt;/tt&amp;gt;, but instead of just rotating the screen it also rotates the stylus and the arrow keys. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, we need to make the scripts run when the ACPI events are generated. &lt;br /&gt;
This is accomplished by adding files to &amp;lt;tt&amp;gt;/etc/acpi/events&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;thinkpad-rotate-laptop&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
# /etc/acpi/events/thinkpad-rotate-slate&lt;br /&gt;
# This is called when the user rotates the screen to/from tablet mode&lt;br /&gt;
&lt;br /&gt;
event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
action=/etc/acpi/rotatescreenandstylus-laptop.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;thinkpad-rotate-slate&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# /etc/acpi/events/thinkpad-rotate-slate&lt;br /&gt;
# This is called when the user rotates the screen to/from tablet mode&lt;br /&gt;
&lt;br /&gt;
event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
action=/etc/acpi/rotatescreenandstylus-slate.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should be all. Next time you restart the computer or acpid, the screen/arrow key/stylus rotation should work when the computer is put into slate mode and back again.&lt;br /&gt;
&lt;br /&gt;
= Tilt detection =&lt;br /&gt;
Unlike Hardy, Intrepid does not have the hdaps_ec module, but there is a workaround. This has been reported as [https://bugs.launchpad.net/bugs/297213 bug 297213] in Launchpad. Basically, one need to :&lt;br /&gt;
:compile tp_smapi with the following commands:&lt;br /&gt;
 make HDAPS=1 KSRC=/usr/src/linux-headers-`uname -r`&lt;br /&gt;
 sudo make install HDAPS=1 KSRC=/usr/src/linux-headers-`uname -r`&lt;br /&gt;
:remove the following old-fashioned conf files:&lt;br /&gt;
 rm /lib/modules/$KVER/kernel/ubuntu/misc/thinkpad_ec.ko&lt;br /&gt;
 rm /lib/modules/$KVER/kernel/ubuntu/misc/tp_smapi.ko&lt;br /&gt;
 rm /lib/modules/$KVER/kernel/drivers/hwmon/hdaps.ko&lt;br /&gt;
:Replace them with those compiled at the previous step (sudo mv…)&lt;br /&gt;
:Add the following lines to /etc/modprobe.d/local:&lt;br /&gt;
 # enable thinkpad_ec&lt;br /&gt;
 options thinkpad_ec force_io=1&lt;br /&gt;
 &lt;br /&gt;
 # option to correctly set tilting through hdaps sensor&lt;br /&gt;
 # it depends on your laptop conf, just try different numbers in the range [0-6]&lt;br /&gt;
 # options hdaps invert=1&lt;br /&gt;
:Start required modules:&lt;br /&gt;
 sudo modprobe tp_smapi&lt;br /&gt;
 sudo modprobe hdaps&lt;br /&gt;
&lt;br /&gt;
One can then test the tilt feature with a program such as hdaps-gl or the game neverball.&lt;br /&gt;
&lt;br /&gt;
Further reading: [http://www.krizka.net/2008/01/23/thinkpad-x61-tablet-tilt-detection-and-ubuntu-hardy-heron/ this blog post] appears to have information on how to compile the kernel module. Be sure to `sudo modprobe hdaps` to load the kernel module, and add it to /etc/modules.conf (or equivalent) to load it at boot time.&lt;br /&gt;
&lt;br /&gt;
(TODO: Figure out how to enable hard drive prodection with accelerometers)&lt;br /&gt;
&lt;br /&gt;
= External links =&lt;br /&gt;
[http://blog.aliencam.net/?page_id=438 Customized Ubuntu Hardy Setup Guide on X61t Hardware].&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;br /&gt;
[[Category:Ubuntu 8.10]]&lt;/div&gt;</summary>
		<author><name>Jd</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=MultiTouch&amp;diff=41682</id>
		<title>MultiTouch</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=MultiTouch&amp;diff=41682"/>
		<updated>2009-02-26T22:42:15Z</updated>

		<summary type="html">&lt;p&gt;Jd: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |[[Image:Logo_wacom.gif|Wacom Logo]]&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin:0px; border: 1px solid #dfdfdf; padding: 0em 1em 1em 1em; background-color:#F8F8FF; align:right;&amp;quot;&amp;gt;&lt;br /&gt;
=== MultiTouch ===&lt;br /&gt;
Some models come with touchscreens habilities, known as MultiTouch.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
MultiTouch is a new feature on recent models of the X60/X61/+ Tablet. It allows you to use any device that can create pressure (such as your finger) instead of the tablet pen. This feature is currently ''experimentally'' supported with linuxwacom. However, the tablet pen will still work on such systems.&lt;br /&gt;
&lt;br /&gt;
If you tablet pen does not work, try building the linuxwacom modules from source. You can find everything you need [http://linuxwacom.sourceforge.net at their website].&lt;/div&gt;</summary>
		<author><name>Jd</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_X61_Tablet&amp;diff=41681</id>
		<title>Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_X61_Tablet&amp;diff=41681"/>
		<updated>2009-02-26T22:39:04Z</updated>

		<summary type="html">&lt;p&gt;Jd: warning&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is not complete, but it documents some differences from [[Installing Ubuntu 8.04 (Hardy Heron) on a ThinkPad X61|the Hardy page]]. &lt;br /&gt;
&lt;br /&gt;
Installing Intrepid should work the same as on most other computers. If you don't have [[UltraBase X6 Tablet|Ultrabase]] with a CD drive or another external CD drive, you can install from a USB drive.&lt;br /&gt;
&lt;br /&gt;
Do not forget to install the mandatory wacom drivers before editing your xorg.conf! See [https://help.ubuntu.com/community/Wacom the Wacom documentation of the official Ubuntu help]. Basically, you need to install wacom-tools and xserver-xorg-input-wacom. You may get it using apt-get/Synaptic or from source.&lt;br /&gt;
&lt;br /&gt;
= Tablet specific features = &lt;br /&gt;
&lt;br /&gt;
== Stylus ==&lt;br /&gt;
Enable it as described in [[Wacom_Serial_Tablet_PC_Stylus]]:&lt;br /&gt;
Add to /etc/X11/xorg.conf:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;stylus&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;stylus&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;           # Tablet PC ONLY&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;eraser&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;eraser&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;           # Tablet PC ONLY&lt;br /&gt;
EndSection&lt;br /&gt;
&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;cursor&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;cursor&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;           # Tablet PC ONLY&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The main difference from Hardy, is that the option &amp;quot;Device&amp;quot; no longer takes the value &amp;quot;/dev/ttyS0&amp;quot;, but &amp;quot;/dev/input/wacom&amp;quot; (due to a newer version of the driver). If your tablet supports MultiTouch, you can also add the section (untested - please remove this paranthesis if you have tested this successfully)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
  Driver        &amp;quot;wacom&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;touch&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/input/wacom&amp;quot;&lt;br /&gt;
  Option        &amp;quot;Type&amp;quot;          &amp;quot;touch&amp;quot;&lt;br /&gt;
  Option        &amp;quot;ForceDevice&amp;quot;   &amp;quot;ISDV4&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition you will need a ServerLayout section. If you already have one, add the lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   InputDevice    &amp;quot;stylus&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
   InputDevice    &amp;quot;eraser&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
   InputDevice    &amp;quot;cursor&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to it. If there is no such section (which is the default), it has to be added. It can then look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerLayout&amp;quot;&lt;br /&gt;
  Identifier    &amp;quot;Default Layout&amp;quot;&lt;br /&gt;
  Screen        &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
  InputDevice   &amp;quot;stylus&amp;quot;  &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
  InputDevice   &amp;quot;eraser&amp;quot;  &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
  InputDevice   &amp;quot;cursor&amp;quot;  &amp;quot;SendCoreEvents&amp;quot; &lt;br /&gt;
# InputDevice   &amp;quot;touch&amp;quot;   &amp;quot;SendCoreEvents&amp;quot; # Only a few TabletPCs support this type&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Uncomment the last line if you have a MultiTouch capable tablet. The Identifier can be whatever you want, and the Screen is whatever the Identifier of your screen section is. &amp;quot;Default Screen&amp;quot; is the default. Make sure that you have a newline after the last EndSection in your file.&lt;br /&gt;
&lt;br /&gt;
== Rotate screen when turning into slate mode ==&lt;br /&gt;
&lt;br /&gt;
When you turn the screen to put the computer into slate mode (a.k.a. tablet mode) you typically want the picture on screen to rotate into portrait mode. The X61 generates an ACPI event when it is turned into slate mode and another event when it is turned back. We can then let acpid rotate the screen at this event.&lt;br /&gt;
At the moment, Ubuntu does not automatically rotate the stylus when the screen is rotated. This means that if you touch the screen in one corner, the cursor will show up in another. &lt;br /&gt;
We also want to remap the arrow keys so that what used to be left now becomes down, etc. so that the &amp;quot;wheel&amp;quot; work as expected.&lt;br /&gt;
&lt;br /&gt;
First, we add two files for changing the arrow keys to &amp;lt;tt&amp;gt;/etc/acpi&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Xmodmap.normalrotatedarrows&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;Xmodmap.rightrotatedarrows&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first of these is the default configuration and four of the lines you should get when you run &amp;lt;tt&amp;gt;xmodmap -pke&amp;lt;/tt&amp;gt;. The second one rotates this the way we want for slate mode. &lt;br /&gt;
&lt;br /&gt;
Next, we place two scripts in &amp;lt;tt&amp;gt;/etc/acpi&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;rotatescreenandstylus-laptop.sh&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;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;
# slate to laptop mode&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;
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;
	    # Rotate the screen&lt;br /&gt;
	    /usr/bin/xrandr --orientation normal&lt;br /&gt;
	    # Rotate the stylus&lt;br /&gt;
	    /usr/bin/xsetwacom set stylus rotate none&lt;br /&gt;
	    /usr/bin/xsetwacom set eraser rotate none&lt;br /&gt;
	    /usr/bin/xsetwacom set cursor rotate none&lt;br /&gt;
	    # Rotate the arrow keys&lt;br /&gt;
	    xmodmap /etc/acpi/Xmodmap.normalrotatedarrows&lt;br /&gt;
	fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;rotatescreenandstylus-slate.sh&amp;lt;/tt&amp;gt; &lt;br /&gt;
&amp;lt;pre&amp;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 slate mode&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;
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;
	    # Rotate the screen&lt;br /&gt;
	    /usr/bin/xrandr --orientation right&lt;br /&gt;
	    # Rotate the stylus&lt;br /&gt;
	    /usr/bin/xsetwacom set stylus rotate cw&lt;br /&gt;
	    /usr/bin/xsetwacom set eraser rotate cw&lt;br /&gt;
	    /usr/bin/xsetwacom set cursor rotate cw&lt;br /&gt;
	    # Rotate the arrow keys&lt;br /&gt;
	    xmodmap /etc/acpi/Xmodmap.rightrotatedarrows&lt;br /&gt;
	fi&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These two scripts are basically copied from &amp;lt;tt&amp;gt;/etc/acpi/rotatescreen.sh&amp;lt;/tt&amp;gt;, but instead of just rotating the screen it also rotates the stylus and the arrow keys. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, we need to make the scripts run when the ACPI events are generated. &lt;br /&gt;
This is accomplished by adding files to &amp;lt;tt&amp;gt;/etc/acpi/events&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;thinkpad-rotate-laptop&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt; &lt;br /&gt;
# /etc/acpi/events/thinkpad-rotate-slate&lt;br /&gt;
# This is called when the user rotates the screen to/from tablet mode&lt;br /&gt;
&lt;br /&gt;
event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
action=/etc/acpi/rotatescreenandstylus-laptop.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;thinkpad-rotate-slate&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# /etc/acpi/events/thinkpad-rotate-slate&lt;br /&gt;
# This is called when the user rotates the screen to/from tablet mode&lt;br /&gt;
&lt;br /&gt;
event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
action=/etc/acpi/rotatescreenandstylus-slate.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should be all. Next time you restart the computer or acpid, the screen/arrow key/stylus rotation should work when the computer is put into slate mode and back again.&lt;br /&gt;
&lt;br /&gt;
= Tilt detection =&lt;br /&gt;
Unlike Hardy, Intrepid does not have the hdaps_ec module.&lt;br /&gt;
&lt;br /&gt;
This has been reported as [https://bugs.launchpad.net/bugs/297213 bug 297213] in Launchpad.&lt;br /&gt;
&lt;br /&gt;
(TODO: Add information on how to download and compile the driver here.)&lt;br /&gt;
&lt;br /&gt;
= External links =&lt;br /&gt;
[http://blog.aliencam.net/?page_id=438 Customized Ubuntu Hardy Setup Guide on X61t Hardware].&lt;br /&gt;
&lt;br /&gt;
[[Category:X61 Tablet]]&lt;br /&gt;
[[Category:Ubuntu 8.10]]&lt;/div&gt;</summary>
		<author><name>Jd</name></author>
		
	</entry>
</feed>