<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Michele Campeotto: Tag thinkpad</title>
    <link>http://blog.micampe.it/articles/tag/thinkpad?tag=thinkpad</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>I'm not Winston Wolfe.</description>
    <item>
      <title>Flying on a ThinkPad</title>
      <description>&lt;p&gt;After &lt;a href="http://blog.micampe.it/articles/2006/06/04/here-comes-the-smackpad"&gt;my SmackPad article&lt;/a&gt;, some people asked in the comments if I could port that to Windows. I don&amp;#8217;t have idea where to start, but at least now I know that it is possible to do it (and quite easy, I suspect).&lt;/p&gt;

&lt;p&gt;Thanks to the great work of Tatsuhiko Miyagawa you can literally &lt;a href="http://bulknews.typepad.com/blog/2006/06/control_google_.html"&gt;fly over Google Maps with your ThinkPad&lt;/a&gt;. That&amp;#8217;s amazing and far more amusing than switching workspace.&lt;/p&gt;

&lt;p&gt;It would be nice to port this one to Linux too, but I think the only way would be a Firefox extension&amp;#8230; any takers?&lt;/p&gt;</description>
      <pubDate>Tue, 27 Jun 2006 00:48:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:e5c67de5-98b9-45f6-b236-709df1cfe380</guid>
      <author>micampe</author>
      <link>http://blog.micampe.it/articles/2006/06/27/flying-on-a-thinkpad</link>
      <category>English</category>
      <category>thinkpad</category>
      <category>googlemaps</category>
      <category>hdaps</category>
      <category>windows</category>
      <category>linux</category>
      <category>firefox</category>
      <trackback:ping>http://blog.micampe.it/articles/trackback/245</trackback:ping>
    </item>
    <item>
      <title>Here comes the SmackPad</title>
      <description>&lt;p&gt;You probably have seen &lt;a href="http://www.youtube.com/watch?v=6uvQTTPr9Rw"&gt;the SmackBook video&lt;/a&gt; where &lt;a href="http://blog.medallia.com/2006/05/smacbook_pro.html"&gt;a guy&lt;/a&gt; smacks his laptop to switch workspace. Too bad that only works on Macs right? Not really, my ThinkPad has a device similar to the &lt;a href="http://www.popies.net/ams/"&gt;Apple Motion Sensor&lt;/a&gt; and it runs &lt;a href="http://www.ubuntu.com"&gt;Linux&lt;/a&gt;, so it ought to be flexible and easy to tweak.&lt;/p&gt;

&lt;p&gt;Well, I&amp;#8217;m happy to announce that you can smack your laptop too!&lt;/p&gt;

