LinuxMCE Forums

General => Users => Topic started by: cobradevil on March 24, 2008, 07:17:54 pm

Title: WIIMOTE Howto on the wiki
Post by: cobradevil on March 24, 2008, 07:17:54 pm
Hello people,

I am succesfully using the wiimote now with linuxmce

I created a very simple guide on the wiki ( i am not to good with formatting so maybe someone else can do that?
http://wiki.linuxmce.org/index.php/Nintendo_WiiMote

With kind regards

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: jondecker76 on March 24, 2008, 07:54:58 pm
I was hoping someone would do this soon! Excellent job!
Title: Re: WIIMOTE Howto on the wiki
Post by: Zaerc on March 24, 2008, 08:11:28 pm
Nice work, thanks!  I guess that "stub" message can be removed now...
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on March 25, 2008, 07:39:24 am
No thanks at all!!

i think i have forgot something so i hope someone can test it and report any failures on its way!

Is it possible that something like this can be part of lmce so i do not have to create the scripts and al again??

Also removed the stub from the wiki!!

With kind regards,

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: bashers on March 25, 2008, 01:59:49 pm
how much "control" of this system do you get with this remote compared with the extortionately priced (in the UK!) fiire remote?
Title: Re: WIIMOTE Howto on the wiki
Post by: MediaMonkey on March 25, 2008, 06:07:58 pm
What receiver can we use with this remote in LMCE?
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on March 25, 2008, 06:28:04 pm
@MediaMonkey
You can use almost every linux supported bluetooth dongle!

@bashers
Well it depends on what you wanna do with it!

I can't use it with mythtv but there i have a normal ir remote for.
The rest like playing audio video media and play forward and backward volume that is what i can do with the wiimote.

Title: Re: WIIMOTE Howto on the wiki
Post by: Itsik on March 26, 2008, 09:10:42 am
Well. after some fiddling, I can confirm that this thing works :)!
I still need to figure out how to simulate the nintendo "sensor bar" to improve the accuracy and control (The two cendle method is cute but it won't work for me ... ) but even placing a pencil flashlight under the TV makes it work pretty good.
Now's the time to figure out how to make it "follow me" compatible, which will make it the perfect sollution for the system (in my view at least).

BTW, is there a way to make the power button shut down the MD ?

Thnx
Itsik
Title: Re: WIIMOTE Howto on the wiki
Post by: gazlang on March 26, 2008, 12:12:24 pm
Now's the time to figure out how to make it "follow me" compatible, which will make it the perfect sollution for the system (in my view at least).

You will have difficulty getting "follow me" to work with the wiimote as bluetooth has quite a large range compared to the rf used with the fiire chief. The MDs will struggle to figure out which one your wiimote is closest to. There is a discussion about this on one of the earlier wiimote threads.

I still need to figure out how to simulate the nintendo "sensor bar" to improve the accuracy and control (The two cendle method is cute but it won't work for me ... ) but even placing a pencil flashlight under the TV makes it work pretty good.

You can buy a battery powered wiimote ir sensor from amazon or ebay pretty cheap. The best solution (if you are handy with electronics) is to attach a usb cable to one of these to power it. There are 'howtos' on the net about this process.
Title: Re: WIIMOTE Howto on the wiki
Post by: domotiqa.com on March 27, 2008, 05:49:13 pm
thank both for your wiki and help, nice infos
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on March 28, 2008, 07:22:31 am
Hello all,

I'm glad to hear people can use it!
Would it be possible to get this functionality in the linuxmce 0710 final?

With kind regards,

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: jondecker76 on March 31, 2008, 05:31:31 am
This worked excellent for me as well - great job!

A few questions though....
-Can you assign multiple Wii addresses to be used, instead of just one? we have several wiimotes in the house and it would be nice to be able to use any of them on any machine

-Is there a configuration file to adjust the sensitivity of the sensorbar tracking?  Mine is a little too sensitive at the moment!
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on March 31, 2008, 12:17:59 pm
you can try to play with the settings from xset in the wminputd script.

the settings i gave were optimal for my situation but you can slow down the mouse acceleration!

i haven't looked at multiple wiimote's but i will soon!

With kind regards

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: tkmedia on April 02, 2008, 05:03:16 am
I am having toubles getting this to work what logs do i check
Title: Re: WIIMOTE Howto on the wiki
Post by: gazzzman on April 02, 2008, 01:20:33 pm
thanks a lot for all your hard work!  :)
I will get cracking on this tonight :)
cheers!!!
Gazzzman
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on April 03, 2008, 07:43:25 am
Hello tkmedia

What problems do you have?

if you installed the packages you should be able to:
modprobe uinput
put in the bluetooth dongle
>then run after pressing the red button beside the battery (blue lights should flash):
hcitool scan

>then copy the mac address besides the wminput

