<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Acrid</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Acrid"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Acrid"/>
	<updated>2026-07-21T22:49:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Nintendo_WiiMote&amp;diff=22548</id>
		<title>Nintendo WiiMote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Nintendo_WiiMote&amp;diff=22548"/>
		<updated>2010-03-01T23:21:00Z</updated>

		<summary type="html">&lt;p&gt;Acrid: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category: Remote Controls]]&lt;br /&gt;
[[Category: Input]]&lt;br /&gt;
[[Category: Infrared]]&lt;br /&gt;
[[Category: Tutorials]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Wiimote.jpg|right|thumb|The Nintendo Wiimote]]&lt;br /&gt;
&lt;br /&gt;
This device is not out of the box supported by LinuxMCE, but it is known to work [https://help.ubuntu.com/community/CWiiD] [http://forum.linuxmce.com/index.php?topic=1246.0] [http://forum.linuxmce.org/index.php?topic=2411.msg11435].&lt;br /&gt;
&lt;br /&gt;
== Wiimote setup ==&lt;br /&gt;
&lt;br /&gt;
I will try to explain what i have done to make the wiimote work with linuxmce.&lt;br /&gt;
&lt;br /&gt;
The wiimote is a cheap gyration device which could work for linuxmce instead of the chief remote from fiire which i find too expensive!!&lt;br /&gt;
&lt;br /&gt;
= Setup =&lt;br /&gt;
&lt;br /&gt;
Login ([[Logging_In]]) as root to the media director which has a bluetooth stick with ssh.&lt;br /&gt;
Install the cwiid driver as follows&lt;br /&gt;
 apt-get install libcwiid0&lt;br /&gt;
 apt-get install wminput&lt;br /&gt;
&lt;br /&gt;
Make sure the uinput kernel module is loaded at boot-time:&lt;br /&gt;
 echo &amp;quot;uinput&amp;quot; &amp;gt;&amp;gt;/etc/modules&lt;br /&gt;
Load it manually in the mean time:&lt;br /&gt;
 modprobe uinput&lt;br /&gt;
&lt;br /&gt;
create the daemon&lt;br /&gt;
 cat &amp;gt;/usr/sbin/wminputd &amp;lt;&amp;lt;&amp;quot;EOF&amp;quot;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #read the config file&lt;br /&gt;
 . /etc/wminputd.conf&lt;br /&gt;
 export DISPLAY=:0&lt;br /&gt;
 &lt;br /&gt;
 while true&lt;br /&gt;
 do&lt;br /&gt;
         #check if the Orbiter/OrbiterGL is already running!&lt;br /&gt;
         if [ &amp;quot;$(pidof OrbiterGL)$(pidof Orbiter)&amp;quot; ]&lt;br /&gt;
         then&lt;br /&gt;
 &lt;br /&gt;
                 #check if the wiimote is already connected&lt;br /&gt;
                 if [ -z &amp;quot;$(hcitool con|grep $WIIMOTE_BDADDR)&amp;quot; ]&lt;br /&gt;
                 then&lt;br /&gt;
                         PID=$(pidof wminput)&lt;br /&gt;
                         if [ &amp;quot;$PID&amp;quot; ]&lt;br /&gt;
                         then&lt;br /&gt;
                                 kill -9 $PID&lt;br /&gt;
                         fi&lt;br /&gt;
                         #check if WiiMote is in range (prevents spawning devices every 10 secs)&lt;br /&gt;
                         if [ &amp;quot;$(hcitool scan|grep $WIIMOTE_BDADDR)&amp;quot; ]&lt;br /&gt;
                         then&lt;br /&gt;
                                 #mouse acceleration, adjust to your liking&lt;br /&gt;
                                 #see also: &amp;quot;man xset&amp;quot; and/or &amp;quot;xset -h&amp;quot;&lt;br /&gt;
 #                               xset m 1/2 3&lt;br /&gt;
                                 wminput -c ir_ptr $WIIMOTE_BDADDR &amp;amp;&lt;br /&gt;
                         fi&lt;br /&gt;
                 fi&lt;br /&gt;
 &lt;br /&gt;
        fi&lt;br /&gt;
 &lt;br /&gt;
        sleep 5&lt;br /&gt;
 &lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Make it executable&lt;br /&gt;
 chmod 755 /usr/sbin/wminputd&lt;br /&gt;
&lt;br /&gt;
*Create the config file ([http://en.wikipedia.org/wiki/Vi vi commands])&lt;br /&gt;
 vi /etc/wminputd.conf&lt;br /&gt;
&lt;br /&gt;
 #this is the config file for the wminputd&lt;br /&gt;
 #enter the wiimote mac address, you can find it with&lt;br /&gt;
 #hcitool scan  and then press the red button&lt;br /&gt;
 #besides the battery&#039;s off the wiimote&lt;br /&gt;
 #Then place the show&#039;n mac address as follows&lt;br /&gt;
 WIIMOTE_BDADDR=&amp;quot;00:AA:00:BB:AA:FF&amp;quot;&lt;br /&gt;
&lt;br /&gt;
you can find your address with hcitool scan&lt;br /&gt;
&lt;br /&gt;
*Edit the file /etc/cwiid/wminput/buttons&lt;br /&gt;
&lt;br /&gt;
 vi /etc/cwiid/wminput/buttons&lt;br /&gt;
And make it suitable to your needs&lt;br /&gt;
below is mine&lt;br /&gt;
 #buttons&lt;br /&gt;
 &lt;br /&gt;
 Wiimote.A       = BTN_LEFT&lt;br /&gt;
 Wiimote.B       = BTN_RIGHT&lt;br /&gt;
 Wiimote.Up      = KEY_UP&lt;br /&gt;
 Wiimote.Down    = KEY_DOWN&lt;br /&gt;
 Wiimote.Left    = KEY_LEFT&lt;br /&gt;
 Wiimote.Right   = KEY_RIGHT&lt;br /&gt;
 Wiimote.Minus   = KEY_F7&lt;br /&gt;
 Wiimote.Plus    = KEY_F8&lt;br /&gt;
 Wiimote.Home    = KEY_F3&lt;br /&gt;
 Wiimote.1       = KEY_F1&lt;br /&gt;
 Wiimote.2       = KEY_F6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* create the init file&lt;br /&gt;
 vi /etc/init.d/wminputd&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Start/stop the wminputd daemon.&lt;br /&gt;
 #&lt;br /&gt;
 ### BEGIN INIT INFO&lt;br /&gt;
 # Provides:          wminputd&lt;br /&gt;
 # Required-Start:    $syslog $time&lt;br /&gt;
 # Required-Stop:     $syslog $time&lt;br /&gt;
 # Default-Start:     2 3 4 5&lt;br /&gt;
 # Default-Stop:      0 1 6&lt;br /&gt;
 # Short-Description: mousemodule&lt;br /&gt;
 # Description:       wminputd&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 ### END INIT INFO&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/sbin/wminputd || exit 0&lt;br /&gt;
 . /lib/lsb/init-functions&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
 start)  log_daemon_msg &amp;quot;Starting wii-remote mousemodule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 stop)   log_daemon_msg &amp;quot;Stopping wii-mote mousemodule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/wminputd.pid --name wminputd&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 restart) log_daemon_msg &amp;quot;Restarting wii-mote mousemdule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/wminputd.pid --name wminputd&lt;br /&gt;
         start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 *)      log_action_msg &amp;quot;Usage: /etc/init.d/wminputd {start|stop|restart}&amp;quot;&lt;br /&gt;
         exit 2&lt;br /&gt;
         ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
