<?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>tancom &#187; remote</title>
	<atom:link href="http://tan-com.com/blog/posts/tag/remote/feed" rel="self" type="application/rss+xml" />
	<link>http://tan-com.com/blog</link>
	<description>tech - design - christ</description>
	<lastBuildDate>Sat, 17 Jul 2010 06:12:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Wii Remote as Mouse in Ubuntu 9.04</title>
		<link>http://tan-com.com/blog/posts/technology/wii-remote-as-mouse-in-ubuntu-9-04</link>
		<comments>http://tan-com.com/blog/posts/technology/wii-remote-as-mouse-in-ubuntu-9-04#comments</comments>
		<pubDate>Mon, 13 Jul 2009 17:28:57 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[Nintendo]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[Wiimote]]></category>

		<guid isPermaLink="false">http://tan-com.com/?p=392</guid>
		<description><![CDATA[I&#8217;ve recorded a tutorial on how to set up a Wii Remote as a mouse in Ubuntu Jaunty Jackalope (9.04), and also written a text version below the video if you would prefer to use that. There is also a text version of this tutorial for those who like to copy and paste below this. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recorded a tutorial on how to set up a Wii Remote as a mouse in Ubuntu Jaunty Jackalope (9.04), and also written a text version below the video if you would prefer to use that. There is also a text version of this tutorial for those who like to copy and paste below this.</p>
<div class="wp-caption aligncenter"><object style="margin: 10px auto;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/rb8xt6JJjGo&amp;hl=en&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed style="margin: 10px auto;" type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/rb8xt6JJjGo&amp;hl=en&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p class="wp-caption-text">This tutorial is an updated version of the <a title="Wii Remote article on Ubuntu Geek" href="http://www.ubuntugeek.com/howto-get-wii-remote-working-in-ubuntu-810-intrepid-ibex.html">tutorial by Ubuntu Geek</a></p>
</div>
<p><span id="more-392"></span></p>
<p>To setup the Wii Remote as a cursor, you need three things. A Wii Remote, a computer with Ubuntu Jaunty 9.04 (I believe that this works on some older versions too), and a Bluetooth adapter (built in, usb, etc.).</p>
<p>First off, you need to install a few packages. These are already in the Ubuntu Repositories.</p>
<p><code><br />
sudo apt-get install wminput wmgui lswm<br />
</code></p>
<p>Once that completes, you run the following command:</p>
<p><code><br />
lswm<br />
</code></p>
<p>This commad finds the address of your Wii Remote, remember to press the 1 and 2 buttons on the controler to put it into discovery mode. When it finds the controller, it will give a hexidecimal number like this: XX:XX:XX:XX:XX:XX (the Xs being replaced by numbers).</p>
<p>Now we need to add some text to the end of the &#8220;/etc/modules&#8221; file, so that we can use the Wii Remote as a mouse. Open it up in gedit or the terminal (nano) by running this:</p>
<p><code><br />
sudo gedit /etc/modules<br />
or<br />
sudo nano /etc/modules<br />
</code></p>
<p>Now, on a new line at the end, add &#8220;uinput&#8221; to the file, save and close, then restart your computer.</p>
<p>When the computer is booted up again, just run the following command, replacing &#8220;[XX:XX:XX:XX:XX:XX]&#8221; with the number that was returned by the lswm command.</p>
<p><code><br />
sudo wminput [XX:XX:XX:XX:XX:XX]<br />
</code></p>
<p>Make sure to put the Wii Remote in discovery mode (1 &#038; 2).</p>
<p>When Wii Remote is connected, the terminal will say &#8220;Ready.&#8221;. This will allow you to use the accelerometor in the Wii Remote to control the mouse by tilting the remote.</p>
<p>Unfortunately that is rather hard, so to get it to work like the Wii Remote does on the Wii, you will need to do a few extra steps.</p>
<p>Before anything, you need a constant bright light. Because of how the Wii&#8217;s remotes work, you can also use an infrared LED. I made one by modifying a normal TV remote using a couple of wires and a light switch.To see if the infrared light was working, I used a camera since you can&#8217;t see the infrared with your eyes.</p>
<p>Once you set that up, all we have to do is copy and edit a config file by running these commands.</p>
<p><code><br />
cd /etc/cwiid/wminput<br />
sudo mv default default.bak<br />
sudo cp ir_ptr default<br />
</code></p>
<p>Almost done! Now we need to edit the config file using gedit or nano again.</p>
<p><code><br />
sudo gedit default<br />
or<br />
sudo nano default<br />
</code></p>
<p>In that file, you will need to remove the tiles (~) from &#8220;~ABS_X&#8221; and &#8220;~ABS_Y&#8221;. When that&#8217;s done, (save and) close out of it and run this to get the Wii Remote. Remember to press 1 &#038; 2.</p>
<p><code><br />
sudo wminput [XX:XX:XX:XX:XX:XX]<br />
</code></p>
<p>Once it is connected (says &#8220;Ready.&#8221;) then you can use the Wii Remote as your mouse. A demonstration by Jake is avialable below.</p>
<div class="wp-caption aligncenter"><object style="margin: 10px auto;" width="425" height="344"><param name="movie" value="http://www.youtube.com/v/YXJ9dmxsc6w&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/YXJ9dmxsc6w&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
<p class="wp-caption-text">An example provided by Jake.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tan-com.com/blog/posts/technology/wii-remote-as-mouse-in-ubuntu-9-04/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
