<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: ThinkPad X61 Tablet Automatic Screen Rotation Under Linux</title>
	<atom:link href="http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/</link>
	<description>A geek's view of the world...</description>
	<pubDate>Tue, 07 Oct 2008 06:18:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Dan CaJacob</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-19903</link>
		<dc:creator>Dan CaJacob</dc:creator>
		<pubDate>Fri, 19 Sep 2008 19:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-19903</guid>
		<description>I found the solution:

just turn off compiz.  Use metacity instead.  You could build this into your script even: i.e. when the user presses a button to rotate the screen or the tablet senses the screen flip, it reverts to metacity.</description>
		<content:encoded><![CDATA[<p>I found the solution:</p>
<p>just turn off compiz.  Use metacity instead.  You could build this into your script even: i.e. when the user presses a button to rotate the screen or the tablet senses the screen flip, it reverts to metacity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sőrés Viktor</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-19203</link>
		<dc:creator>Sőrés Viktor</dc:creator>
		<pubDate>Mon, 08 Sep 2008 06:30:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-19203</guid>
		<description>Had the same problem, so I wrote a simpler Python script myself for debugging. This one only rotates on swivel events, no hdaps or arrow key correction is used. I observed this: if I switch to Metacity (shut down Compiz) everything works fine. I guess Compiz has troubles with vertical rotation. (Mouse is on the X Window level, that's why it works)</description>
		<content:encoded><![CDATA[<p>Had the same problem, so I wrote a simpler Python script myself for debugging. This one only rotates on swivel events, no hdaps or arrow key correction is used. I observed this: if I switch to Metacity (shut down Compiz) everything works fine. I guess Compiz has troubles with vertical rotation. (Mouse is on the X Window level, that&#8217;s why it works)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pavan Kandepet</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-18970</link>
		<dc:creator>Pavan Kandepet</dc:creator>
		<pubDate>Sat, 06 Sep 2008 18:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-18970</guid>
		<description>Thanks for the great script. I used to have a few
buttons on my desktop panel to execute some xrandr commands to get this done. You just made my life easier and some friends jealous.
-Pavan</description>
		<content:encoded><![CDATA[<p>Thanks for the great script. I used to have a few<br />
buttons on my desktop panel to execute some xrandr commands to get this done. You just made my life easier and some friends jealous.<br />
-Pavan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raphael Kraus</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-17713</link>
		<dc:creator>Raphael Kraus</dc:creator>
		<pubDate>Tue, 26 Aug 2008 01:46:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-17713</guid>
		<description>Hi Karol,

I have the same problem as Dan. To answer your questions:

1) Yes, the pen can be used without the scripts running.
2) Yes, the modules are loaded.

No, autorotate.py doesn't produce any errors either. :(

I find that I can change the screen orientation just by tilting the laptop irregardless of whether the screen is up (regular laptop) or down (tablet).

All the best,

Raphael</description>
		<content:encoded><![CDATA[<p>Hi Karol,</p>
<p>I have the same problem as Dan. To answer your questions:</p>
<p>1) Yes, the pen can be used without the scripts running.<br />
2) Yes, the modules are loaded.</p>
<p>No, autorotate.py doesn&#8217;t produce any errors either. <img src='http://www.krizka.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I find that I can change the screen orientation just by tilting the laptop irregardless of whether the screen is up (regular laptop) or down (tablet).</p>
<p>All the best,</p>
<p>Raphael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol Krizka</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-17094</link>
		<dc:creator>Karol Krizka</dc:creator>
		<pubDate>Tue, 19 Aug 2008 20:46:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-17094</guid>
		<description>A few questions:
1) Can you use the pen without my rotation script running?
2) Have you loaded the hdaps_ec module? If not, then that would explain why the calibrate and position files are empty.

Finally, the error you experience when you kill the script is just a standard message from python for keyboard interrupts. It just means that you didn't quit the problem cleanly, but killed it. However, that should not make any difference with my rotate script, so don't worry about it. :)</description>
		<content:encoded><![CDATA[<p>A few questions:<br />
1) Can you use the pen without my rotation script running?<br />
2) Have you loaded the hdaps_ec module? If not, then that would explain why the calibrate and position files are empty.</p>
<p>Finally, the error you experience when you kill the script is just a standard message from python for keyboard interrupts. It just means that you didn&#8217;t quit the problem cleanly, but killed it. However, that should not make any difference with my rotate script, so don&#8217;t worry about it. <img src='http://www.krizka.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan CaJacob</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-17045</link>
		<dc:creator>Dan CaJacob</dc:creator>
		<pubDate>Tue, 19 Aug 2008 01:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-17045</guid>
		<description>Hi,

I am having trouble with the script.  It works rotating the screen very well, but I cannot activate anything with my pen.  The cursor moves, but I can't open the "Applications" menu in tablet mode, for example.  I am running Ubuntu 8.04  I applied the fix for the negative calibration values referred to in the comments and in doing so, noticed that both my /sys/devices/platform/hdaps/position and /sys/devices/platform/hdaps/calibrate files are empty!  What would cause this?  I assume that this is what is causing my problem.  BTW, I get no error when I run autorotate.py - but when I kill it with Ctrl-C, I get:

Traceback (most recent call last):
  File "/usr/local/bin/autorotate.py", line 92, in 
    main()
  File "/usr/local/bin/autorotate.py", line 48, in main
    time.sleep(0.1);
KeyboardInterrupt

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am having trouble with the script.  It works rotating the screen very well, but I cannot activate anything with my pen.  The cursor moves, but I can&#8217;t open the &#8220;Applications&#8221; menu in tablet mode, for example.  I am running Ubuntu 8.04  I applied the fix for the negative calibration values referred to in the comments and in doing so, noticed that both my /sys/devices/platform/hdaps/position and /sys/devices/platform/hdaps/calibrate files are empty!  What would cause this?  I assume that this is what is causing my problem.  BTW, I get no error when I run autorotate.py - but when I kill it with Ctrl-C, I get:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;/usr/local/bin/autorotate.py&#8221;, line 92, in<br />
    main()<br />
  File &#8220;/usr/local/bin/autorotate.py&#8221;, line 48, in main<br />
    time.sleep(0.1);<br />
KeyboardInterrupt</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-16293</link>
		<dc:creator>Mathias</dc:creator>
		<pubDate>Sat, 02 Aug 2008 14:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-16293</guid>
		<description>Hi everybody, 

I ported the functionality to a bash script - including the rotation of the arrow keys.

Visit my homepage: http://javafalke.de to download the script.

BUT: the script needs sudo privileges to be able to set the arrow keys correctly.

cu
Mathias</description>
		<content:encoded><![CDATA[<p>Hi everybody, </p>
<p>I ported the functionality to a bash script - including the rotation of the arrow keys.</p>
<p>Visit my homepage: <a href="http://javafalke.de" rel="nofollow">http://javafalke.de</a> to download the script.</p>
<p>BUT: the script needs sudo privileges to be able to set the arrow keys correctly.</p>
<p>cu<br />
Mathias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-15812</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Fri, 25 Jul 2008 21:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-15812</guid>
		<description>Thanks so much for writing this!  It's really slick.

I had to make 2 small changes to get things to work on my X61t with Kubuntu Hardy.  

First, in the /etc/acpi/events/swivel-* files, I had to remove the quotes from the action= lines, ie instead of this

&lt;code&gt;action="echo laptop &#62; /etc/tabletmode"&lt;/code&gt;

I needed this:

&lt;code&gt;action=echo laptop &#62; /etc/tabletmode&lt;/code&gt;

because I was getting "unknown command" errors from the shell.

Second, since I'm using KDE, I added the line

&lt;code&gt;/usr/local/bin/autorotate.py &#38;&lt;/code&gt;

to the file /etc/kde3/kdm/Xstartup, to get the script to run automatically when I login.  I added it right before the line that says "exec".</description>
		<content:encoded><![CDATA[<p>Thanks so much for writing this!  It&#8217;s really slick.</p>
<p>I had to make 2 small changes to get things to work on my X61t with Kubuntu Hardy.  </p>
<p>First, in the /etc/acpi/events/swivel-* files, I had to remove the quotes from the action= lines, ie instead of this</p>
<p><code>action="echo laptop &gt; /etc/tabletmode"</code></p>
<p>I needed this:</p>
<p><code>action=echo laptop &gt; /etc/tabletmode</code></p>
<p>because I was getting &#8220;unknown command&#8221; errors from the shell.</p>
<p>Second, since I&#8217;m using KDE, I added the line</p>
<p><code>/usr/local/bin/autorotate.py &amp;</code></p>
<p>to the file /etc/kde3/kdm/Xstartup, to get the script to run automatically when I login.  I added it right before the line that says &#8220;exec&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karol Krizka</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-11282</link>
		<dc:creator>Karol Krizka</dc:creator>
		<pubDate>Thu, 29 May 2008 14:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-11282</guid>
		<description>The values in tabletmode of my script hold only two values:
 tablet: the screen is tilted down, so enable automatic screen rotation based on position
 laptop: screen is up, do not rotate the screen even if tilted.

I will have time after Saturday to debug the script a little bit, as I've noticed some people have problems with it.

In the meantime, come to SFU Open House on Saturday if you live in the Vancouver area. ;)</description>
		<content:encoded><![CDATA[<p>The values in tabletmode of my script hold only two values:<br />
 tablet: the screen is tilted down, so enable automatic screen rotation based on position<br />
 laptop: screen is up, do not rotate the screen even if tilted.</p>
<p>I will have time after Saturday to debug the script a little bit, as I&#8217;ve noticed some people have problems with it.</p>
<p>In the meantime, come to SFU Open House on Saturday if you live in the Vancouver area. <img src='http://www.krizka.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias</title>
		<link>http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-11281</link>
		<dc:creator>Mathias</dc:creator>
		<pubDate>Thu, 29 May 2008 14:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.krizka.net/2008/02/13/thinkpad-x61-tablet-automatic-screen-rotation-under-linux/#comment-11281</guid>
		<description>right, I tried it and experienced the same effect you described. My model is X61 Tablet - more information needed?</description>
		<content:encoded><![CDATA[<p>right, I tried it and experienced the same effect you described. My model is X61 Tablet - more information needed?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