Make it executable&lt;br /&gt;
 chmod 755 /etc/init.d/wminputd&lt;br /&gt;
&lt;br /&gt;
run the script and push the red button beside the battery and your wiimote is ready to go&lt;br /&gt;
&lt;br /&gt;
enable the script so that it will start at boot time&lt;br /&gt;
 update-rc.d wminputd defaults&lt;br /&gt;
now start the script and see if it works&lt;br /&gt;
 /etc/init.d/wminputd start&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
*Q: When i reload the router then the wiimote will be slow&lt;br /&gt;
*A: Just push the red button besides the wiimote so it will connect again&lt;br /&gt;
&lt;br /&gt;
*Q: Using a sensor bar (ir_ptr), and the cursor is limited to the bottom left corner of the screen&lt;br /&gt;
*A: Make the following changes to the /etc/X11/xorg.conf file on the Media Director and then restarting the Media Director:&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Wiimote&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;          &amp;quot;Nintendo Wiimote&amp;quot;&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
Add this line to the ServerLayout section:&lt;br /&gt;
&lt;br /&gt;
    InputDevice     &amp;quot;Wiimote&amp;quot; &amp;quot;AlwaysCore&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This was taken from the ubuntu forums: https://help.ubuntu.com/community/CWiiD&lt;br /&gt;
