WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I install WMD?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote
View previous topic :: View next topic  
Author Message
Amablue



Joined: 13 Dec 2006
Posts: 95
Location: California

Digg It
PostPosted: Mon Mar 26, 2007 6:20 am    Post subject: How do I install WMD?

I'm having no luck with this at all, and the documentation is horrible.
Back to top
View user's profile Send private message
RadonPL



Joined: 30 Apr 2007
Posts: 4
Location: Gdansk, Polska

Digg It
PostPosted: Mon Apr 30, 2007 7:19 pm    Post subject:

I agree the documentation is out of reach for most of the public, it's done by programmers.

I have just gotten WMD and Wmgui to work and I will be creating a step-by-step article on how I did this, it should be done by the end of the week.

Greetings from Poland!
Back to top
View user's profile Send private message Visit poster's website
RadonPL



Joined: 30 Apr 2007
Posts: 4
Location: Gdansk, Polska

Digg It
PostPosted: Sun May 06, 2007 8:27 pm    Post subject:

Sorry about the delay, I will release it in 2 days time.
Back to top
View user's profile Send private message Visit poster's website
SwedishFrog
Site Admin


Joined: 25 Jan 2007
Posts: 273
Location: New York

Digg It
PostPosted: Sun May 06, 2007 11:01 pm    Post subject:

I'm looking forward to reading this
Back to top
View user's profile Send private message Visit poster's website AIM Address
RadonPL



Joined: 30 Apr 2007
Posts: 4
Location: Gdansk, Polska

Digg It
PostPosted: Thu May 10, 2007 10:32 am    Post subject:

In order to try to prevent spammers, we do not allow our users to post URLs in any form until they have posted at least 2 legitimate posts and have been with us for more than 1 days. We appreciate your understanding in this matter in order to help us eliminate spam from this forum. If you have somehow gotten this message even though you meet both of the criteria, please let us know ASAP.

This should be my 3'rd post, the following one should be the Tutorial.
Back to top
View user's profile Send private message Visit poster's website
RadonPL



Joined: 30 Apr 2007
Posts: 4
Location: Gdansk, Polska

Digg It
PostPosted: Thu May 10, 2007 10:33 am    Post subject:

Greetings from Poland!

This step-by-step tutorial is designed to be as user-friendly as I can make it at the current stage, upon making further changes the final version will be posted on some wikis on the internet in the coming weeks. The outcome will be the ability to use the Wii Remote as a mouse in Linux through WMD. Remember that the Wii Remote needs between 2 and 4 sources of Infrared radiation in order to find its position in front of the TV/monitor, I used 2 lit candles. The distributions I tried are the GNOME Ubuntu Feisty and KDE OpenSuSE 10.2 and 10.3 Alpha 4.

I will be saying „become root“, what this means is that the following steps require SuperUser privilages, use 'sudo' in front of the required steps in Ubuntu, or just press 'su' in OpenSuSE. In SuSE you will remain superuser until you close the Konsole session, you can create tabs in Konsole just like in Konqueror and Firefox, among others. Console refers to Terminal in Ubuntu and Konsole in OpenSuSE, you may use others.

Before we start: Please remember that Linux is a server OS that has been ported to work on the Desktop. Linux IS user friendly, it is just very particular with whom it makes friends with, do not fear the Penguin.

The steps we will take are as follows;
1) Fulfill dependencies
2) Check if Bluetooth works
3) Install WMD


1) Firstly the dependency hell:


Required dependencies for WMD:
Bluez
pyBluez
Python X Library 0.13
Matplotlib
PyOSD 0.2.14
OSD 1.0

Most of these can be downloaded through YaST or Synaptic Package Manager if you have the required repositories enabled. Make sure you have met all dependencies. If you have fast internet access, download all Python packages just to be sure. Here are further instructions for packages that may not be available:

PyBluez:
download from http://org.csail.mit.edu/pybluez/download.html
extract
become root
python setup.py install

Remember that in the konsole in KDE you can press the Tab key in order to complete the name of the file or folder in the directory, to enter setup.py for example might be done just by pressing 'set TAB'. Pressing Tab twice will give you a list of the files that begin with 'set'.

MatPlotLib and libWiiMote can be downloaded from here:
http://matplotlib.sourceforge.net/
http://repose.cx/pyosd/
http://libwiimote.sourceforge.net/

