News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

WIIMOTE Howto on the wiki

Started by cobradevil, March 24, 2008, 07:17:54 PM

Previous topic - Next topic

cobradevil

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

pcbastard

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.

tkmedia

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.


My Setup [url="http://wiki.linuxmce.org/index.php/User:Tkmedia"]http://wiki.linuxmce.org/index.php/User:Tkmedia[/url]

For LinuxMce compatible  systems and accessories
[url="http://lmcecompatible.com/"]http://lmcecompatible.com/[/url]

cobradevil

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

Zaerc

Quote from: 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

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

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


"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

cobradevil


gazzzman

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!
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCC@GE@GIT@GO dpu S-: a+ C+++ L++ E-- W+++ N+ o+++ w-- O M+ PS+++ PE-- Y++
PGP+ t++ 5 X++ R- tv b+ DI++ D---- G e++* h*++ r+++ Y++++
-----END GEEK CODE BLOCK-----

cobradevil

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

gazzzman

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
-----BEGIN GEEK CODE BLOCK-----
Version 3.1
GCC@GE@GIT@GO dpu S-: a+ C+++ L++ E-- W+++ N+ o+++ w-- O M+ PS+++ PE-- Y++
PGP+ t++ 5 X++ R- tv b+ DI++ D---- G e++* h*++ r+++ Y++++
-----END GEEK CODE BLOCK-----

pedplar

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

cobradevil

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

nemo

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

Zaerc

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.
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

nemo

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.

tschak909

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