*Q: Using a sensor bar (ir_ptr), can&#039;t scroll through lists&lt;br /&gt;
*A: Add the following lines from acc_ptr to ir_ptr:&lt;br /&gt;
    Plugin.acc.X = REL_X&lt;br /&gt;
    Plugin.acc.Y = REL_Y&lt;br /&gt;
&lt;br /&gt;
= Added 3-30-2008 =&lt;br /&gt;
I tried this and it works beautifully!&lt;br /&gt;
&lt;br /&gt;
A couple of other notes...&lt;br /&gt;
&lt;br /&gt;
Its a pain to get to the little red button by the battery. Instead, you can press and hold the &#039;1&#039; and &#039;2&#039; buttons at the same time for the same effect.&lt;br /&gt;
The power button will not start the system, but once the system is started (with either the Red button or the button 1+2 being held down together), holding the power button for a couple of seconds will turn the wiimote off and break the connection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubles Experienced ==&lt;br /&gt;
*I have a Targus bluetooth doggle.  The system recognizes the adapter, but it would not allow the Wiimote to connect.  What I need to do to get it to work is get to a command prompt and execute &#039;&#039;&#039;hciconfig hci0 down; hciconfig hci0 up; hciconfig hci0 piscan&#039;&#039;&#039;.  Then I am able to press the 1 &amp;amp; 2 buttons then it works. An additional change that I need to make was in /usr/sbin/wminputd.  Had the change the line &#039;&#039;wminput -c ir_ptr $WIIMOTE_BDADDR &amp;amp;&#039;&#039; to &#039;&#039;wminput $WIIMOTE_BDADDR &amp;amp;&#039;&#039;.  Otherwise I could not move the cursor, but the buttons works.  Then I also mapped the buttons to how I wanted them.  If I come up with a fix/workaround for executing the hciconfig commands I will update this.  Thanks!&lt;br /&gt;
*On my system, each call to wminput would cause a frame drop which meant that watching a video with no wiimote connected would have dropped frames every ~8sec.  The following wminputd avoids the problem, though it won&#039;t stop with /etc/init.d/wminputd stop.  As I want it to run indefinitely, that point is moot.&lt;br /&gt;
 #!/bin/bash                             &lt;br /&gt;
 #read the config file                   &lt;br /&gt;
 . /etc/wminputd.conf                    &lt;br /&gt;
 export DISPLAY=:0                       &lt;br /&gt;
 while [ -z &amp;quot;$(pidof OrbiterGL)$(pidof Orbiter)&amp;quot; ]&lt;br /&gt;
 do&lt;br /&gt;
         sleep 5&lt;br /&gt;
 done&lt;br /&gt;
 wminput -r -w -c ir_ptr&lt;/div&gt;</summary>
		<author><name>Acrid</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Nintendo_WiiMote&amp;diff=22547</id>
		<title>Nintendo WiiMote</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Nintendo_WiiMote&amp;diff=22547"/>
		<updated>2010-03-01T23:20:36Z</updated>

		<summary type="html">&lt;p&gt;Acrid: tweak in wminputd that suppresses spawning of new devices if WiiMote is not connected&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
