Wii remote

(wikify slightly)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
-
There are numerous ways to achieve control of the N900 using a wii remote. Please have a look at this [http://talk.maemo.org/showthread.php?t=19658 thread]
+
There are numerous ways to achieve control of the [[Nokia N900|N900]] using a wii remote. Please have a look at this [http://talk.maemo.org/showthread.php?t=19658 talk.maemo.org thread].
The method described here uses cwiid and wminput. This method is an expansion on the instructions provided [http://talk.maemo.org/showthread.php?t=19658&page=13 here] by the user thp, who re-packaged cwiid.
The method described here uses cwiid and wminput. This method is an expansion on the instructions provided [http://talk.maemo.org/showthread.php?t=19658&page=13 here] by the user thp, who re-packaged cwiid.
-
change to root (by whichever method you chose)
+
<ol>
-
 
+
<li>
-
''root''
+
gain [[root access]]:
-
 
+
<pre>root</pre>
-
install cwiid-utils from extras-devel.
+
</li>
-
 
+
<li>
-
''apt-get install cwiid-utils''
+
install [http://maemo.org/packages/view/cwiid-utils/ cwiid-utils] from [[extras-devel]]:
-
 
+
<pre>apt-get install cwiid-utils</pre>
-
if not already installed install python-cwiid
+
</li>
-
 
+
<li>
-
''apt-get install python-cwiid''
+
if not already installed, install [http://maemo.org/packages/view/python-cwiid/ python-cwiid]:
-
 
+
<pre>apt-get install python-cwiid</pre>
-
Then execute the following two commands
+
</li>
-
 
+
<li>
-
''modprobe uinput''
+
execute the following two commands:
-
 
+
<pre>
-
''chmod a+rw /dev/input/uinput''
+
modprobe uinput
-
 
+
chmod a+rw /dev/input/uinput
-
Then create a config file. The file below is for controlling the inbuilt media player
+
</pre>
-
 
+
</li>
-
<syntaxhighlight lang="batch">
+
<li>
 +
create a config file. The file below is for controlling the built-in media player
 +
<pre>
Wiimote.Left    = KEY_LEFT
Wiimote.Left    = KEY_LEFT
Wiimote.Right  = KEY_RIGHT
Wiimote.Right  = KEY_RIGHT
Line 32: Line 34:
Wiimote.Minus  = KEY_F7
Wiimote.Minus  = KEY_F7
Wiimote.Plus    = KEY_F8
Wiimote.Plus    = KEY_F8
-
</syntaxhighlight>
+
</pre>
 +
The code was saved in <code>/home/user/.cwiid/wminput/mediaplayer</code>. This is one of the places that gets searched by wminput as detailed [http://abstrakraft.org/cwiid/wiki/wminput here]
 +
</li>
 +
<li>
 +
once saved, ensure Bluetooth is on and simply execute:
 +
<pre>wminput -c mediaplayer</pre>
 +
from the command line. Then press the 1 and 2 buttons on thhe wii remote and the command line should say ready after a little while. Once done simply start the media player. Once started simply use the wii remote buttons to control it. You can skip songs (forward and backward), pause/play and change volume.
 +
</li>
 +
</ol>
-
The code was saved in /home/user/.cwiid/wminput/mediaplayer
+
If you want to carry out some coding using python and wii remote look [http://talk.maemo.org/showthread.php?t=60178 here]
-
This is one of the places that gets searched by wminput as detailed [http://abstrakraft.org/cwiid/wiki/wminput here]
+
-
Once saved ensure bluetooth is on and simply execute:
+
Here is also some further useful links:
-
''wminput -c mediaplayer''
+
* http://abstrakraft.org/cwiid/browser/wminput/action_enum.txt
-
from the command line. then press the 1 and 2 buttons on thhe wii remote and the command line should say ready after a little while. Once done simply start the media player. Once started simply use the wii remote buttons to control it. You can skip songs (forward and backward), pause/play and change volume.
+
* http://abstrakraft.org/cwiid/wiki
-
 
+
-
If you want to carry out some coding using python and wii remote look [http://talk.maemo.org/showthread.php?t=60178 here]
+
-
Here is also some further usefull links:
+
[[Category:Power users]]
-
http://abstrakraft.org/cwiid/browser/wminput/action_enum.txt
+
-
http://abstrakraft.org/cwiid/wiki
+

Latest revision as of 11:04, 26 January 2011

There are numerous ways to achieve control of the N900 using a wii remote. Please have a look at this talk.maemo.org thread.

The method described here uses cwiid and wminput. This method is an expansion on the instructions provided here by the user thp, who re-packaged cwiid.

  1. gain root access:
    root
  2. install cwiid-utils from extras-devel:
    apt-get install cwiid-utils
  3. if not already installed, install python-cwiid:
    apt-get install python-cwiid
  4. execute the following two commands:
    modprobe uinput
    chmod a+rw /dev/input/uinput
    
  5. create a config file. The file below is for controlling the built-in media player
    Wiimote.Left    = KEY_LEFT
    Wiimote.Right   = KEY_RIGHT
    
    Wiimote.A       = KEY_SPACE
    Wiimote.B       = KEY_SPACE
    
    Wiimote.Minus   = KEY_F7
    Wiimote.Plus    = KEY_F8
    

    The code was saved in /home/user/.cwiid/wminput/mediaplayer. This is one of the places that gets searched by wminput as detailed here

  6. once saved, ensure Bluetooth is on and simply execute:
    wminput -c mediaplayer

    from the command line. Then press the 1 and 2 buttons on thhe wii remote and the command line should say ready after a little while. Once done simply start the media player. Once started simply use the wii remote buttons to control it. You can skip songs (forward and backward), pause/play and change volume.

If you want to carry out some coding using python and wii remote look here

Here is also some further useful links: