<?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=Kinglz</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=Kinglz"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Kinglz"/>
	<updated>2026-04-09T22:07:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_6.10_on_a_ThinkPad_X41_Tablet&amp;diff=28235</id>
		<title>Installing Ubuntu 6.10 on a ThinkPad X41 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_6.10_on_a_ThinkPad_X41_Tablet&amp;diff=28235"/>
		<updated>2007-02-15T22:32:47Z</updated>

		<summary type="html">&lt;p&gt;Kinglz: /* Wacom Stylus */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This document describes the process of (installing and?) configuring [https://wiki.ubuntu.com/EdgyEft Ubuntu Edgy Eft] (final release expected October 2006) on a Lenovo ThinkPad X41 Tablet. With whatever relevance it may have, the particular model number used in testing was an 1869CSU. Keep in mind that at this document's inception 6.10 is a development version of the Ubuntu Linux OS.&lt;br /&gt;
&lt;br /&gt;
== Success Chart ==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|colspan=2| '''Item''' || '''Working'''&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2|Installation &lt;br /&gt;
| Network Installation ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
| USB Installation     ||class=&amp;quot;diff-addedline&amp;quot;| Yes (CD)&lt;br /&gt;
|- &lt;br /&gt;
|rowspan=4|Display&lt;br /&gt;
| Laptop Screen  ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
| CRT / Projector ||class=&amp;quot;diff-context&amp;quot;| Unknown&lt;br /&gt;
|-&lt;br /&gt;
| Screen Rotation ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
| Stylus ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2|Power Management&lt;br /&gt;
| Software Suspend (hibernate) ||class=&amp;quot;diff-context&amp;quot;| Unknown&lt;br /&gt;
|-&lt;br /&gt;
| Suspend to Memory (ACPI sleep) ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
|colspan=2| Audio ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2| Wireless || 802.11b/g ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|-&lt;br /&gt;
| Bluetooth ||class=&amp;quot;diff-context&amp;quot;| Unknown&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=2|Extra Buttons || Keyboard Section ||class=&amp;quot;diff-context&amp;quot;| Unknown&lt;br /&gt;
|-&lt;br /&gt;
| Tablet buttons ||class=&amp;quot;diff-context&amp;quot;| Unknown&lt;br /&gt;
|-&lt;br /&gt;
|colspan=2| Fingerprint Scanner ||class=&amp;quot;diff-context&amp;quot;| Unknown&lt;br /&gt;
|-&lt;br /&gt;
|colspan=2| Harddisk Active Protection ||class=&amp;quot;diff-addedline&amp;quot;| Yes&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Pre-Installation Notes =&lt;br /&gt;
&lt;br /&gt;
== Tablet Screen Rotation (updated i810 drivers) ==&lt;br /&gt;
&lt;br /&gt;
This edition of Ubuntu (Edgy) has XRandR enabled i810 drivers, which allow you to rotate your screen orientation on the fly. The command &amp;lt;tt&amp;gt;xrandr -o [orientation]&amp;lt;/tt&amp;gt; will rotate your screen to your liking. For more information about the &amp;lt;tt&amp;gt;xrandr&amp;lt;/tt&amp;gt; command, refer to the man file (&amp;lt;tt&amp;gt;man xrandr&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Wireless Support ==&lt;br /&gt;
&lt;br /&gt;
Wireless seems to be supported flawlessly in terms of drivers, though I'm not sure how well the built-in Network Manager works. I use the &amp;lt;tt&amp;gt;iwconfig&amp;lt;/tt&amp;gt; command to manage my wireless, as I have a need to create pseudo-&amp;quot;profiles&amp;quot;, and in this document I will describe this alternative process.&lt;br /&gt;
&lt;br /&gt;
== Fingerprint Reader Support ==&lt;br /&gt;
&lt;br /&gt;
Honestly, I care very little about the fingerprint functionality. Its only real use seems to be for gksu-type logins while the tablet is swiveled down, which doesn't occur often in my setup. If someone wants to explore/expound, please do, but I won't include any details about the fingerprint reader in this document.&lt;br /&gt;
&lt;br /&gt;
== Terminology Used ==&lt;br /&gt;
&lt;br /&gt;
For those of you new to Linux, I'll try to detail a few terms I use with little explanation:&lt;br /&gt;
* Xorg configuration -- the display configuration file, residing in &amp;lt;tt&amp;gt;/etc/X11/xorg.conf&amp;lt;/tt&amp;gt;&lt;br /&gt;
* Execute a command -- press Alt-F2, then type &amp;lt;tt&amp;gt;gnome-terminal&amp;lt;/tt&amp;gt; into the prompt and press enter -- this is a terminal into which you input said commands&lt;br /&gt;
&lt;br /&gt;
= Installation Notes =&lt;br /&gt;
&lt;br /&gt;
== Booting With NetBOOT ==&lt;br /&gt;
&lt;br /&gt;
To boot over NetBOOT I fisrt went into the BIOS and change the boot settings so that PXE was first on the list.  Then I set my desktop to be a DHCP server (dhcp3-server) and configured it using this site [http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install Ubuntu_PXE_Install] and installed tftpd-hpa&lt;br /&gt;
&lt;br /&gt;
Then I downloaded the [http://archive.ubuntu.com/ubuntu/dists/dapper/main/installer-i386/current/images/netboot/netboot.tar.gz Dapper netboot archive] (I tried the testing edgy but it would not run on my X41 as of 9/9/06)&lt;br /&gt;
&lt;br /&gt;
Then I assigned my desktop a static IP in the range I set my DHCP server up for and plugged my laptop into it with a cross over cable and rebooted.  &lt;br /&gt;
&lt;br /&gt;
The X41 received an IP and then connected to lftp and the same screen as the Ubuntu netboot CD has came up and I followed the instructions.&lt;br /&gt;
&lt;br /&gt;
Once it was intstalled and up-to-date I ran (leave in all quotes, they are important)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;sudo aptitiude update &amp;amp;&amp;amp; sudo aptitude upgrade &lt;br /&gt;
gksudo &amp;quot;update-manager -c -d&amp;quot; &amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To upgrade to edgy eft&lt;br /&gt;
&lt;br /&gt;
= Post-Installation Notes =&lt;br /&gt;
&lt;br /&gt;
== Configuring Xorg ==&lt;br /&gt;
&lt;br /&gt;
=== TrackPoint ===&lt;br /&gt;
&lt;br /&gt;
Like in all ThinkPad Xorg configurations, add the following under the &amp;quot;Configured Mouse&amp;quot; device to enable TrackPoint scrolling:&lt;br /&gt;
&lt;br /&gt;
 Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;true&amp;quot;&lt;br /&gt;
 Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Wacom Stylus ===&lt;br /&gt;
&lt;br /&gt;
First install the wacom drivers with the following command:&lt;br /&gt;
 sudo apt-get install wacom-kernel-source xserver-xorg-input-wacom wacom-tools&lt;br /&gt;
&lt;br /&gt;
After doing this, I strongly suggest that you reboot your computer; however, if you're one of those people whose uptime is on the order of four years, I'm sure you'll figure out an alternative that I won't be describing here.&lt;br /&gt;
&lt;br /&gt;
Next step is to check to see if &amp;lt;tt&amp;gt;/dev/wacom&amp;lt;/tt&amp;gt; exists. A '&amp;lt;tt&amp;gt;ls -al /dev | grep wacom&amp;lt;/tt&amp;gt;' should do the trick quite nicely. If it &amp;lt;strong&amp;gt;does&amp;lt;/strong&amp;gt; exist, add the following to your Xorg configuration.&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;stylus&amp;quot;&lt;br /&gt;
   Option        &amp;quot;Device&amp;quot;        &amp;quot;/dev/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;&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/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;&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/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;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
And under the ServerLayout section add:&lt;br /&gt;
&lt;br /&gt;
        InputDevice     &amp;quot;stylus&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;eraser&amp;quot; &amp;quot;SendCoreEvents&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Some people seem to have slightly different configurations (potentially due to model differences). At any rate, if you're looking to find what serial device your stylus is, a simple '&amp;lt;tt&amp;gt;dmesg | grep ttyS&amp;lt;/tt&amp;gt;' should do the trick. Be sure to append to this article if the procedure varies from model to model.&lt;br /&gt;
&lt;br /&gt;
If the stylus still does not work after suspending (even after applying the fix below) try replacing all the &amp;quot;/dev/wacom&amp;quot;'s in your xorg to &amp;quot;/dev/ttyS0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Suspend Fix ====&lt;br /&gt;
&lt;br /&gt;
Every suspend/resume cycle drops the wacom, so create the file &amp;lt;tt&amp;gt;/etc/acpi/resume.d/20-setserial.sh&amp;lt;/tt&amp;gt; and add the following (modify settings for your device if necessary):&lt;br /&gt;
&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  /bin/setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig&lt;br /&gt;
&lt;br /&gt;
Then, go ahead and run a:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod +x /etc/acpi/resume.d/20-setserial.sh&lt;br /&gt;
&lt;br /&gt;
You should be all set to resume with stylus support.&lt;br /&gt;
&lt;br /&gt;
=== ACPI Swivel Events ===&lt;br /&gt;
&lt;br /&gt;
When you swivel your tablet's LCD down or up your computer triggers what's called an ACPI event. This is an event similar to pushing the power or sleep buttons -- it's telling the OS about something that's going on with the hardware.&lt;br /&gt;
&lt;br /&gt;
In Linux, ACPI event handling is bundled into a nice neat little package. First, to make sure you can hear the ACPI event when it happens, run the command '&amp;lt;tt&amp;gt;acpi_listen&amp;lt;/tt&amp;gt;'. The command line will hang there until it picks up on an ACPI event that's occuring, and then it will dump it to the screen. After running acpi_listen, while it's hanging there, swivel your screen down, and then back up. You should get a result similar to this:&lt;br /&gt;
&lt;br /&gt;
 $ acpi_listen&lt;br /&gt;
 ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
&lt;br /&gt;
The first HKEY entry is your swivel-down-event identifier and the second is your swivel up. If your values differ from those displayed here, be sure to use your values instead.&lt;br /&gt;
&lt;br /&gt;
Next, what we do is create new ACPI handler entries for the specified events, which we operate on in &amp;lt;tt&amp;gt;/etc/acpi/&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;/etc/acpi/&amp;lt;/tt&amp;gt; folder generally contains shell files to be executed when events occur. Since there's no shell files to handle swivel events yet, we're gonna go ahead and create some. Yeah, that'd be great.&lt;br /&gt;
&lt;br /&gt;
Use your favorite text editor to modify the following files (the file names are the second line with the # symbol).&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #/etc/acpi/x41tsdown.sh&lt;br /&gt;
 echo 'Rotating screen...'&lt;br /&gt;
 if [ &amp;quot;`/usr/bin/xrandr -o right -v | grep -i 'randr' | wc -l`&amp;quot; -ne &amp;quot;1&amp;quot; ]&lt;br /&gt;
 then&lt;br /&gt;
     echo '!! Something went wrong...'&lt;br /&gt;
     export DISPLAY=&amp;quot;:0.0&amp;quot;&lt;br /&gt;
     export XAUTHORITY=/var/lib/gdm/\:0.Xauth&lt;br /&gt;
     /bin/xset -display $DISPLAY dpms&lt;br /&gt;
     echo 'Trying to rotate again...'&lt;br /&gt;
     /usr/bin/xrandr -o right&lt;br /&gt;
 fi&lt;br /&gt;
 echo 'Rotating stylus...'&lt;br /&gt;
 /usr/bin/xsetwacom set stylus rotate 1&lt;br /&gt;
 echo 'Starting keyboard...'&lt;br /&gt;
 /usr/bin/xvkbd&amp;amp;&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 #/etc/acpi/x41tsup.sh&lt;br /&gt;
 echo 'Unrotating screen...'&lt;br /&gt;
 if [ &amp;quot;`/usr/bin/xrandr -o normal -v | grep -i 'randr' | wc -l`&amp;quot; -ne &amp;quot;1&amp;quot; ]&lt;br /&gt;
 then&lt;br /&gt;
     echo '!! Something went wrong...'&lt;br /&gt;
     export DISPLAY=&amp;quot;:0.0&amp;quot;&lt;br /&gt;
     export XAUTHORITY=/var/lib/gdm/\:0.Xauth&lt;br /&gt;
     /bin/xset -display $DISPLAY dpms&lt;br /&gt;
     echo 'Trying to unrotate again...'&lt;br /&gt;
     /usr/bin/xrandr -o normal&lt;br /&gt;
 fi&lt;br /&gt;
 echo 'Rotating stylus...'&lt;br /&gt;
 /usr/bin/xsetwacom set stylus rotate 0&lt;br /&gt;
 echo 'Killing keyboard...'&lt;br /&gt;
 killall xvkbd&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
&lt;br /&gt;
 sudo chown root.root /etc/acpi/x41tsdown.sh&lt;br /&gt;
 sudo chmod 755 /etc/acpi/x41tsdown.sh&lt;br /&gt;
 sudo chown root.root /etc/acpi/x41tsup.sh&lt;br /&gt;
 sudo chmod 755 /etc/acpi/x41tsup.sh&lt;br /&gt;
&lt;br /&gt;
If you'd like to edit these scripts with your favorite text editor (which, I realize, is most likely [http://www.gnu.org/fun/jokes/ed.msg.html ed]), it's fairly obvious that they're located in &amp;lt;tt&amp;gt;/etc/acpi/&amp;lt;/tt&amp;gt; as &amp;lt;tt&amp;gt;x41tsdown.sh&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;x41tsup.sh&amp;lt;/tt&amp;gt;. These commands make the shell scripts that handle the events... once we register the events. Let's do that now.&lt;br /&gt;
&lt;br /&gt;
 sudo cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/acpi/events/x41t-swivel-down&lt;br /&gt;
 # /etc/acpi/events/x41t-swivel-down&lt;br /&gt;
 # called when tablet head swivels down&lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 00005009&lt;br /&gt;
 action=/etc/acpi/x41tsdown.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
 sudo cat &amp;lt;&amp;lt;EOF &amp;gt; /etc/acpi/events/x41t-swivel-up&lt;br /&gt;
 # /etc/acpi/events/x41t-swivel-up&lt;br /&gt;
 # called when tablet head swivels up&lt;br /&gt;
 event=ibm/hotkey HKEY 00000080 0000500a&lt;br /&gt;
 action=/etc/acpi/x41tsup.sh&lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Now, awaken your inner ACPI daemon with the following commands:&lt;br /&gt;
&lt;br /&gt;
 sudo /etc/init.d/acpid force-reload &lt;br /&gt;
 sudo /etc/init.d/acpid restart&lt;br /&gt;
&lt;br /&gt;
And swivel down your LCD to make sure it works.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;CAUTION&amp;lt;/strong&amp;gt;: Swiveling actions while in one of your tty sessions will kill gdm!!!&lt;br /&gt;
&lt;br /&gt;
To be continued...&lt;br /&gt;
&lt;br /&gt;
=External Sources=&lt;br /&gt;
*This guide is listed at the [http://tuxmobil.org/ibm.html TuxMobil Linux laptop and notebook installation survey (IBM/Lenovo)] and the [http://tuxmobil.org/tablet_unix.html Linux on Tablet PCs and webpads survey].&lt;/div&gt;</summary>
		<author><name>Kinglz</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Installing_Ubuntu_6.10_on_a_ThinkPad_X41_Tablet&amp;diff=28234</id>
		<title>Talk:Installing Ubuntu 6.10 on a ThinkPad X41 Tablet</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Installing_Ubuntu_6.10_on_a_ThinkPad_X41_Tablet&amp;diff=28234"/>
		<updated>2007-02-15T22:29:43Z</updated>

		<summary type="html">&lt;p&gt;Kinglz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Annoying head parking ==&lt;br /&gt;
&lt;br /&gt;
Does anybody else get an annoying, repetitive disk-head parking noise? I've already had to scrap one bad hard drive, I'm hoping this one isn't defective as well.&lt;br /&gt;
&lt;br /&gt;
- Chris&lt;br /&gt;
&lt;br /&gt;
== Wacom Suspend Fix ==&lt;br /&gt;
&lt;br /&gt;
Awesome call by Trithemius with the acpi/resume.d wacom fix... I just fixed the command's little typo and added the chmod.&lt;br /&gt;
&lt;br /&gt;
- Chris&lt;br /&gt;
&lt;br /&gt;
== Suspend Fix Change in xorg ==&lt;br /&gt;
The info for getting the pen to work was great.  I have a 1869CSU model too but for some reason when I used &amp;quot;/dev/wacom&amp;quot; the stylus would never work after suspending it (even with the fix). I found the solution was to change all the &amp;quot;/dev/wacom&amp;quot;'s in my xorg to &amp;quot;/dev/ttyS0&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== NetBoot Installation Move ==&lt;br /&gt;
&lt;br /&gt;
I moved the NetBoot portion of the documentation, as it's part of isntallation instructions. The pre-installation notes were intended for README-like things, not so much actual procedure.&lt;br /&gt;
&lt;br /&gt;
== Screen Rotation  ==&lt;br /&gt;
&lt;br /&gt;
I followed your guide to create the screen rotation scripts/events, and after acpi force-reload and restart it works just fine. But when I reboot the machine, I have to reload and restart acpi again, otherwise it won't work.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
--[[User:Aerials|aerials]] 21:51, 27 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
=== Re: Screen Rotation ===&lt;br /&gt;
&lt;br /&gt;
Yeah, I've been having this problem as well, and I'm working on a (quick and easy) solution. The problem is a result of acpid starting in rc before there's a display configured... If you look in /var/log/acpid you'll see a whole bunch of &amp;quot;cannot find display&amp;quot;. That's why after you get a display running and restart acpid, everything works.&lt;br /&gt;
&lt;br /&gt;
- Chris&lt;br /&gt;
&lt;br /&gt;
== rotate script ==&lt;br /&gt;
&lt;br /&gt;
for me in order to get it working i have to modify &amp;lt;br&amp;gt;&lt;br /&gt;
x41tsdown.sh&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
XUSER=`who | grep ' :0' | cut -d ' ' -f 1`&lt;br /&gt;
 if test -n &amp;quot;$XUSER&amp;quot;; then&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xrandr -o right&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xsetwacom set &amp;quot;stylus&amp;quot; Rotate CW&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xsetwacom set &amp;quot;cursor&amp;quot; Rotate CW&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xsetwacom set &amp;quot;eraser&amp;quot; Rotate CW&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xvkbd&amp;amp;&amp;quot;&lt;br /&gt;
    sleep 2&lt;br /&gt;
 fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
x41tsup.sh&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
su - $XUSER -c &amp;quot;DISPLAY=:0 xrandr -omright&amp;quot;&lt;br /&gt;
XUSER=`who | grep ' :0' | cut -d ' ' -f 1`&lt;br /&gt;
 if test -n &amp;quot;$XUSER&amp;quot;; then&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xrandr -o normal&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xsetwacom set &amp;quot;stylus&amp;quot; Rotate NONE&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xsetwacom set &amp;quot;cursor&amp;quot; Rotate NONE&amp;quot;&lt;br /&gt;
    su - $XUSER -c &amp;quot;DISPLAY=:0 xsetwacom set &amp;quot;eraser&amp;quot; Rotate NONE&amp;quot;&lt;br /&gt;
    sleep 2&lt;br /&gt;
 fi&lt;br /&gt;
killall xvkbd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[User:Waldwolf|Waldwolf]] 00:41, 4 October 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Rotate Button ==&lt;br /&gt;
&lt;br /&gt;
Following the suggestion in the [http://www.thinkwiki.org/wiki/Installing_OpenSUSE_10.2_on_a_ThinkPad_X41_Tablet#Rotate_Button openSUSE 10.2 X41 Guide], and combining that script with xbindkeys (using xbindkeys-config), I was able to get on-demand screen and stylus rotation for the tablet access button.  The aforementioned script needs to be changed so that all references to &amp;quot;Mouse[5]&amp;quot; refer to &amp;quot;stylus&amp;quot;.  However, when the screen is inverted (xrandr -o 1, I believe), the stylus axis seems to be totally reversed/reflected (I'm not very spatially inclined) while the other three orientations worked fine: I suspect this can be fixed by modifying the rotation value from CCW to...what?  Are these rotations relative to each other? And what other values could I put there other than CW, NONE, CCW, and HALF?&lt;br /&gt;
&lt;br /&gt;
--[[User:The ev|The ev]] 05:05, 13 February 2007 (CET)&lt;/div&gt;</summary>
		<author><name>Kinglz</name></author>
		
	</entry>
</feed>