wminput -c ir_ptr macaddress
>then press again the red button
now you should have a working wiimote?

if not what message does wminput give you?

With kind regards

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: pcbastard on April 05, 2008, 09:03:26 am
Not to crash the party, but if you want a remote like the Fiire remote for cheap, check out Circuit City ASAP.  They are closing out the Gyration GYR3101US remotes for $36!!!

I bought one, the used the WIKI how-to and voila it works AWESOMELY!

Just my 2 cents.
Title: Re: WIIMOTE Howto on the wiki
Post by: tkmedia on April 06, 2008, 09:02:08 pm
Got wii wrking with the modified script on wiki.

1 last strange problem.

Works perfectly on core
But does not have full range of cursor movement on MD  only the bottom left  2/3 of screen can be navigated.


Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on April 07, 2008, 06:28:54 pm
And does changing the acceleration settings with xset help?

try e.g. xset 6 6

the mouse will go to fast but it should move over the whole screen!

you can change it like this from a ssh session to the media director:

export DISPLAY=:0
xset 6 6

then point the wiimote and check if the cursor moves further!!

With kind regards

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: Zaerc on April 07, 2008, 07:24:20 pm
And does changing the acceleration settings with xset help?

try e.g. xset 6 6

the mouse will go to fast but it should move over the whole screen!

you can change it like this from a ssh session to the media director:

export DISPLAY=:0
xset 6 6

then point the wiimote and check if the cursor moves further!!

With kind regards

William van de Velde

The proper syntax is:
xset m <acceleration> <threshold>
or
xset m default

Where <acceleration> can be a fraction like "5/3" for instance.


Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on April 07, 2008, 08:20:42 pm
thanx Zaerc my mistake!!
Title: Re: WIIMOTE Howto on the wiki
Post by: gazzzman on April 09, 2008, 12:08:31 am
feeling like a gimp now!!
spent two days on this :(
followed the instructions in the wiki..
everything seems to go OK but when I try to connect the Wiimote..
all that happens is I get a message on the core/hybrid asking what type of phone it is :(
(the dongle is on a MD in another room)
any clues where to start?
cheers
Gazzzman

PS my normal USB mouse is barely working now either lol!
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on April 10, 2008, 08:53:45 am
Hello Gazmann

Well the wiimote is only connected to the MD with the dongle

so try to run the script and all on the MD you wanna control.

If you wanna control the hybrid than connect the dongle to that one and try again!

Did you try that?

With kind regards

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: gazzzman on April 10, 2008, 11:37:24 am
hi William!
thanks for the reply :)
I had the dongle plugged into the MD I want to control..
and ran the scripts on the MD (via ssh)
but when I pressed the red button all that happend was the add mobile phone screen came up on the core.hybrid  ???
very weird! the MD seemed to ignore it completely!
any thoughts?
cheers
Gazzzman
Title: Re: WIIMOTE Howto on the wiki
Post by: pedplar on April 12, 2008, 09:41:47 am
gazzzman, did you ever figure out what was wrong? I am having the same problem as you.  Everything seems like it went fine but it asks me what type of phone it is
Title: Re: WIIMOTE Howto on the wiki
Post by: cobradevil on April 12, 2008, 10:59:43 am
Well can you try to run the wminput command from the commandline ssh would be enough!

wminputd -c ir_ptr mac address

you can find the mac address with hcitool scan

then push the red button!

the wminputd command should be saying: Ready

With kind regards

William van de Velde
Title: Re: WIIMOTE Howto on the wiki
Post by: nemo on July 13, 2008, 12:59:49 pm
cobradevil,,

   I have two questions for you:

   1. I have hooked up my Wii Remote (played with xset m <a> <p>), but can't get it to work smoothly. It either does not move at all, or, whenever I find the spot in a room, it is moving, but very unstable - cursor jumps back to left when I move it to the right, disappears, etc..
   
       The remote itself is fully working + new batteries and all.

       I use USB dongle which is not USB 2.0, but USB 1.2 - could that be a problem?

    2. Less important, but also curios - where the heck is PAUSE button on Wii Remote (using wiki's button mapping) while watching videos?

Thank you in advance,
nemo
Title: Re: WIIMOTE Howto on the wiki
Post by: Zaerc on July 13, 2008, 01:50:36 pm
Sounds like you need a sensor-bar, which is basicly just 2 infra-red lightpoints, in the mean time you can try putting 2 candles on top of the TV about 20cm (8") apart.
Title: Re: WIIMOTE Howto on the wiki
Post by: nemo on July 14, 2008, 04:38:27 pm
Zaerc, thank you for your answer, but

1. Why would I need a sensor-bar, where as it works for other people?

2. What would candles on my TV do?

3. And where the heck is the PAUSE button on the Wii Remote?

Thank you.
Title: Re: WIIMOTE Howto on the wiki
Post by: tschak909 on July 14, 2008, 04:57:35 pm
1. You need the sensor bar, trust us. the ir_ptr is the most accurate option. the accelerometers only measure relative direction, and require a fair amount of velocity to work, it is not a gyroscope.

2. the candles provide the necessary infrared heat/light source that the IR camera in the Wii Remote locks on to. It needs two sources so that it can perform triangulation on distance, and thereby determine the bounds of the screen.

3. It is currently not mapped. one of the things that needs to be worked out by adventurous hackers like yourself, and us.

-Thom
Title: Re: WIIMOTE Howto on the wiki
Post by: nemo on July 14, 2008, 05:28:26 pm
Thom,

   Thank you for three clear answers to my three clear questions - it is a rare skill you have, and I appreciate it :)

   couple more as follow up:

           1. Can I utilize an existing Wii sensor bar? If yes how?

           2. If not, will I only need a http://www.modpulse.com/articles/console-mods/usb-wii-sensor-bar/ (http://www.modpulse.com/articles/console-mods/usb-wii-sensor-bar/) to use Wii Remote, or will I need something else in addition (bluetooth dongle, etc..)?

Thank you,
nemo
Title: Re: WIIMOTE Howto on the wiki
Post by: tschak909 on July 14, 2008, 05:52:31 pm
Yes, it will work just fine.. all they are, are IR LEDs mounted in nice plastic. ;-)

-Thom
Title: Re: WIIMOTE Howto on the wiki
Post by: Todd on August 20, 2008, 11:55:14 pm
I followed the wiki article but when I rebooted my hybrid/core it asked what phone I was using.  I then did the following:

Quote
linuxmce@dcerouter:~$ hcitool scan
Scanning ...
        00:19:1D:D2:12:4E       Nintendo RVL-CNT-01
linuxmce@dcerouter:~$ sudo wminput -c ir_ptr 00:19:1D:D2:12:4E
[sudo] password for linuxmce:
Put Wiimote in discoverable mode now (press 1+2)...
Ready.



The wiimote is detected and seems to work, sortof.  It won't scroll to the right 1/4 of the screen.  (can't get to the advanced options on the menu bar, b/c cursor stops before it gets that far.)