MatPlotLib and PyOSD can be installed the same as PyBluez; python setup.py install



2) Finding if the Wii Remote is recognised:


Turn on Bluetooth, an icon should appear in the taskbar. If you have a Bluetooth-enabled phone, you can try experimenting if it works with your computer. I have a Samsung X820 and am able to transfer files to and from with little difficulity.

We need to find the adress of the Wii Remote so that we can connect it to the computer. In the console, type the following:
hcitool scan
Press Enter and press the red button in the battery compartament of the Wii Remote, batteries plugged in, naturally.

the Wii Remote should be recognised as Nintendo RVL-CNT-01 or similar. Please copy the Bluetoth adress and keep it in a seperate file for future reference.

Next do:
hidd –search (that's 2 – 's in front of 'search')
To enable discovery mode, press buttons 1 & 2 on the Wii Remote. This should give the output „ connecting to device XYZ“

And then:
hcidump -X
You should be connected, pressing a button on the Wii Remote should give a response on the console.

You should see flashing LED's on the Remote, take out battery and close the console to kill the Bluetooth connection.


3) Wiiwanna Motte Dammiit
WMD version 0.1.2 can be downloaded from here: http://forthewiin.org/ . Bush can't find his WMD's, I hope you can.

Now the juicy part:
Once extracted, navigate to /wmd-0.1.2/wmd. Use Gedit or Kwrite to edit Config.py.

Insert the adress of your Wii Remote into line 15

Next step that has caused me to delay this tutorial by a few days, I apologise sincerely, I had problems with finding the directory of uinput in openSuSE, which turned out to be the same as in Feisty. Once you are sure you have uinput installed on your computer (should be pre-compiled in Ubuntu and OpenSuSE):

in line 37, change 'UINPUT_DEV': "/dev/misc/uinput", to 'UINPUT_DEV': "/dev/input/uinput",
save the file and exit


Exclamation
The following step can be risky, if it fails, you will not log on your computer to a window manager. I then changed xorg.conf to acommodate the Wii Remote as an input device. I have not done it any other way, so please try to ommit this step and tell me if it worked without changing xorg.conf.

cd /etc/X11 (for the record, a shortcut I took was by pressing the Tab key, as in; cd /e TAB X TAB)
become root
cp xorg.conf xorg.conf.backupBeforeWii
(making a copy of xorg.conf is always recommended, if X fails after your reboot, just reverse this step as root: cp xorg.conf.backupBeforeWii xorg.conf)
Gedit or Kwrite xorg.conf

in Section "ServerLayout" , after the keyboard and mice, add:
InputDevice "Wiimote" "AlwaysCore"

after the last Section "InputDevice" add:
Section "InputDevice"
Identifier "Wiimote"
Driver "evdev"
Option "Name" "Nintendo Wiimote"
EndSection

save, exit and restart your machine.
Exclamation


Open the console, cd to the folder /wmd-0.1.2, become root, type:
modprobe uinput
python WMD.py
press buttons 1+2 on the Wii Remote with the batteries inserted.

Remember about the 2-4 sources of Infrared radiation I mentioned in the beginning. You can create an infrared LED bar by following guides in wiili.org forums.



If all went well, you should be a proud owner of a cool gadget to impress friends with. I justified this expense as a tool to navigate slides while doing presentations Smile



cWiid is an interface GUI for the Wii Remote. It also allows you to see the battery charge, accelometer, IR and nunchuk data. Ubuntu has a .deb package that can be accessed fom the top menu bar.

Otherwise, from:
http://abstrakraft.org/cwiid/

become root and do:
./configure
make
make install

With all dependencies fulfilled, you can execute the program by typing wmgui.
Back to top
View user's profile Send private message Visit poster's website
Bonster



Joined: 10 Oct 2007
Posts: 1

Digg It
PostPosted: Sat Oct 13, 2007 3:14 am    Post subject:

good tutorial. I got the WMD to respond to my wiimote.

however it doesnt work as a mouse cursor but it does sense that the wiimote is moving because I see x,y in the terminal responding and also the button responding. But that is all it only works in terminal experiment.

How you make it work on the desktop and with other programs like Elisa Media Center. Is there a way to remap the wiimote buttons also?

I got Cwiid from the repos but everytime i try to connect it says "unable to connect" I donno why but with WMD it responds fine.

Any help plz?
-using ubuntu gusty
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> General Linux Wiimote All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group