<?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=Ambush+Commander</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=Ambush+Commander"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Ambush_Commander"/>
	<updated>2026-04-30T12:54:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_8.10_(Intrepid_Ibex)_on_a_ThinkPad_X61_Tablet&amp;diff=41706</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=41706"/>
		<updated>2009-03-01T09:25:37Z</updated>

		<summary type="html">&lt;p&gt;Ambush Commander: /* Tilt detection */ krizka instructions on 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.&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;
[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 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>Ambush Commander</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=41704</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=41704"/>
		<updated>2009-03-01T09:02:58Z</updated>

		<summary type="html">&lt;p&gt;Ambush Commander: /* Stylus */  add information on making eraser work on xournal&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.&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>Ambush Commander</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=LCD_Brightness&amp;diff=41703</id>
		<title>LCD Brightness</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=LCD_Brightness&amp;diff=41703"/>
		<updated>2009-03-01T08:54:56Z</updated>

		<summary type="html">&lt;p&gt;Ambush Commander: /* Ubuntu 8.10 Intrepid Ibex */  x61 problems&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Stub}}&lt;br /&gt;
&lt;br /&gt;
== Regular ACPI ==&lt;br /&gt;
&lt;br /&gt;
This worked for my {{X61}}:&lt;br /&gt;
&lt;br /&gt;
Once your brightness keys work, you can set the brightness by writing to the procfs:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|echo 100 &amp;gt; /proc/acpi/video/VID1/LCD0/brightness}}&lt;br /&gt;
&lt;br /&gt;
using a script and acpid events. However this may lead to a bug (screen flickers) described on the Debian mailing list [[http://www.mail-archive.com/debian-x@lists.debian.org/msg71942.html]]. This bug is related to the X server as it does not occur on the tty1. To fix it change your xrandr backlight control to native:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|$xrandr --output LVDS --set BACKLIGHT_CONTROL native}}&lt;br /&gt;
&lt;br /&gt;
For my {{X61}}, these following scripts from [http://d.hatena.ne.jp/conceal-rs/20080309/1205083315 this japanese site] helped:&lt;br /&gt;
&lt;br /&gt;
 % cat /etc/acpi/video_brightnessdown.sh&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xbacklight -dec 10%&lt;br /&gt;
&lt;br /&gt;
 % cat /etc/acpi/video_brightnessup.sh&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xbacklight -inc 10%&lt;br /&gt;
=== 2.6.26 kernel ===&lt;br /&gt;
&lt;br /&gt;
If you are using a 2.6.26 kernel, you are supposed to use the regular ACPI backlight control instead of thinkpad-acpi, on any Lenovo (Windows Vista-capable) ThinkPad.&lt;br /&gt;
&lt;br /&gt;
Modify the kernel config by first disabling CONFIG_THINKPAD_ACPI_VIDEO and then enabling both CONFIG_VIDEO_OUTPUT_CONTROL and CONFIG_ACPI_VIDEO [http://www.nabble.com/T61-Brightness-keys-with-2.6.26-not-working-(NVIDIA)-td18577619.html]  While you are at it, be sure to read the well-written help sections for the kernel config settings :)&lt;br /&gt;
&lt;br /&gt;
== Thinkpad-ACPI ==&lt;br /&gt;
&lt;br /&gt;
If you have an older ThinkPad model, such as the {{T20}}, you may want to use [[thinkpad-acpi]].&lt;br /&gt;
You can adjust the brightness of your screen by software using either procfs or sysfs.&lt;br /&gt;
&lt;br /&gt;
If the following commands fail, you may want to try other module parameters for thinkpad-acpi. I had to use &amp;lt;tt&amp;gt;backlight_mode=1&amp;lt;/tt&amp;gt; for example on my {{T20}}.&lt;br /&gt;
Just add the following line to your {{path|/etc/modprobe.conf}}&lt;br /&gt;
 options thinkpad-acpi brightness_mode=1&lt;br /&gt;
&lt;br /&gt;
See the chapter &amp;lt;tt&amp;gt;LCD brightness control&amp;lt;/tt&amp;gt; of {{path|Documentation/laptops/thinkpad-acpi.txt}} in the kernel sources for more informations.&lt;br /&gt;
&lt;br /&gt;
==== Using procfs ====&lt;br /&gt;
&lt;br /&gt;
To adjust the brightness to a certain level:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|echo 'level 3' &amp;gt; /proc/acpi/ibm/brightness}}&lt;br /&gt;
&lt;br /&gt;
Just one level up or down:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|echo 'up' &amp;gt; /proc/acpi/ibm/brightness}} &amp;lt;br /&amp;gt;&lt;br /&gt;
{{cmdroot|echo 'down' &amp;gt; /proc/acpi/ibm/brightness}}&lt;br /&gt;
&lt;br /&gt;
See {{path|/proc/acpi/ibm/brightness}} for a list of all available commands.&lt;br /&gt;
&lt;br /&gt;
==== Using sysfs ====&lt;br /&gt;
&lt;br /&gt;
The sysfs-interface allows more a flexible method of brightness control:&lt;br /&gt;
&lt;br /&gt;
Get the current brightness level:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|cat /sys/class/backlight/thinkpad_screen/actual_brightness}}&lt;br /&gt;
&lt;br /&gt;
Get the highest brightness level:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|cat /sys/class/backlight/thinkpad_screen/max_brightness}}&lt;br /&gt;
&lt;br /&gt;
Adjust the brightness to a certain level:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|echo 3 &amp;gt; /sys/class/backlight/thinkpad_screen/brightness}}&lt;br /&gt;
&lt;br /&gt;
== Ubuntu 8.10 Intrepid Ibex ==&lt;br /&gt;
The hardware keys work out of the box on a clean install of Ubuntu 8.10 Intrepid Ibex and openSUSE 11.1.  No tweaking necessary.&lt;br /&gt;
&lt;br /&gt;
X61 appears to have some problems; the hardware keys for adjusting brightness are recognized, but they don't actually change the brightness. Setting xrandr to native, as described above, fixes the problem.&lt;/div&gt;</summary>
		<author><name>Ambush Commander</name></author>
		
	</entry>
</feed>