If I reboot the hybrid/core, I then have to manually do the above again. 

1.  Why won't the cursor go to the right 1/4 of the screen (I am using a wide-screen tv if that matters)?
2.  What do I need to do to get the hybrid/core to automatically recognize the wiimote each time I reboot?
Title: Re: WIIMOTE Howto on the wiki
Post by: drjenk on December 05, 2008, 07:18:29 am
Hi,
When pushing the red button, I get a screen that says a plug and play bluetooth device has been detected, with 3 options, none of which are correct.  So I say "no for now".  The wii mote then can control pointer movement by using the cursor keys, but I don't see any pointer movement when moving the remote around.  Is there anything else I need to do other than what is in this wiki post?


Thanks
Title: [RESOLVED] WIIMOTE ir, full screen
Post by: piusvelte on March 30, 2009, 06:52:53 pm
I followed the wiki for setting up a wiimote, and am using the ir functionality, which makes this MD a incredible upgrade to my current setup using an xbox with XBMC. When the MD boots into the orbiter, and I connect a wiimote, I can only scroll through the bottom left 1/4 of the screen. Others have noted this problem as well.

For me the resolution was to use the default ir_ptr (with the tildes "~") and to add the xorg.conf lines described here (https://help.ubuntu.com/community/CWiiD).

Code: [Select]
Section "InputDevice"
        Identifier      "Wiimote"
        Driver          "evdev"
        Option          "Name"          "Nintendo Wiimote"
EndSection
and to the ServerLayout section
Code: [Select]
InputDevice     "Wiimote" "AlwaysCore"
Also, I removed the mac address so that any of my wiimotes can connect. So far, so good. Now if I can get sound from my Audigy card, I can start using this MD!
Title: Re: WIIMOTE Howto on the wiki
Post by: mactalla on April 13, 2009, 01:50:21 am
3. It is currently not mapped. one of the things that needs to be worked out by adventurous hackers like yourself, and us.

Where should I be looking to find the mapping of keys to behaviour?  I see I can map a wiimote button to KEY_PLAYPAUSE, but that doesn't seem to affect the loaded media.  Does LMCE have a mapping somewhere that needs to link this key to the play/pause command sent to Xine?  Where would I find that?
Title: Re: WIIMOTE Howto on the wiki
Post by: tschak909 on April 13, 2009, 08:11:17 am
*hmm* you guys are looking at this wrong.

This needs to be accomplished by a combination of a device template, some bluetooth changes to the Bluetooth_Donglle code, and doing a template similar to the MCR Remote dongle. There aren't any dead keys that have to be parsed directly, so I don't think any Orbiter changes are needed....

-Thom