<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ostebaronen.dk &#187; X60t</title>
	<atom:link href="http://ostebaronen.dk/tag/x60t/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostebaronen.dk</link>
	<description>write letters and shit, yo!</description>
	<lastBuildDate>Fri, 20 Aug 2010 09:35:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Make your computer boot in 10 seconds or less.</title>
		<link>http://ostebaronen.dk/make-your-computer-boot-in-10-seconds-or-less/</link>
		<comments>http://ostebaronen.dk/make-your-computer-boot-in-10-seconds-or-less/#comments</comments>
		<pubDate>Sun, 03 May 2009 14:46:52 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[finit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[X60t]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=107</guid>
		<description><![CDATA[I just fiddled with my Arch Linux installation to make it boot a bit faster. I discovered this nice little project called finit, which originally was meant for people owning an Eeepc or similar netbook, but it now also works with normal computers. So I installed this, and got rid of slim for logging in [...]]]></description>
			<content:encoded><![CDATA[<p>I just fiddled with my Arch Linux installation to make it boot a bit faster. I discovered this nice little project called finit, which originally was meant for people owning an Eeepc or similar netbook, but it now also works with normal computers.</p>
<p>So I installed this, and got rid of slim for logging in and just make it log in automatically for me, which is pretty nice.</p>
<p>The only thing you really need to do is to specify what init you want in your grub configuration, which in this case is finit.</p>
<p>Take a look at this boot chart:</p>
<p><a href="http://ostebaronen.dk/images/bootchart.png"><img class="alignnone" title="Finit bootchart." src="http://ostebaronen.dk/images/bootchart.png" alt="" width="589" height="1084" /></a></p>
<p>Visit <a title="Boot archlinux in 5-6 seconds" href="http://bbs.archlinux.org/viewtopic.php?id=69086&amp;p=1" target="_blank">the thread on archlinux&#8217;s forum</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/make-your-computer-boot-in-10-seconds-or-less/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X60 Tablet and the new Xorg 1.6</title>
		<link>http://ostebaronen.dk/x60-tablet-and-the-new-xorg-16/</link>
		<comments>http://ostebaronen.dk/x60-tablet-and-the-new-xorg-16/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 13:03:18 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[X60t]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=102</guid>
		<description><![CDATA[Since last I wrote about the X60 Tablet and how to get it to work with Gentoo Linux a lot of things have happened. Some new versions of Xorg has come out. v86d for the framebuffering and uvesafb has been fixed so it is easier to install and get to work. I have switched to [...]]]></description>
			<content:encoded><![CDATA[<p>Since last I wrote about the X60 Tablet and how to get it to work with Gentoo Linux a lot of things have happened. Some new versions of Xorg has come out. v86d for the framebuffering and uvesafb has been fixed so it is easier to install and get to work. I have switched to Arch Linux and so on.</p>
<p>I have discovered, with the new Xorg 1.6 and the newest Intel drivers for the graphics card the 3D performance have been upped slightly. But compared to the old i810 drivers, it is still not as good. Though a lot of new features as KVM and such have been implemented.</p>
<p>From my experience the Intel drivers are still a bit buggy. When I have them enabled the newest version does not allow me to rotate my screen as I could do easily before, now it just turns my screen off and I cannot go back and have to restart the computer. Pretty annoying.</p>
<p>The Digitizer works fine with the newest Xorg. You just have to use the development package instead of the stable, since Xorg went over to HAL and moving away from the static xorg.conf, though you still have to load the wacom module in your xorg.conf, and you can still use the Device sections as always. This can probably be done with a fdi file too, I have not investigated that yet though.</p>
<p>I am going to test out Xorg 1.6.1 soon, since it just came out and see if it helps out with the rotation issue.</p>
<p>EDIT:</p>
<p>It seems that everything works fine in Xorg 1.6.1, rotation of the screen, linuxwacom and so on, AWESOME!</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/x60-tablet-and-the-new-xorg-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back light keys on IBM/Lenovo Thinkpad X60t</title>
		<link>http://ostebaronen.dk/back-light-keys-on-ibmlenovo-thinkpad-x60t/</link>
		<comments>http://ostebaronen.dk/back-light-keys-on-ibmlenovo-thinkpad-x60t/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 13:18:58 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[X60t]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=41</guid>
		<description><![CDATA[I just got back light keys to work on my Thinkpad X60t. This is actually pretty easy. If I just had read the documentation for thinkpad_acpi before I would have known. Anyways lets get to it. First we need to modprobe thinkpad_acpi with some arguments, otherwise the back light Fn-key combo will not show up [...]]]></description>
			<content:encoded><![CDATA[<p>I just got back light keys to work on my Thinkpad X60t. This is actually pretty easy. If I just had read the documentation for thinkpad_acpi before I would have known.</p>
<p>Anyways lets get to it.</p>
<p>First we need to modprobe thinkpad_acpi with some arguments, otherwise the back light Fn-key combo will not show up as acpi events, and then we will not be able to control the back light.</p>
<pre><code>
modprobe thinkpad_acpi brightness_enable=1 hotkey=enable,0xffffff
</code></pre>
<p>You probably want to do that on every boot, in gentoo you do that by adding the following to <strong>/etc/conf.d/modules</strong>:</p>
<pre><code>
modules_2_6="${modules_2_6} thinkpad_acpi"
module_thinkpad_acpi_args_2_6="brightness_enable=1 hotkey=enable,0xffffff"
</code></pre>
<p>When that is done we can start grabbing some events with acpi_listen, mine looks like this:</p>
<pre><code>
tomasz@arcadia ~ $ acpi_listen
ibm/hotkey HKEY 00000080 00001011
ibm/hotkey HKEY 00000080 00001010
</code></pre>
<p>First one is for down second for up.</p>
<p>Now we know this we can make some files for acpid to react on when we push the Fn-key combo for either back light up or down.</p>
<p>/etc/acpi/events/backlight-up:</p>
<pre><code>
# called when brightness up key combo is pressed
event=ibm/hotkey HKEY 00000080 00001010
action=/etc/acpi/actions/backlight-up
</code></pre>
<p>/etc/acpi/events/backlight-down:</p>
<pre><code>
# called when brightness down key combo is pressed
event=ibm/hotkey HKEY 00000080 00001011
action=/etc/acpi/actions/backlight-down
</code></pre>
<p>Now we need some actions. I made a couple of simple bash scripts that looks at the current state of the back light level and subtracts or adds 1 to the level. You can control the level either in <strong>/sys/class/backlight/thinkpad_screen/brightness</strong> or in <strong>/proc/acpi/ibm/brightness</strong> the latter is as far as I know deprecated, so I am not going to use that.</p>
<p>So here are the scripts:</p>
<p>/etc/acpi/actions/backlight-down:</p>
<pre><code>
#! /bin/bash
# A little simple script to control backlight on a Thinkpad X60 Tablet

# Check current state
typeset -i state=`cat /sys/class/backlight/thinkpad_screen/brightness`
# Subtract one from the current state and echo it to the file
down=$((state-=1))
echo "$down" &gt; /sys/class/backlight/thinkpad_screen/brightness
</code></pre>
<p>/etc/acpi/actions/backlight-up:</p>
<pre><code>
#! /bin/bash
# A little script to control backlight on a Thinkpad X60 Tablet

# Check current state
typeset -i state=`cat /sys/class/backlight/thinkpad_screen/brightness`
# Add one to the current state and echo it to the file
state+=1
echo "$state" &gt; /sys/class/backlight/thinkpad_screen/brightness
</code></pre>
<p>Reload acpid and see if it works.</p>
<pre><code>
/etc/init.d/acpid restart
</code></pre>
<p>This should be it!</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/back-light-keys-on-ibmlenovo-thinkpad-x60t/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get Framebuffer to work on IBM/Lenovo X60t</title>
		<link>http://ostebaronen.dk/how-to-get-framebuffer-to-work-on-ibmlenovo-x60t/</link>
		<comments>http://ostebaronen.dk/how-to-get-framebuffer-to-work-on-ibmlenovo-x60t/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 18:44:13 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[X60t]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=39</guid>
		<description><![CDATA[I finally got the framebuffer to work on my X60t, though it took a bit effort to get working. What you need is to use uvesafb, which was introduced in kernel 2.6.24. Though to get make it to work properly you need the packages dev-libs/klibc and sys-apps/v86d, and it is these packages that are tricky [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got the framebuffer to work on my X60t, though it took a bit effort to get working.</p>
<p>What you need is to use uvesafb, which was introduced in kernel 2.6.24. Though to get make it to work properly you need the packages <strong>dev-libs/klibc</strong> and <strong>sys-apps/v86d</strong>, and it is these packages that are tricky since they are still a bit buggy.</p>
<p>To install klibc you need the patch from <a href='http://bugs.gentoo.org/show_bug.cgi?id=212531' >bug 212531</a> that uses the C implementation for memmove.c instead of the new assembly implementation. If you can not find it get it here: <a href='http://ostebaronen.dk/wp-content/uploads/2008/07/klibc-1.5.11-klibcmemmove.patch' >klibc-1.5.11-klibcmemmove.patch</a><br />
Add it to the klibc-1.5.11 ebuild, by adding the following line in the <strong>src_unpack()</strong> section:</p>
<pre><code>epatch "${FILESDIR}"/${PN}-1.5.11-klibcmemmove.patch || die "Failed to patch memmove"</code></pre>
<p>Now compile it.</p>
<p>After it is done, compile v86d with -O0 cflag, otherwise it will not work! I compiled it the following way:</p>
<pre><code>CFLAGS="-march=prescott -mtune=generic -O0 -pipe -fomit-frame-pointer" emerge v86d</code></pre>
<p>We are almost done. Now to the kernel.</p>
<pre><code>
        General Setup  --->
                [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support
                (/usr/share/v86d/initramfs) Initramfs source file(s)

        Device Drivers  --->
                <*> Connector - unified userspace <-> kernelspace linker  --->

                Graphics support  --->
                        <*> Support for frame buffer devices  --->
                                <*>   Userspace VESA VGA graphics support</code></pre>
<p>Those settings are:<br />
CONFIG_CONNECTOR=y<br />
CONFIG_FB_UVESA=y<br />
CONFIG_BLK_DEV_INITRD=y<br />
CONFIG_INITRAMFS_SOURCE=&#8221;/usr/share/v86d/initramfs&#8221;</p>
<p>Compile the kernel and add following line to grub.conf at the end of the kernel line:</p>
<pre><code>video=uvesafb:1400x1050-32,mtrr:3,ywrap</code></pre>
<p>Reboot and now you should have a nice framebuffer.</p>
<p>EDIT: I have also added it to <a href="http://gentoo-wiki.com/Lenovo_Thinkpad_X60t#Framebuffer">Gentoo-wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/how-to-get-framebuffer-to-work-on-ibmlenovo-x60t/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IBM/Lenovo Thinkpad X60t Gentoo installation guide now on gentoo-wiki</title>
		<link>http://ostebaronen.dk/ibmlenovo-thinkpad-x60t-gentoo-installation-guide-now-on-gentoo-wiki/</link>
		<comments>http://ostebaronen.dk/ibmlenovo-thinkpad-x60t-gentoo-installation-guide-now-on-gentoo-wiki/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 20:49:12 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Driver]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[X60t]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=37</guid>
		<description><![CDATA[Go visit: http://gentoo-wiki.com/HARDWARE_Lenovo_Thinkpad_X60t for my installation guide on how to get the hardware and drivers work in Gentoo Linux work.]]></description>
			<content:encoded><![CDATA[<p>Go visit: <a title="Installation guide" href="http://gentoo-wiki.com/HARDWARE_Lenovo_Thinkpad_X60t" target="_blank">http://gentoo-wiki.com/HARDWARE_Lenovo_Thinkpad_X60t</a> for my installation guide on how to get the hardware and drivers work in Gentoo Linux work.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/ibmlenovo-thinkpad-x60t-gentoo-installation-guide-now-on-gentoo-wiki/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting tablet and rotation to work on Thinkpad X60t</title>
		<link>http://ostebaronen.dk/getting-tablet-and-rotation-to-work-on-thinkpad-x60t/</link>
		<comments>http://ostebaronen.dk/getting-tablet-and-rotation-to-work-on-thinkpad-x60t/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 01:25:47 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Driver]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[X60t]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=32</guid>
		<description><![CDATA[Getting pen and rotation to work on X60t. NOTE: I used Gentoo Linux with kernel 2.6.25 with tuxonice patch and linuxwacom-0.8.0_p20. First make sure you have the wacom drivers that come with the kernel compiled into the kernel or compiled as a module. Though I&#8217;m not sure if it is nessesary or not. Deveice Drivers [...]]]></description>
			<content:encoded><![CDATA[<p>Getting pen and rotation to work on X60t.</p>
<p>NOTE: I used Gentoo Linux with kernel 2.6.25 with tuxonice patch and linuxwacom-0.8.0_p20.</p>
<p>First make sure you have the wacom drivers that come with the kernel compiled into the kernel or compiled as a module.<br />
Though I&#8217;m not sure if it is nessesary or not.</p>
<pre><code>
	Deveice Drivers --->
		Input Device Support --->
			Tablets --->
				&lt;M&gt;   Wacom Intuos/Graphire tablet support (USB)
</code></pre>
<p>In gentoo you have to unmask the newest version of the linuxwacom driver. To do this do the following unless you are running<br />
an ~arch:</p>
<pre><code>
	echo "x11-drivers/linuxwacom ~*" >> /etc/portage/package.keywords
</code></pre>
<p>Now install the linuxwacom package:</p>
<pre><code>
	emerge linuxwacom
</code></pre>
<p>When it is done installing we can add the nessesary sections in the Xorg.conf to make it respond to the input from the tablet.</p>
<p>Make your Section &#8220;ServerLayout&#8221; look similar to this (yours might look a little bit different, the important part is the<br />
Stylus, Cursor and Eraser):</p>
<pre><code>
	Section "ServerLayout"
		Identifier     "X.org Configured"
   	Screen      0  "Screen0" 0 0
		InputDevice    "Mouse0" "CorePointer"
		InputDevice    "Mouse1" "SendCoreEvents"
		InputDevice    "Keyboard0" "CoreKeyboard"
		InputDevice    "Cursor" "SendCoreEvents"
		InputDevice    "Stylus" "SendCoreEvents"
		InputDevice    "Eraser" "SendCoreEvents"
	EndSection
</code></pre>
<p>We also need to add some device sections:</p>
<pre><code>
	Section "InputDevice"
		Identifier  "Cursor"
		Driver      "wacom"
		Option      "Device" "/dev/ttyS0"
		Option      "Type" "cursor"
		Option      "ForceDevice" "ISDV4"
		Option      "Mode" "Absolute"
		Option      "BottomY" "18432"
		Option      "BottomX" "24576"
	EndSection

	Section "InputDevice"
		Identifier  "Stylus"
		Driver      "wacom"
		Option      "Device" "/dev/ttyS0"
		Option      "Type" "stylus"
		Option      "ForceDevice" "ISDV4"
		Option      "TPCButton" "off"
		Option      "BottomY" "18432"
		Option      "BottomX" "24576"
		Option      "Mode" "Absolute"
	EndSection

	Section "InputDevice"
		Identifier  "Eraser"
		Driver      "wacom"
		Option      "Device" "/dev/ttyS0"
		Option      "Type" "eraser"
		Option      "ForceDevice" "ISDV4"
		Option      "BottomY" "18432"
		Option      "BottomX" "24576"
	EndSection
</code></pre>
<p>The Optiopn &#8220;ForceDevice&#8221; &#8220;ISDV4&#8243; is nessesary when using serial tablets.</p>
<p>Before we can restart Xorg, we need to tell the system where the tablet device is, you have to do this on every boot:</p>
<pre><code>
	setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig
</code></pre>
<p>Add this line to /etc/conf.d/local.start (or at least that is how you do in gentoo, this might be different on other<br />
distro&#8217;s with different kind of init systems).</p>
<p>After a restart of Xorg the tablet should now work. Try it out. I use Xournal to make notes.</p>
<p>Now we got the tablet to work we can play a bit with rotating the screen when you swivel down the screen and when you<br />
swivel it up. Also when you push the rotate button on the buttons beneath the screen.</p>
<p>Make sure you have the newest thinkpad package and acpid installed:</p>
<pre><code>
	echo "app-laptop/thinkpad ~*" >> /etc/portage/package.keywords
	echo "sys-power/acpid ~*" >> /etc/portage/package.keywords
</code></pre>
<p>Install both packages:</p>
<pre><code>
	emerge thinkpad acpid
</code></pre>
<p>Modprobe the thinkpad module and start the acpid daemon:</p>
<pre><code>
	modprobe thinkpad
	/etc/init.d/acpid start
</code></pre>
<p>Also make the daemon start and load the module on every boot:</p>
<pre><code>
	rc-update add acpid default
	echo 'modules_2_6="${modules_2_6} thinkpad"' >> /etc/conf.d/modules
	echo 'module_thinkpad_args_2_6=""' >> /etc/conf.d/modules
</code></pre>
<p>When you swivel down the monitor and when you swivel it up it generates an acpi event. This event looks like this:</p>
<p>When swivling down:</p>
<pre><code>
	Jun  9 02:22:37 arcadia acpid: received event "ibm/hotkey HKEY 00000080 00005009"
</code></pre>
<p>When swivling up:</p>
<pre><code>
	Jun  9 02:22:45 arcadia acpid: received event "ibm/hotkey HKEY 00000080 0000500a"
</code></pre>
<p>You can find out what events your tablet makes either by tailing /var/log/messages or use acpi_listen.</p>
<p>When we know what events there are made, we can make acpid execute some scripts for us.</p>
<p>Make a file in /etc/acpi/events called x60t-swivel-down and one that is called x60t-swivel-up.</p>
<p>x60t-swivel-down should contain the following:</p>
<pre><code>
	# called when tablet screen swivels down (into tablet mode)
	event=ibm/hotkey HKEY 00000080 00005009
	action=/etc/acpi/actions/x60t-swivel-down
</code></pre>
<p>x60t-swivel-up should contain:</p>
<pre><code>
	# called when tablet screen swivels up (into laptop mode)
	event=ibm/hotkey HKEY 00000080 0000500a
	action=/etc/acpi/actions/x60t-swivel-up
</code></pre>
<p>As you can see in both files, I took the received events and and assigned some actions for them.</p>
<p>Make the action scripts, these are placed in /etc/acpi/actions:</p>
<p>x60t-swivel-up:</p>
<pre><code>
	#!/bin/bash
	/usr/bin/xrandr -o normal
	xsetwacom set "Stylus" Rotate none
	xsetwacom set "Cursor" Rotate none
	xsetwacom set "Eraser" Rotate none
</code></pre>
<p>x60t-swivel-down:</p>
<pre><code>
	#!/bin/bash
	/usr/bin/xrandr -o inverted
	xsetwacom set "Stylus" Rotate half
	xsetwacom set "Cursor" Rotate half
	xsetwacom set "Eraser" Rotate half
</code></pre>
<p>The -o option for xrandr indicates the rotation of the screen. You can use normal, left, right and inverted here.<br />
You have to tell Xorg, which orientation the Stylus, Cursor and Eraser have when rotating.</p>
<p>Save the scripts. Restart acpid and test it:</p>
<pre><code>
	/etc/init.d/acpid restart
</code></pre>
<p>Now try swivel the screen down, you should se the screen rotate. Swivel it up and it returns to normal.<br />
You might also want to use the rotate button &#8211; this button does not generate acpi events, though it generates<br />
X events, that you can grab with xev:</p>
<pre><code>
	emerge xev
</code></pre>
<p>Now fire up xev and push the button, the output looks like this (your output might look different):</p>
<pre><code>
	KeyRelease event, serial 30, synthetic NO, window 0x3a00001,
		root 0x59, subw 0x0, time 719677542, (609,349), root:(613,403),
		state 0x0, keycode 203, same_screen YES,
</code></pre>
<p>What we need is the keycode, which in this case is 203. If it does not appear, you might need to run:</p>
<pre><code>
	setkeycodes 6c 153
</code></pre>
<p>That has to be done upon every boot. Add it to your /etc/conf.d/local.start, and try run the xev app again and see if<br />
you can grab the event now.</p>
<p>Now make a file called .Xmodmap in your home directory containing:</p>
<pre><code>
	keycode 203 = F13
</code></pre>
<p>And make a file called .xbindkeysrc containing the following:</p>
<pre><code>
	"/home/username/bin/rotate"
	F13
</code></pre>
<p>As you can see the file points to /home/username/bin/rotate we have to make that file, and this one contains:</p>
<pre><code>
	#!/usr/bin/env bash

	# This is a script that toggles rotation of the screen through xrandr,
	# and also toggles rotation of the stylus, eraser and cursor through xsetwacom

	# Check orientation
	orientation=`xrandr --verbose -q | grep LVDS | awk '{print $5}'`
	# Rotate the screen and stylus, eraser and cursor, according to your preferences.
	if [ "$orientation" = "normal" ]; then
		/usr/bin/xrandr -o right
		xsetwacom set "Stylus" Rotate cw
		xsetwacom set "Cursor" Rotate cw
		xsetwacom set "Eraser" Rotate cw
	elif [ "$orientation" = "inverted" ]; then
		/usr/bin/xrandr -o left
		xsetwacom set "Stylus" Rotate ccw
		xsetwacom set "Cursor" Rotate ccw
		xsetwacom set "Eraser" Rotate ccw
	elif [ "$orientation" = "right" ]; then
		/usr/bin/xrandr -o inverted
		xsetwacom set "Stylus" Rotate half
		xsetwacom set "Cursor" Rotate half
		xsetwacom set "Eraser" Rotate half
	elif [ "$orientation" = "left" ]; then
		/usr/bin/xrandr -o normal
		xsetwacom set "Stylus" Rotate none
		xsetwacom set "Cursor" Rotate none
		xsetwacom set "Eraser" Rotate none
	fi
</code></pre>
<p>Remember to make it executable!</p>
<p>We are almost done. Make your window manager run xmodmap ~/.Xmodmap and xbindkeysrc upon start. I use gnome and made<br />
a little script containing the two commands and configured the gnome session to run the scrip when starting.</p>
<p>Run the following commands and test the button:</p>
<pre><code>
	xmodmap ~/.Xmodmap
	xbindkeys
</code></pre>
<p>We are now done!</p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/getting-tablet-and-rotation-to-work-on-thinkpad-x60t/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Updgrading BIOS on X60t without CD drive.</title>
		<link>http://ostebaronen.dk/updgrading-bios-on-x60t-without-cd-drive/</link>
		<comments>http://ostebaronen.dk/updgrading-bios-on-x60t-without-cd-drive/#comments</comments>
		<pubDate>Wed, 07 May 2008 17:08:44 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[X60t]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=25</guid>
		<description><![CDATA[I recieved my Lenovo Thinkpad X60t yesteday and wanted to update the bios on it, because the one that was installed on it was pretty old. I found out that according to Lenovo you need a CD drive or a 32-bit version of Windows installed, which I don&#8217;t have. Since I run Gentoo on the [...]]]></description>
			<content:encoded><![CDATA[<p>I recieved my Lenovo Thinkpad X60t yesteday and wanted to update the bios on it, because the one that was installed on it was pretty old. I found out that according to Lenovo you need a CD drive or a 32-bit version of Windows installed, which I don&#8217;t have. Since I run Gentoo on the thinkpad. But there is a sollution for this problem. It&#8217;s done pretty easy. All you need is:</p>
<ul>
<li><a title="Thinkwiki.org BIOS updates." href="http://thinkwiki.org/wiki/BIOS_Upgrade_Downloads#X_Series" target="_blank">The BIOS update</a> &#8211; Remember to choose CD image.</li>
<li><a title="Download HP USB Stick formatter" href="http://www.techpowerup.com/downloads/330/mirrors.php|HP" target="_self">HP USB Stick formatter</a></li>
<li>Windows XP or similar &#8211; can be done in wine.</li>
<li>Winzip, winrar, 7-zip or similar.</li>
</ul>
<p>When you have all these things you are ready to go!</p>
<p><strong>Install the HP USB Stick formatter</strong> and place it somewhere you remember. I installed it on the desktop.<br />
Go to the folder where you installed it and <strong>extract the HPUSBF.EXE</strong> file with winrar or whatever you use to a <strong>subfolder in the current directory</strong>. Now that you have extracted the files to a subfolder, <strong>run the HPUSBFW.EXE utility</strong> and <strong>format you USB Stick choosing Create DOS startup disk</strong> and selecting the subfolder you extracted HPUSBF.EXE to. Now we are almost done. Last step is to <strong>extract the bios to the USB Stick using winrar or similar to a subfolder on the USB Stick</strong>.</p>
<p><strong>!NOTICE! </strong>it&#8217;s not a fault that is seems like there are no files on your USB Stick before you extract the bios to it &#8211; they are hidden.</p>
<p>Unmount the USB Stick and boot it. A DOS promt should appear, <strong>cd to the subfolder</strong> where the BIOS were extracted on the USB Stick and write <strong>command.com</strong>. The rest should be pretty easy <img src='http://ostebaronen.dk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<br />
Source: <a title="Alternative method 4." href="http://thinkwiki.org/wiki/BIOS_Upgrade/X_Series#Approach_4:_Alternative_method_to_the_above_.22alternative_method.22" target="_blank">ThinkWiki.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/updgrading-bios-on-x60t-without-cd-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