[[Category: Remote Controls]]&lt;br /&gt;
[[Category: Input]]&lt;br /&gt;
[[Category: Infrared]]&lt;br /&gt;
[[Category: Tutorials]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Wiimote.jpg|right|thumb|The Nintendo Wiimote]]&lt;br /&gt;
&lt;br /&gt;
This device is not out of the box supported by LinuxMCE, but it is known to work [https://help.ubuntu.com/community/CWiiD] [http://forum.linuxmce.com/index.php?topic=1246.0] [http://forum.linuxmce.org/index.php?topic=2411.msg11435].&lt;br /&gt;
&lt;br /&gt;
== Wiimote setup ==&lt;br /&gt;
&lt;br /&gt;
I will try to explain what i have done to make the wiimote work with linuxmce.&lt;br /&gt;
&lt;br /&gt;
The wiimote is a cheap gyration device which could work for linuxmce instead of the chief remote from fiire which i find too expensive!!&lt;br /&gt;
&lt;br /&gt;
= Setup =&lt;br /&gt;
&lt;br /&gt;
Login ([[Logging_In]]) as root to the media director which has a bluetooth stick with ssh.&lt;br /&gt;
Install the cwiid driver as follows&lt;br /&gt;
 apt-get install libcwiid0&lt;br /&gt;
 apt-get install wminput&lt;br /&gt;
&lt;br /&gt;
Make sure the uinput kernel module is loaded at boot-time:&lt;br /&gt;
 echo &amp;quot;uinput&amp;quot; &amp;gt;&amp;gt;/etc/modules&lt;br /&gt;
Load it manually in the mean time:&lt;br /&gt;
 modprobe uinput&lt;br /&gt;
&lt;br /&gt;
create the daemon&lt;br /&gt;
 cat &amp;gt;/usr/sbin/wminputd &amp;lt;&amp;lt;&amp;quot;EOF&amp;quot;&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #read the config file&lt;br /&gt;
 . /etc/wminputd.conf&lt;br /&gt;
 export DISPLAY=:0&lt;br /&gt;
 &lt;br /&gt;
 while true&lt;br /&gt;
 do&lt;br /&gt;
         #check if the Orbiter/OrbiterGL is already running!&lt;br /&gt;
         if [ &amp;quot;$(pidof OrbiterGL)$(pidof Orbiter)&amp;quot; ]&lt;br /&gt;
         then&lt;br /&gt;
 &lt;br /&gt;
                 #check if the wiimote is already connected&lt;br /&gt;
                 if [ -z &amp;quot;$(hcitool con|grep $WIIMOTE_BDADDR)&amp;quot; ]&lt;br /&gt;
                 then&lt;br /&gt;
                         PID=$(pidof wminput)&lt;br /&gt;
                         if [ &amp;quot;$PID&amp;quot; ]&lt;br /&gt;
                         then&lt;br /&gt;
                                 kill -9 $PID&lt;br /&gt;
                         fi&lt;br /&gt;
&lt;br /&gt;
                         #check if WiiMote is in range (prevents spawning devices every 10 secs)&lt;br /&gt;
                         if [ &amp;quot;$(hcitool scan|grep $WIIMOTE_BDADDR)&amp;quot; ]&lt;br /&gt;
                         then&lt;br /&gt;
                                 #mouse acceleration, adjust to your liking&lt;br /&gt;
                                 #see also: &amp;quot;man xset&amp;quot; and/or &amp;quot;xset -h&amp;quot;&lt;br /&gt;
 #                               xset m 1/2 3&lt;br /&gt;
                                 wminput -c ir_ptr $WIIMOTE_BDADDR &amp;amp;&lt;br /&gt;
                         fi&lt;br /&gt;
                 fi&lt;br /&gt;
 &lt;br /&gt;
        fi&lt;br /&gt;
 &lt;br /&gt;
        sleep 5&lt;br /&gt;
 &lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 EOF&lt;br /&gt;
&lt;br /&gt;
Make it executable&lt;br /&gt;
 chmod 755 /usr/sbin/wminputd&lt;br /&gt;
&lt;br /&gt;
*Create the config file ([http://en.wikipedia.org/wiki/Vi vi commands])&lt;br /&gt;
 vi /etc/wminputd.conf&lt;br /&gt;
&lt;br /&gt;
 #this is the config file for the wminputd&lt;br /&gt;
 #enter the wiimote mac address, you can find it with&lt;br /&gt;
 #hcitool scan  and then press the red button&lt;br /&gt;
 #besides the battery&#039;s off the wiimote&lt;br /&gt;
 #Then place the show&#039;n mac address as follows&lt;br /&gt;
 WIIMOTE_BDADDR=&amp;quot;00:AA:00:BB:AA:FF&amp;quot;&lt;br /&gt;
&lt;br /&gt;
you can find your address with hcitool scan&lt;br /&gt;
&lt;br /&gt;
*Edit the file /etc/cwiid/wminput/buttons&lt;br /&gt;
&lt;br /&gt;
 vi /etc/cwiid/wminput/buttons&lt;br /&gt;
And make it suitable to your needs&lt;br /&gt;
below is mine&lt;br /&gt;
 #buttons&lt;br /&gt;
 &lt;br /&gt;
 Wiimote.A       = BTN_LEFT&lt;br /&gt;
 Wiimote.B       = BTN_RIGHT&lt;br /&gt;
 Wiimote.Up      = KEY_UP&lt;br /&gt;
 Wiimote.Down    = KEY_DOWN&lt;br /&gt;
 Wiimote.Left    = KEY_LEFT&lt;br /&gt;
 Wiimote.Right   = KEY_RIGHT&lt;br /&gt;
 Wiimote.Minus   = KEY_F7&lt;br /&gt;
 Wiimote.Plus    = KEY_F8&lt;br /&gt;
 Wiimote.Home    = KEY_F3&lt;br /&gt;
 Wiimote.1       = KEY_F1&lt;br /&gt;
 Wiimote.2       = KEY_F6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* create the init file&lt;br /&gt;
 vi /etc/init.d/wminputd&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Start/stop the wminputd daemon.&lt;br /&gt;
 #&lt;br /&gt;
 ### BEGIN INIT INFO&lt;br /&gt;
 # Provides:          wminputd&lt;br /&gt;
 # Required-Start:    $syslog $time&lt;br /&gt;
 # Required-Stop:     $syslog $time&lt;br /&gt;
 # Default-Start:     2 3 4 5&lt;br /&gt;
 # Default-Stop:      0 1 6&lt;br /&gt;
 # Short-Description: mousemodule&lt;br /&gt;
 # Description:       wminputd&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 #&lt;br /&gt;
 ### END INIT INFO&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 test -f /usr/sbin/wminputd || exit 0&lt;br /&gt;
 . /lib/lsb/init-functions&lt;br /&gt;
 &lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
 start)  log_daemon_msg &amp;quot;Starting wii-remote mousemodule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 stop)   log_daemon_msg &amp;quot;Stopping wii-mote mousemodule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon --stop --quiet --pidfile /var/run/wminputd.pid --name wminputd&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 restart) log_daemon_msg &amp;quot;Restarting wii-mote mousemdule&amp;quot; &amp;quot;wminputd&amp;quot;&lt;br /&gt;
         start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/wminputd.pid --name wminputd&lt;br /&gt;
         start-stop-daemon -b --start --quiet --pidfile /var/run/wminputd.pid --name wminputd --startas /usr/sbin/wminputd -- $LSBNAMES&lt;br /&gt;
         log_end_msg $?&lt;br /&gt;
         ;;&lt;br /&gt;
 *)      log_action_msg &amp;quot;Usage: /etc/init.d/wminputd {start|stop|restart}&amp;quot;&lt;br /&gt;
         exit 2&lt;br /&gt;
         ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
