Error discovering Wiimote

Bug #501435 reported by Mocto
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
WiiCan
New
High
Unassigned

Bug Description

I've installed Wiican 0.2 with ppa, it launches just fine but when I try to connect my Wiimote (left-click>Mouse or Neverball) I get a notification saying :

Error discovering Wiimote
check mapping syntax

and the console output is :

user@computer:~$ wiican
unable to open uinput
Fail!

Tags: uinput wminput
Revision history for this message
Mocto (moctoo) wrote :

Seems like I've found a workaround : launching Wiican with a sudo. Is it a normal behavior ?

Anyway fun piece of software, I'll try custom configurations.

Revision history for this message
JPi (ajuanpi) wrote :

Hi,
I had the same problem and same solution.
Note: is better if you use gksudo, to have access to the password window.

The drawback is that now all the config files are stored in the /root/.wiican folder.

I think the problem comes from the wminput
http://abstrakraft.org/cwiid/wiki/wminput

In the page says
"By default, some (most? all?) udev configurations set up a uinput device file readable only by root."

Is there a better solution?

Thx

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Can you confirm if /dev/uinput has group/others read/write perms? The wminput tool requieres those perms for using wiimote as non-root user.

And now some background. In older udev versions the next rule was enough:

        KERNEL=="uinput", MODE="0666"

But it doesn't work anymore as you can track in: https://bugs.launchpad.net/ubuntu/+source/cwiid/+bug/312957
I've implemented the solution via upstart job. The /etc/init/wiican.conf file loads uinput module when udev runs and sets 0666 to /dev/uinput. Is it not working for you?

Changed in wiican:
importance: Undecided → High
tags: added: uinput wminput
Revision history for this message
Mocto (moctoo) wrote :

Here are the perms of my /dev/uinput :

crw-rw-rw- 1 root root 10, 223 2009-12-30 10:12 /dev/uinput

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Can you launch wminput with non-root user?
Does it let you use the wiimote as a mouse?

Revision history for this message
Mocto (moctoo) wrote :

Okay now there's something I don't understand...

I tried wminput with non-root, it worked fine. I closed it.
And then I launched Wiican with non-root, it worked just fine... (I havn't updated or modified Wiican in any way, neither have I changed /dev/uinput perms)

Seems like this bug just present at first launch, or dependant on other parameters.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Wiican debian package must load uinput module and set right perms on postinstall phase, so at the first run Wiican can work as non-user.

Please, could you make this tests:

1 Remove wiican
2 Restart computer
3 Check /dev/uinput module it's not loaded and/or has 0600 perms
4 Install wiican
5 Check /dev/uinput it's loaded with 0666 perms
6 Launch wiican and check if it works
7 Reboot computer
8 Try test 5 and 6 again

Thank you for your help Mocto.

Revision history for this message
Mocto (moctoo) wrote :

Okay so after step 1 and 2 :
3-/dev/uinput not loaded

After installing Wiican :
5-/dev/uinput loaded, perms = 666
6-Wiican working fine, non-root mode

(so the behavior is different from my first installation, but perfectly fine)

I'll keep you filled in after reboot. One thing came to my mind : I use a USB Bluetooth dongle which I only plug when I need it, so I plugged it before using Wiican but not before install, can it change the behavior in postinstall ?

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

I use a USB bluetooth too with no problem. I'm sure that installing with no bluetooth really doesn't matter because uinput module has no relation with bluetooth at all.

I really can't understand why this was'nt work for you on first time. I think a upstart task for loading uinput it's not the best way to do, but it's the better approx. i've founded by now.

Anyway, be sure i'll keep an eye on it. Thanks you really.

Revision history for this message
Mocto (moctoo) wrote :

After reboot everything is still fine (uinput loaded, 666 perms, Wiican working)

Indeed the behavior on first install seem isolated, let's hope it doesn't affect much people.

Thank you and good luck for this project and any other you may have (if you need a beta tester ;).

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Thanks to you Mocto, any bug reporting will be welcomed, sure!. Other similar project i'm working on it's wiimidi: a wiimote_event/midi_event mapper. It still in early development but it works!

http://github.com/fontanon/wiimidi

By now you can plug wiimidi as a jackd input and play with some softsynth as zynaddsubfx. It has its own scripts definition as you can see here:

http://github.com/fontanon/wiimidi/blob/master/sample.wid

I need more time for release some kind of alpha. Get fun!

Changed in wiican:
milestone: none → 0.3
Revision history for this message
Kristian Kißling (kkissling) wrote :

I encountered the same problem and your steps solved it. I use Ubuntu 10.04. I use an USB Bluetooth Stick.

Revision history for this message
J. Félix Ontañón (fontanon) wrote :

Hi Kristian!

As i've talked with Mocto i think the upstart task doesn't work so fine on first install. Other people told me wiican not work on first launching after first install,

Did you tried it from wiican-0.2.x series or the brand-new-not-released-yet wiican-0.3 branch?

Revision history for this message
Kristian Kißling (kkissling) wrote :

Hi,

I found two things:

1. I tried Wiican in Kubuntu. There is an error message stating "Unrecognized image file format". I installed <I>python-rsvg<I> and then everything works. You should add it to the dependency list.

2. Wenn I first startet Wiican in Kubuntu it failed. Second time it worked well, without me doing something special. Last time (#12) I didn't try to start it a second times, so maybe the "sudo" and reboot thing is not really necessary.

After the first start it says: "Verbunden" (connected), then "Bluetooth device inquiry error" then "error finding wiimote", then "Verbindung getrennt" (connection canceled) then "Fail!"

I installed Wiican from your PPA. Will try it with Xubuntu soon.

Adiós
Kristian

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.