Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Looks like the wii whiteboard is available for download (for intrepid) as a nice deb file from their website now.
http://code.google.com/p/linux-white...downloads/list
Unfortunately there's no 64bit deb at the moment.
I haven't had a chance to test it out, it should work nicely though.
If you've got 64bit Ubuntu installed, I'd recommend you either wait for a 64bit deb to be released, or to compile it yourself, or you might be able to get away with downloading libbluetooth2 for Ubuntu 8.04 deb file and installing it in intrepid, then installing the wii whiteboard 64bit deb for ubuntu hardy.
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Hi,
I followed this tutorial on a Ubuntu 8.10 AMD64 box and everything works fine. I have only one problem: after a few minutes of inactivity, the Wiimote get paused and there no way to get it works back. If I restart wminput and press "1+2" on the Wiimote, I get the error message "Socket connect error (control channel)".
Running "hcitool con", I see that the Wiimote is actually connected, but there's way to use it untill reboot ("hcitool dc" not work).
Is there a way to resume the wiimote and connection after it went into standby? Alternatively, there is a way to avoid the standby?
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
ias2
Hi,
I followed this tutorial on a Ubuntu 8.10 AMD64 box and everything works fine. I have only one problem: after a few minutes of inactivity, the Wiimote get paused and there no way to get it works back. If I restart wminput and press "1+2" on the Wiimote, I get the error message "Socket connect error (control channel)".
Running "hcitool con", I see that the Wiimote is actually connected, but there's way to use it untill reboot ("hcitool dc" not work).
Is there a way to resume the wiimote and connection after it went into standby? Alternatively, there is a way to avoid the standby?
That's weird...It's not supposed to go into standby...
Did you try to remove the batteries on the wiimote and reinserting them? Maybe the wiimote keeps connected while wminput went to sleep and that may be why the error appears...
Try that and come back with the result :)!
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
I've performed some other tests and the problem seem to be not related to Wiimote and it's standby state (or wminput), but to an Ubuntu bug or hardware problem... see this:
-----------------------------------------------------------------
root@htpc:~# hcitool con
Connections:
< ACL 00:1E:35:18:B2:F1 handle 0 state 5 lm MASTER
root@htpc:~# /etc/init.d/bluetooth stop
* Stopping bluetooth [ OK ]
root@htpc:~# hcitool con
Connections:
< ACL 00:1E:35:18:B2:F1 handle 0 state 5 lm MASTER
-----------------------------------------------------------------
Either there is something weird or I don't know enough about bluetooth technology :)
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
I have installed the whiteboard deb file (0.3.4.2 thanks :)) and get some errors.
1) The pictures needed for the GTK program are not in the good place. They are in /usr/local/share/pixmaps but whiteboard need them in /usr/local/share/whiteboard/windows/gtk. You can bypass this bug by copy/paste all the file in the right place.
2)
Code:
(whiteboard:7356): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated.
I don't know if it's critical or not.
3) This deb don't resolved the "socket connect error" i have till the beginnig
Ubuntu intrepid with all update, MSI bluetooth BToes adaptator.
happy new year and thanks for this work.
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
ias2
I've performed some other tests and the problem seem to be not related to Wiimote and it's standby state (or wminput), but to an Ubuntu bug or hardware problem... see this:
-----------------------------------------------------------------
root@htpc:~# hcitool con
Connections:
< ACL 00:1E:35:18:B2:F1 handle 0 state 5 lm MASTER
root@htpc:~# /etc/init.d/bluetooth stop
* Stopping bluetooth [ OK ]
root@htpc:~# hcitool con
Connections:
< ACL 00:1E:35:18:B2:F1 handle 0 state 5 lm MASTER
-----------------------------------------------------------------
Either there is something weird or I don't know enough about bluetooth technology :)
I really don't know what could be wrong. After using that module "stop" command it's supposed to be stopped...and not appear on hcitool again...:(
Quote:
Originally Posted by
trottamundo
I have installed the whiteboard deb file (0.3.4.2 thanks :)) and get some errors.
1) The pictures needed for the GTK program are not in the good place. They are in /usr/local/share/pixmaps but whiteboard need them in /usr/local/share/whiteboard/windows/gtk. You can bypass this bug by copy/paste all the file in the right place.
2)
Code:
(whiteboard:7356): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated.
I don't know if it's critical or not.
3) This deb don't resolved the "socket connect error" i have till the beginnig
Ubuntu intrepid with all update, MSI bluetooth BToes adaptator.
happy new year and thanks for this work.
1) Your workaround should be enough ;)!
2) I don't think you should worry about that since most "third-party" programs throw those types of errors every now and then, although they shouldn't.
3) This .deb is only for the whiteboard. The "Socket Connect Error" has to do with wminput and cwiid (and most probably with your bluetooth adapter.
I'm very sorry if my answers are not what you expected, but as I stated on my guide, I don't have the resources to use the whiteboard, so I can't test it...I just added that part because i know some people wanted it, but I haven't got around to test and probably won't be able to in a while. :(
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
What have I done wrong? It works with the accelerometer as a mouse perfectly, I just can't get the infrared to work. Here's what I get when I type in the line:
Code:
deemar@Chugger:~$ gksudo wminput -c ir_ptr 00:17:AB:23:A3:49
gksudo: invalid option -- 'c'
GKsu version 2.0.0
Usage: gksudo [-u <user>] [options] <command>
--debug, -d
Print information on the screen that might be
useful for diagnosing and/or solving problems.
--user <user>, -u <user>
Call <command> as the specified user.
--disable-grab, -g
Disable the "locking" of the keyboard, mouse,
and focus done by the program when asking for
password.
--prompt, -P
Ask the user if they want to have their keyboard
and mouse grabbed before doing so.
--preserve-env, -k
Preserve the current environments, does not set $HOME
nor $PATH, for example.
--login, -l
Make this a login shell. Beware this may cause
problems with the Xauthority magic. Run xhost
to allow the target user to open windows on your
display!
--description <description|file>, -D <description|file>
Provide a description name for the command to
be used in the default message, making it nicer.
You can also provide the absolute path for a
.desktop file. The Name key for will be used in
this case.
--message <message>, -m <message>
Replace the standard message shown to ask for
password for the argument passed to the option.
Only use this if --description does not suffice.
--print-pass, -p
Ask gksu to print the password to stdout, just
like ssh-askpass. Useful for scripts where the
program accepts receiving the password on
stdin.
--sudo-mode, -S
Make GKSu use sudo instead of su, as if it had been
run as "gksudo".
--su-mode, -w
Make GKSu use su, instead of using libgksu's
default.
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Somehow "gksudo" gets confused with the "-c" argument in the command. The same thing happened to me and I fixed it by using "sudo" instead of "gksudo"...Try it and report back. ;)!
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Quote:
Originally Posted by
Toshibawarrior
Somehow "gksudo" gets confused with the "-c" argument in the command. The same thing happened to me and I fixed it by using "sudo" instead of "gksudo"...Try it and report back. ;)!
Now what have I done?
Code:
deemar@Chugger:~$ sudo wminput -c ir_ptr 00:17:AB:23:A3:49
Put Wiimote in discoverable mode now (press 1+2)...
Socket connect error (control channel)
unable to connect
Re: HOWTO: Wii Remote in Ubuntu Intrepid Ibex (8.10)
Bravo Toshiba! All is well after sorting out the gksudo argument! I have to say it's far more sensitive than I could have hoped for! Excellent guide-well written and precise, I applaud you. Thanks to Rhubarb as well! People like you guys keep the experimentation alive!