Make it executable&lt;br /&gt;
 chmod 755 /etc/init.d/wminputd&lt;br /&gt;
&lt;br /&gt;
run the script and push the red button beside the battery and your wiimote is ready to go&lt;br /&gt;
&lt;br /&gt;
enable the script so that it will start at boot time&lt;br /&gt;
 update-rc.d wminputd defaults&lt;br /&gt;
now start the script and see if it works&lt;br /&gt;
 /etc/init.d/wminputd start&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
&lt;br /&gt;
*Q: When i reload the router then the wiimote will be slow&lt;br /&gt;
*A: Just push the red button besides the wiimote so it will connect again&lt;br /&gt;
&lt;br /&gt;
*Q: Using a sensor bar (ir_ptr), and the cursor is limited to the bottom left corner of the screen&lt;br /&gt;
*A: Make the following changes to the /etc/X11/xorg.conf file on the Media Director and then restarting the Media Director:&lt;br /&gt;
&lt;br /&gt;
Add this section:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Wiimote&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Name&amp;quot;          &amp;quot;Nintendo Wiimote&amp;quot;&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
Add this line to the ServerLayout section:&lt;br /&gt;
&lt;br /&gt;
    InputDevice     &amp;quot;Wiimote&amp;quot; &amp;quot;AlwaysCore&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This was taken from the ubuntu forums: https://help.ubuntu.com/community/CWiiD&lt;br /&gt;