&lt;p&gt;Requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A ThinkPad with the &lt;a href="http://thinkwiki.org/wiki/Active_Protection_System"&gt;IBM Active Protection System&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;The &lt;a href="http://thinkwiki.org/wiki/HDAPS"&gt;hdaps&lt;/a&gt; kernel module (if &lt;code&gt;sudo modprobe hdaps&lt;/code&gt; fails, you&amp;#8217;re not qualified)&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;wnck&lt;/code&gt; Python module, provided by &lt;code&gt;gnome-python&lt;/code&gt; (if &lt;code&gt;python -c "import wnck"&lt;/code&gt; fails, you&amp;#8217;re not qualified either)&lt;/li&gt;
&lt;li&gt;An &lt;a href="http://www.freedesktop.org/wiki/Standards_2fwm_2dspec"&gt;EWMH&lt;/a&gt; compliant window manager (most modern WMs are)&lt;/li&gt;
&lt;li&gt;The &lt;a href="http://micampe.it/files/smack.py"&gt;&lt;code&gt;smack.py&lt;/code&gt;&lt;/a&gt; script&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run the script from a shell:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ python smack.py
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and smack your ThinkPad at will to change workspace back and forth.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Caveat:&lt;/em&gt; It&amp;#8217;s not really reliable: sometimes it&amp;#8217;ll switch in the wrong direction, especially if you try to rapdly switch more than once, but it&amp;#8217;a toy, I don&amp;#8217;t find it really useful.&lt;/p&gt;

&lt;p&gt;You&amp;#8217;re welcome to improve the detection algorithm. A basic setting is the &lt;code&gt;SENS&lt;/code&gt; variable at the start of the script: the higher the less sensitive the script will be and the harder you&amp;#8217;ll have to smack the laptop. Remember, ThinkPads are though, don&amp;#8217;t risk hurting yourself with too high values.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Francesco provided &lt;a href="http://micampe.it/files/iSmack.py"&gt;iSmack.py&lt;/a&gt; for iBooks and Powerbooks with the &lt;a href="http://www.popies.net/ams/"&gt;AMS&lt;/a&gt; driver.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update 2:&lt;/strong&gt; &lt;a href="http://www.oakcourt.dyndns.org/~andrew/journal/?p=28"&gt;Andrew&lt;/a&gt; hacked a version that works with Compiz.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update 3:&lt;/strong&gt; &lt;a href="http://weblogs.mozillazine.org/gerv/archives/2006/09/stablilised_smackpad.html"&gt;Gervase Markham&lt;/a&gt; has an improved version with stabilization.&lt;/p&gt;</description>
      <pubDate>Sun, 04 Jun 2006 01:54:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:cc9b1f25-59e7-48bb-89d2-dc85048e56b6</guid>
      <author>micampe</author>
      <link>http://blog.micampe.it/articles/2006/06/04/here-comes-the-smackpad</link>
      <category>English</category>
      <category>linux</category>
      <category>thinkpad</category>
      <category>toy</category>
      <category>fun</category>
      <trackback:ping>http://blog.micampe.it/articles/trackback/217</trackback:ping>
    </item>
    <item>
      <title>Sensor applet on a ThinkPad</title>
      <description>&lt;p&gt;It was a boring sunday morning, and &lt;a href="http://monja.it"&gt;friends&lt;/a&gt; kept telling me I should write something in here, so I looked for something to do that I could then post here.&lt;/p&gt;

&lt;p&gt;Here we are. I recently installed a &lt;a href="http://thinkwiki.org/wiki/ACPI_fan_control_script#bash_script_with_fine_control_over_fan_speed"&gt;script&lt;/a&gt; to control the fan of my ThinkPad and I used &lt;a href="http://www.muhri.net/gkrellm/"&gt;gkrellm&lt;/a&gt; to keep an eye on the system&amp;#8217;s temperature to check the laptop wasn&amp;#8217;t melting.&lt;/p&gt;

&lt;p&gt;I didn&amp;#8217;t particularly like having gkrellm&amp;#8217;s window around, so I looked on &lt;a href="http://www.gnomefiles.org/"&gt;Gnome files&lt;/a&gt; for an applet that could do the same. I found &lt;a href="http://sensors-applet.sourceforge.net/"&gt;Sensors Applet&lt;/a&gt;, but it only displayed the value reported by the standard ACPI driver, wich is just the CPU temperature. The ibm_acpi driver reports more values in a different file, so I went and added a ThinkPad module to Sensors Applet.&lt;/p&gt;

&lt;p&gt;If you want to install the patched version, download Sensors Applet &lt;a href="http://sensors-applet.sourceforge.net/index.php?download=sensors-applet-1.5.2.tar.gz&amp;amp;location=sf.net&amp;amp;link_source=external"&gt;1.5.2&lt;/a&gt; and my &lt;a href="http://micampe.it/files/sensors-applet-thinkpad.diff"&gt;patch&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Uncompress the source and apply the patch:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ tar xzf sensors-applet-1.5.2.tar.gz
$ cd sensors-applet-1.5.2
$ patch -p1 &amp;lt; sensors-applet-thinkpad.diff
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Build and compile as usual (you need to install the applet in the same prefix as the Gnome Panel, unless you know what you are doing):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ ./configure --prefix=/usr/
$ make
$ sudo make install
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add the applet to the panel and activate the sensors as you can see here:&lt;/p&gt;

&lt;div style="text-align: center; padding-top: 10px; padding-bottom: 10px;"&gt;&lt;img src="http://micampe.it/screenshots/sensors-applet-thinkpad.png"&gt;&lt;/div&gt;

&lt;p&gt;I sent the patch to Alex, I hope he likes it and commits it to the official sources.&lt;/p&gt;</description>
      <pubDate>Sun, 04 Dec 2005 12:12:00 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:6e36edca-4791-4a55-96dc-96ad40dfb1c0</guid>
      <author>micampe</author>
      <link>http://blog.micampe.it/articles/2005/12/04/sensor-applet-on-a-thinkpad</link>
      <category>English</category>
      <category>thinkpad</category>
      <category>linux</category>
      <category>sensors</category>
      <category>gnome</category>
      <category>patch</category>
      <trackback:ping>http://blog.micampe.it/articles/trackback/197</trackback:ping>
    </item>
  </channel>
</rss>