*Q: Using a sensor bar (ir_ptr), can&#039;t scroll through lists&lt;br /&gt;
*A: Add the following lines from acc_ptr to ir_ptr:&lt;br /&gt;
    Plugin.acc.X = REL_X&lt;br /&gt;
    Plugin.acc.Y = REL_Y&lt;br /&gt;
&lt;br /&gt;
= Added 3-30-2008 =&lt;br /&gt;
I tried this and it works beautifully!&lt;br /&gt;
&lt;br /&gt;
A couple of other notes...&lt;br /&gt;
&lt;br /&gt;
Its a pain to get to the little red button by the battery. Instead, you can press and hold the &#039;1&#039; and &#039;2&#039; buttons at the same time for the same effect.&lt;br /&gt;
The power button will not start the system, but once the system is started (with either the Red button or the button 1+2 being held down together), holding the power button for a couple of seconds will turn the wiimote off and break the connection.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Troubles Experienced ==&lt;br /&gt;
*I have a Targus bluetooth doggle.  The system recognizes the adapter, but it would not allow the Wiimote to connect.  What I need to do to get it to work is get to a command prompt and execute &#039;&#039;&#039;hciconfig hci0 down; hciconfig hci0 up; hciconfig hci0 piscan&#039;&#039;&#039;.  Then I am able to press the 1 &amp;amp; 2 buttons then it works. An additional change that I need to make was in /usr/sbin/wminputd.  Had the change the line &#039;&#039;wminput -c ir_ptr $WIIMOTE_BDADDR &amp;amp;&#039;&#039; to &#039;&#039;wminput $WIIMOTE_BDADDR &amp;amp;&#039;&#039;.  Otherwise I could not move the cursor, but the buttons works.  Then I also mapped the buttons to how I wanted them.  If I come up with a fix/workaround for executing the hciconfig commands I will update this.  Thanks!&lt;br /&gt;
*On my system, each call to wminput would cause a frame drop which meant that watching a video with no wiimote connected would have dropped frames every ~8sec.  The following wminputd avoids the problem, though it won&#039;t stop with /etc/init.d/wminputd stop.  As I want it to run indefinitely, that point is moot.&lt;br /&gt;
 #!/bin/bash                             &lt;br /&gt;
 #read the config file                   &lt;br /&gt;
 . /etc/wminputd.conf                    &lt;br /&gt;
 export DISPLAY=:0                       &lt;br /&gt;
 while [ -z &amp;quot;$(pidof OrbiterGL)$(pidof Orbiter)&amp;quot; ]&lt;br /&gt;
 do&lt;br /&gt;
         sleep 5&lt;br /&gt;
 done&lt;br /&gt;
 wminput -r -w -c ir_ptr&lt;/div&gt;</summary>
		<author><name>Acrid</name></author>
	</entry>
</feed>